/* === Onasapo Review Summary - App Store風サマリーカード === */

.onasapo-review-summary {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px 24px 24px;
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

/* ヘッダー */
.ors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ors-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.ors-arrow {
    font-size: 22px;
    color: #888;
    text-decoration: none;
    line-height: 1;
}
.ors-arrow:hover {
    color: #04384c;
}

/* ボディ（3カラム） */
.ors-body {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 左: 数値 */
.ors-left {
    flex-shrink: 0;
    text-align: center;
    min-width: 72px;
}
.ors-rating-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.ors-rating-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-weight: 600;
}

/* 中央: 星バー */
.ors-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ors-bar-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ors-stars {
    font-size: 9px;
    /* SWELLのレビュー星と同じ色（テーマ設定で変えても追従する） */
    color: var(--color-review_star, #fac225);
    white-space: nowrap;
    min-width: 52px;
    text-align: right;
    letter-spacing: 1px;
}
.ors-bar {
    flex: 1;
    height: 4px;
    background: #d4d4d4;
    border-radius: 2px;
    overflow: hidden;
}
.ors-bar-fill {
    height: 100%;
    background: #8e8e8e;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* 右: 件数 */
.ors-right {
    flex-shrink: 0;
    text-align: right;
}
.ors-count {
    font-size: 12px;
    color: #888;
    font-weight: 500;
    white-space: nowrap;
}

/* 空の場合 */
.ors-empty {
    text-align: center;
    padding: 32px 24px;
}
.ors-empty p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .onasapo-review-summary {
        padding: 16px 18px 20px;
    }
    .ors-body {
        flex-wrap: wrap;
        gap: 12px;
    }
    .ors-left {
        min-width: 60px;
    }
    .ors-rating-number {
        font-size: 40px;
    }
    .ors-center {
        flex: 1;
        min-width: 140px;
    }
    .ors-right {
        width: 100%;
        text-align: center;
        padding-top: 4px;
        border-top: 1px solid #e0e0e0;
    }
}

/* === 口コミ投稿フォーム === */

.ors-review-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
}
.ors-review-form h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.ors-form-group {
    margin-bottom: 16px;
}
.ors-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.ors-form-group input[type="text"],
.ors-form-group select,
.ors-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.ors-form-group input:focus,
.ors-form-group select:focus,
.ors-form-group textarea:focus {
    outline: none;
    border-color: #04384c;
    background: #fff;
}
.ors-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* 星選択 */
.ors-star-select {
    display: flex;
    gap: 4px;
    font-size: 28px;
    cursor: pointer;
}
.ors-star-select span {
    color: #d0d0d0;
    transition: color 0.15s;
    user-select: none;
}
.ors-star-select span.active {
    color: #f5a623;
}
.ors-star-select span:hover,
.ors-star-select span:hover ~ span {
    color: #f5a623;
}

/* 送信ボタン */
.ors-submit-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #04384c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.ors-submit-btn:hover {
    background: #065a7a;
}
.ors-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* メッセージ */
.ors-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 12px;
}
.ors-form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}
.ors-form-message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ハニーポット */
.ors-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ============================================================
   v2 追加分：内訳注記／定性サマリー／調査概要／集計表／一覧／投稿フォーム
   ============================================================ */

.ors-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin: -12px 0 20px;
    padding: 10px 14px;
    border: 1px dashed #e3e3e3;
    border-radius: 8px;
}

/* --- 定性サマリー（数値サマリーと同じグレーのカードに揃える） --- */
.ors-digest {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px 24px 22px;
    margin: 0 0 24px;
}
.ors-dg-head {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
    margin-bottom: 14px;
}
.ors-dg-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}
.ors-dg-cols {
    display: flex;
    gap: 28px;
}
.ors-dg-col {
    flex: 1;
    min-width: 0;
}
.ors-dg-h {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d4d4d4;
}
.ors-dg-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
}
.ors-dg-label { flex: 1; min-width: 0; }
.ors-dg-bar {
    flex: 0 0 54px;
    height: 4px;
    background: #d4d4d4;
    border-radius: 2px;
    overflow: hidden;
}
.ors-dg-fill {
    display: block;
    height: 100%;
    background: #8e8e8e;
    border-radius: 2px;
}
.ors-dg-n {
    flex: 0 0 34px;
    text-align: right;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.ors-dg-more { font-size: 12px; color: #888; margin: 8px 0 0; }

/* --- 調査概要・集計表 --- */
.ors-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    margin: 0 0 8px;
}
.ors-table th,
.ors-table td {
    border: 1px solid #e3e3e3;
    padding: 8px 10px;
    text-align: center;
}
.ors-table thead th {
    background: #ececec;
    color: #1a1a1a;
    font-weight: 700;
}
.ors-table tbody th {
    background: #f5f5f5;
    font-weight: 700;
    text-align: left;
    width: 34%;
}
.ors-table td:first-child { text-align: left; }
.ors-table .ors-sub { color: #888; font-size: 13px; }
.ors-table-ages { margin-top: 16px; }
/* 調査概要・基本情報は左寄せの定義表 */
.ors-table-overview td,
.ors-table-facts td { text-align: left; line-height: 1.7; }
.ors-table-facts a { word-break: break-all; }

/* --- アプリの基本情報 --- */
.ors-facts { margin: 24px 0; }
.ors-facts-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 8px;
    color: #1a1a1a;
}
.ors-note {
    background: #f5f5f5;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    margin: 12px 0;
    color: #555;
}

/* --- 一覧 --- */
.ors-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    background: #f5f5f5;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 18px 0 8px;
}
.ors-ctrl { display: flex; flex-direction: column; gap: 4px; }
.ors-ctrl label { font-size: 12px; color: #555; font-weight: 700; }
.ors-ctrl select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
}
.ors-result { font-size: 13px; color: #555; margin: 10px 2px 16px; }
.ors-card {
    /* 口コミカードは置き場所を問わず白背景で統一する。
       検索結果のように色付きの箱の中に入れても沈まないようにするため。 */
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 14px;
    /* 「参考になった」をカードの下端に揃える（本文の長さが揃わないため） */
    display: flex;
    flex-direction: column;
}
.ors-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.ors-card-stars { display: inline-flex; align-items: center; line-height: 1; }
.ors-card-stars .c-reviewStars { font-size: 15px; }
.ors-stars-fallback { color: var(--color-review_star, #fac225); font-size: 15px; letter-spacing: 1px; }
.ors-card-score { font-size: 13px; font-weight: 700; color: #555; font-variant-numeric: tabular-nums; }
.ors-card-name { font-weight: 700; color: #1a1a1a; font-size: 14px; }
.ors-card-src { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.ors-src-survey { background: #eef3fb; color: #2B4C7E; }
.ors-src-user { background: #fdf0e6; color: #a2540f; }
.ors-card-date { margin-left: auto; color: #888; font-size: 12px; }
.ors-card-body { margin: 0; font-size: 15px; line-height: 1.9; }
.ors-card-foot { margin-top: auto; padding-top: 14px; }
.ors-helpful {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
}
.ors-helpful.voted { background: #04384c; border-color: #04384c; color: #fff; }
.ors-helpful-n { margin-left: 6px; font-weight: 700; }
.ors-more {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #04384c;
    background: #fff;
    color: #04384c;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    font-size: 15px;
}
.ors-empty-msg {
    display: none;
    padding: 24px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* --- 投稿フォーム（v2） --- */
.ors-form {
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    margin: 24px 0;
    background: #fff;
    overflow: hidden;
}
.ors-form-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: #f5f5f5;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.ors-form-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.ors-form-toggle-icon {
    position: relative;
    flex: 0 0 16px;
    height: 16px;
}
.ors-form-toggle-icon::before,
.ors-form-toggle-icon::after {
    content: "";
    position: absolute;
    background: #555;
    transition: transform 0.2s;
}
.ors-form-toggle-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.ors-form-toggle-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.ors-form.is-open .ors-form-toggle-icon::after { transform: scaleY(0); }
.ors-form-inner { padding: 20px 24px 24px; }
.ors-form-lead { font-size: 13px; color: #666; margin: 0 0 18px; }
.ors-field { margin-bottom: 16px; }
.ors-field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.ors-req { color: #c0392b; font-size: 12px; margin-left: 6px; }
.ors-field input[type="text"],
.ors-field select,
.ors-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}
.ors-field textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.ors-starpick { display: flex; gap: 4px; font-size: 30px; line-height: 1; color: #d4d4d4; cursor: pointer; }
.ors-starpick span { user-select: none; }
.ors-starpick span.on { color: #f0a020; }
.ors-counter { font-size: 12px; color: #888; text-align: right; }
.ors-agree { font-size: 13px; }
.ors-agree label { font-weight: 400; }
.ors-submit {
    background: #04384c;
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 13px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}
.ors-submit:disabled { background: #aaa; cursor: not-allowed; }
.ors-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.ors-form-error {
    display: none;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    margin: 0 0 12px;
}
.ors-thanks {
    display: none;
    background: #eaf5ee;
    border: 1px solid #9ccfae;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
}
.ors-cta {
    display: inline-block;
    background: #04384c;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 15px;
}

@media (max-width: 600px) {
    .ors-dg-cols { flex-direction: column; gap: 18px; }
    .ors-card-date { margin-left: 0; width: 100%; }
    .ors-ctrl { flex: 1 1 46%; }
    .ors-ctrl select { width: 100%; }
    .ors-table tbody th { width: 38%; }
}

/* --- 記事内で横スクロールにするとき（layout="scroll"） --- */
.ors-scrollHint {
    font-size: 12px;
    color: #888;
    text-align: right;
    margin: 0 0 4px;
}
.ors-list[data-layout="scroll"] {
    display: flex;
    /* 高さは揃える。本文を行数で切っているので、極端に高いカードは出ない。
       flex-startにすると1枚ごとに高さがバラバラになり、並びが乱れて見える。 */
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}
.ors-list[data-layout="scroll"] .ors-card {
    flex: 0 0 auto;
    width: 340px;
    scroll-snap-align: start;
    margin: 0;
}
@media screen and (max-width: 599px) {
    .ors-list[data-layout="scroll"] .ors-card { width: 280px; }
}

/* --- 単体カード（SWELLのカラム等に入れて自由に並べる用） --- */
.ors-single { height: 100%; }
.ors-single .ors-list { height: 100%; }
.ors-single .ors-card { height: 100%; margin-bottom: 0; }
.swell-block-column > .ors-single { display: block; }

/*
 * SWELLの横スクロールカラム（loos/columns isScrollable）に単体カードを置いたとき、
 * 上のheight:100%指定がスクロールコンテナの自動高さ計算と噛み合わず、
 * コンテナの高さが実コンテンツより数十px小さく確定してしまうことがある。
 * overflow-xがautoのため、CSS仕様上overflow-yも自動的にautoになり、
 * その差分が「隠れた縦スクロール」になって、スマホで下にスクロールしようとした
 * 指の動きを奪い、横にずれたように見える事故につながる（2026-08-10確認）。
 * 横スクロールカラムの中だけは高さを実コンテンツに合わせて自然に伸ばす。
 */
.swell-block-columns[data-scrollable="1"] .ors-single,
.swell-block-columns[data-scrollable="1"] .ors-single .ors-list,
.swell-block-columns[data-scrollable="1"] .ors-single .ors-card {
	height: auto;
}

/* ============================================
   アプリのバッジ（口コミ一覧ページなど、複数アプリが混ざる場所）
   ============================================ */
.ors-card-app {
	display: inline-block;
	background: #2b4c7e;
	color: #fff;
	font-size: .74em;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 999px;
	margin-right: 6px;
	white-space: nowrap;
}

/* ============================================
   検索バー（口コミ一覧ページ）
   ============================================ */
.ors-search {
	background: #f5f7fa;
	border: 1px solid #dde3ec;
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 2em;
}
.ors-search-title {
	margin: 0 0 12px;
	font-weight: 700;
	font-size: 1.05em;
}
/* 「129件の口コミを掲載中」。見出しではなく、検索バーの上に置く一行 */
.ors-search-count {
	margin: 0 0 10px;
	font-size: .95em;
	color: #444;
}
.ors-search-bar {
	display: flex;
	gap: 0;
	align-items: stretch;
}
.ors-search-select {
	flex: 1 1 auto;
	min-width: 0;
	height: 52px;
	font-size: 1em;
	padding: 0 14px;
	border: 1px solid #c3ccda;
	border-right: 0;
	border-radius: 8px 0 0 8px;
	background: #fff;
}
.ors-search-btn {
	flex: 0 0 auto;
	height: 52px;
	padding: 0 24px;
	font-size: 1em;
	font-weight: 700;
	color: #fff;
	background: #2b4c7e;
	border: 1px solid #2b4c7e;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
}
.ors-search-btn:hover { background: #23406c; }

.ors-search-results { margin-top: 20px; }
.ors-search-resultHead {
	/* 解除ボタンを1行目の右端に置き、ロゴ＋アプリ名はその下に置く。
	   同じ行に並べるとスマホでアプリ名が折り返して窮屈になるため。 */
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 16px;
}
.ors-search-resultMain {
	display: flex;
	align-items: center;
	gap: 14px;
}
.ors-search-logo {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: #fff;
	border: 1px solid #e3e8ef;
}
/* ロゴ未設定のときの頭文字 */
.ors-search-logo-text {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.1em;
	color: #2b4c7e;
	background: #e8eef7;
	border-color: #cfdaea;
}
.ors-search-resultTitle {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.4;
}
.ors-search-clear {
	flex: 0 0 auto;
	align-self: flex-end;
	background: #fff;
	border: 1px solid #c3ccda;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: .85em;
	color: #444;
	cursor: pointer;
}
.ors-search-clear:hover { background: #fff; }

@media (max-width: 600px) {
	.ors-search { padding: 16px; }
	.ors-search-bar { flex-direction: column; gap: 8px; }
	.ors-search-select { border-right: 1px solid #c3ccda; border-radius: 8px; }
	.ors-search-btn { border-radius: 8px; width: 100%; }
}

/* 読み上げ専用のラベル（SWELL側に無い場合の保険） */
.ors-search .screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* 検索でアプリを選んでいる間は、既定の表示（メリット・カルーセル）を隠す */
.ors-search-active .ors-hide-on-result {
	display: none;
}

@media (max-width: 600px) {
	.ors-search-logo { width: 44px; height: 44px; }
	.ors-search-resultTitle { font-size: 1.05em; }
	.ors-search-resultHead { gap: 10px; }
}

/* 本文は切り詰めない（2026-08-08に「続きを見る」の仕組みを廃止）。
   カルーセルに出す口コミはIDで選ぶので、長さの揃ったものを並べる。 */



/* ============================================
   追従バナー（商標記事）
   ============================================ */
/*
 * 固定するときは、バーを本文の外（body直下）へ移してから貼り付ける。
 *
 * 本文の中に置いたままだと、吹き出しや表のブロックがバーより手前に描画された。
 * z-indexを999まで上げても直らず、本文側が別の重なり順の土俵を作っているのが原因。
 * body直下に移せば土俵が1つになり、確実に手前に出せる（2026-08-08）。
 */
.ors-nav {
	margin: 0 0 1.5em;
}
.ors-nav-inner {
	padding: 10px 0;
}
/* ボタンの並び。固定していないときは本文の幅そのまま */
.ors-nav-row {
	display: flex;
	gap: 8px;
	max-width: var(--ors-nav-width, 100%);
	margin: 0 auto;
}
/* 固定時のバーは画面いっぱいに広げる。中のボタン列だけ本文幅に揃える */
.ors-nav-inner.is-stuck {
	position: fixed;
	top: var(--ors-nav-top, 0px);
	left: 0;
	right: 0;
	width: 100%;
	z-index: 9999;
	padding: 10px 16px;
	background: #fff;
	border-bottom: 1px solid #e3e8ef;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
/* 下固定 */
.ors-nav-inner.is-stuck.is-bottom {
	top: auto;
	bottom: 0;
	border-bottom: 0;
	border-top: 1px solid #e3e8ef;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, .08);
}
.ors-nav-btn {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 6px;
	border: 1px solid #c3ccda;
	border-radius: 8px;
	background: #fff;
	color: #2b4c7e;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	transition: background .15s;
}
.ors-nav-btn:hover { background: #f0f4fa; text-decoration: none; }

@media screen and (max-width: 599px) {
	.ors-nav-inner { padding: 8px 0; }
	.ors-nav-row { gap: 6px; }
	.ors-nav-inner.is-stuck { padding: 8px 10px; }
	.ors-nav-btn { font-size: 12.5px; min-height: 40px; padding: 6px 4px; }
}
