html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f8f7; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
.ranking-sample {
  --ink: #202d29;
  --muted: #69756f;
  --green: #087a55;
  --green-dark: #075239;
  --mint: #eef7f2;
  --line: #dfe6e2;
  --gold: #c69217;
  min-height: 100vh;
  background: #f7f8f7;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.55;
  letter-spacing: .01em;
}
.ranking-sample * { box-sizing: border-box; }
.ranking-sample a { color: inherit; }
.ranking-sample button, .ranking-sample select { font: inherit; }
.compact-ranking-sample { padding-bottom: 78px; }
.sample-notice { min-height: 30px; padding: 6px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #172d27; color: #dbe8e2; font-size: 9px; text-align: center; }
.sample-notice span { padding: 2px 6px; border-radius: 3px; background: #f2a828; color: #172d27; font: 900 8px/1.5 monospace; letter-spacing: .08em; }
.ranking-topnav { height: 55px; display: flex; align-items: stretch; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); }
.ranking-topnav a, .ranking-topnav button { min-width: 180px; padding: 0 28px; display: flex; align-items: center; justify-content: center; position: relative; border: 0; border-right: 1px solid var(--line); background: #fff; color: #5e6a65; text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 800; }
.ranking-topnav a:first-child { border-left: 1px solid var(--line); }
.topnav-label { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.topnav-icon { position: absolute; left: calc(50% - 57px); color: var(--green); font-size: 16px; line-height: 1; }
.category-list-icon { width: 16px; height: 14px; left: calc(50% - 64px); display: flex; flex-direction: column; justify-content: space-between; }
.category-list-icon i { width: 11px; height: 2px; margin-left: 5px; position: relative; border-radius: 2px; background: currentColor; }
.category-list-icon i::before { content: ""; width: 3px; height: 3px; position: absolute; top: 50%; left: -5px; transform: translateY(-50%); border-radius: 50%; background: currentColor; }
.ranking-topnav a.active { color: var(--ink); }
.ranking-topnav a.active::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; background: var(--green); }
.ranking-shell { max-width: 1040px; margin: 0 auto; padding: 28px 20px 70px; }
.compact-heading { min-height: 57px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 20px; }
.compact-heading-copy { min-width: 0; }
.compact-heading h1 { margin: 0; color: #172720; font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; font-size: 28px; font-weight: 900; font-feature-settings: "palt" 1; line-height: 1.16; letter-spacing: -.045em; white-space: nowrap; }
.ranking-title-main strong { color: var(--green); font: inherit; }
.ranking-title-scope { font-weight: 900; }
.compact-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; font-weight: 700; }
.compact-heading p b { color: var(--green); }
.compact-heading > time { color: var(--muted); font-size: 9px; white-space: nowrap; }
.compact-heading .ranking-donation-note { grid-column: 1 / -1; margin: 7px 0 0; padding: 0; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; text-align: right; overflow-wrap: anywhere; }
.provisional-ranking-notice { margin-top: 12px; padding: 11px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; border: 1px solid #e7c59f; border-radius: 8px; background: #fff7ed; color: #70401f; }
.provisional-ranking-notice strong { font-size: 13px; }
.provisional-ranking-notice span { font-size: 12px; }
.provisional-ranking-notice small { flex-basis: 100%; color: #815c40; font-size: 11px; }
.compact-filter-panel { margin-top: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 2px 8px rgba(20,48,39,.04); }
.keyword-search { min-height: 54px; padding: 8px 10px; display: grid; grid-template-columns: auto minmax(180px,1fr) auto auto; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.keyword-search > label { color: #45534d; font-size: 9px; font-weight: 900; }
.keyword-input-wrap { min-width: 0; height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #c9d6d0; border-radius: 5px; background: #fff; }
.keyword-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(8,122,85,.12); }
.keyword-input-wrap > span { color: var(--green); font-size: 18px; line-height: 1; }
.keyword-input-wrap input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.keyword-input-wrap input::placeholder { color: #98a39e; }
.keyword-input-wrap input::-webkit-search-cancel-button { display: none; }
.keyword-submit, .keyword-reset { height: 36px; padding: 0 16px; border-radius: 5px; cursor: pointer; font-size: 9px; font-weight: 900; white-space: nowrap; }
.keyword-submit { border: 1px solid var(--green); background: var(--green); color: #fff; }
.keyword-submit:hover { background: var(--green-dark); }
.keyword-reset { border: 1px solid #cbd7d1; background: #fff; color: #53615b; }
.category-label { min-height: 29px; padding: 6px 11px; display: flex; align-items: center; justify-content: space-between; background: #f5f7f6; border-bottom: 1px solid var(--line); }
.category-label strong { font-size: 9px; }
.category-label span { display: none; color: var(--green); font-size: 8px; font-weight: 800; }
.category-scroll-shell { position: relative; }
.category-tabs { display: grid; grid-template-columns: repeat(8, 1fr); overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button { min-height: 43px; padding: 0 10px; border: 0; border-right: 1px solid var(--line); background: #fff; color: #5d6964; cursor: pointer; font-size: 10px; font-weight: 800; white-space: nowrap; }
.category-tabs button.active { background: var(--green); color: #fff; }
.category-scroll-button { display: none; }
.ranking-controls { min-height: 51px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--mint); border-top: 1px solid var(--line); }
.period-tabs { display: flex; gap: 5px; }
.period-tabs button { min-width: 68px; padding: 7px 11px; border: 0; border-radius: 4px; background: transparent; color: #66736d; cursor: pointer; font-size: 9px; font-weight: 800; }
.period-tabs button.active { background: #fff; color: var(--green); box-shadow: 0 1px 5px rgba(19,70,51,.12); }
.sort-control { display: flex; align-items: center; gap: 8px; }
.sort-control span { color: var(--muted); font-size: 8px; font-weight: 800; }
.sort-control select { height: 34px; min-width: 178px; padding: 0 28px 0 10px; border: 1px solid #ccd9d2; border-radius: 5px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 800; }
.sample-data-line { min-height: 32px; padding: 8px 3px; color: var(--muted); font-size: 8px; }
.sample-data-line span, .sample-data-line b { color: var(--green); }
.sample-data-line span { margin-right: 4px; font-weight: 900; }
.sample-data-line small { float: right; font-size: 8px; }
.compact-ranking-list { overflow: hidden; background: #fff; border: 1px solid #d6ded9; border-radius: 8px; }
.ranking-table-head { min-height: 38px; padding-right: 34px; display: grid; grid-template-columns: 56px minmax(0,1fr) 180px 250px; background: #eef3f0; border-bottom: 1px solid #cfdad4; }
.ranking-table-head > div { min-width: 0; padding: 0 10px; display: flex; align-items: center; border-right: 1px solid #d8e1dc; color: #52615a; font-size: 9px; font-weight: 900; }
.ranking-table-head > div:first-child { justify-content: center; }
.compact-gift-row { min-height: 104px; padding: 9px 34px 9px 8px; display: grid; grid-template-columns: 48px minmax(0,1fr) 180px 250px; gap: 8px; align-items: center; position: relative; border-bottom: 1px solid var(--line); }
.compact-gift-row:last-child { border-bottom: 0; }
.compact-gift-row:hover { background: #fbfdfc; }
.compact-rank { text-align: center; }
.compact-rank span { display: block; height: 13px; color: #aab1ad; font-size: 11px; line-height: 1; }
.compact-rank strong { display: block; margin-top: 3px; color: #59645f; font: 900 22px/1 monospace; }
.top-1 .compact-rank span, .top-1 .compact-rank strong { color: var(--gold); }
.top-2 .compact-rank span, .top-2 .compact-rank strong { color: #90999d; }
.top-3 .compact-rank span, .top-3 .compact-rank strong { color: #b17c46; }
.compact-product { min-width: 0; display: grid; grid-template-columns: 80px minmax(0,1fr); align-items: center; gap: 10px; }
.compact-thumb-link { width: 80px; height: 76px; display: block; border-radius: 6px; }
.compact-thumb-link:focus-visible { outline: 3px solid rgba(18,113,78,.45); outline-offset: 2px; }
.compact-product > div:last-child { min-width: 0; }
.compact-product h2 { margin: 0 0 4px; overflow: hidden; color: #202824; font-size: 13px; line-height: 1.35; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.compact-title-link { color: inherit; text-decoration: none; }
.compact-title-link:hover { text-decoration: underline; }
.compact-title-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.compact-product > div:last-child > span { color: var(--muted); font-size: 8px; }
.compact-donation { margin: 8px 0 0; color: #000; font-size: var(--font-label); font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.compact-donation strong { font-weight: 800; }
.compact-donation .donation-label { color: #000; }
.compact-donation .donation-amount { color: #d32f2f; }
.compact-donation small { display: block; color: var(--muted); font-size: 9px; }
.donation-unavailable { color: var(--muted); font-size: 10px; }
.compact-thumb { width: 80px; height: 76px; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 6px; }
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.compact-thumb::after { content: ""; position: absolute; width: 78px; height: 78px; right: -30px; top: -30px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; }
.compact-thumb span { font-size: 38px; filter: drop-shadow(0 5px 6px rgba(80,50,22,.13)); }
.beef { background: linear-gradient(145deg,#f6ddd5,#ffefe8); }
.salmon { background: linear-gradient(145deg,#fee0c6,#fff2dc); }
.rice { background: linear-gradient(145deg,#edf1d2,#fffee7); }
.fruit { background: linear-gradient(145deg,#e9dcf4,#f8edff); }
.shell { background: linear-gradient(145deg,#dceef2,#effafd); }
.pork { background: linear-gradient(145deg,#f4d6da,#fff0f2); }
.eel { background: linear-gradient(145deg,#ead5bd,#f7e9d7); }
.hamburg { background: linear-gradient(145deg,#efd6c1,#fbecdc); }
.daily { background: linear-gradient(145deg,#dfeaf5,#f1f7fc); }
.citrus { background: linear-gradient(145deg,#ffe4ad,#fff4d5); }
.appliance { background: linear-gradient(145deg,#d9e7f2,#eef6fb); }
.compact-gift-main { min-width: 0; }
.review-summary { min-width: 0; display: flex; align-items: center; gap: 0; color: #4f5b56; font-size: 9px; line-height: 1; white-space: nowrap; }
.review-stars { color: #f2b300; font-size: 15px; letter-spacing: -1px; text-shadow: 0 1px 0 rgba(113,77,0,.12); }
.review-summary strong { color: #313b37; font-size: 11px; }
.review-summary > span:last-child { color: var(--muted); font-size: 8px; }
.compact-sites { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
.compact-sites a { min-width: 0; padding: 5px 3px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 4px; background: #fff; text-align: center; text-decoration: none; white-space: nowrap; font-size: 7px; font-weight: 800; }
.compact-sites a span, .compact-sites a small { overflow: hidden; text-overflow: ellipsis; }
.compact-sites a small { margin-top: 1px; color: #65736d; font-size: 5.5px; font-weight: 700; }
.compact-sites .rakuten { border-color: #d8b4b7; color: #9f1d28; }
.compact-sites .satofull { border-color: #e8b9aa; color: #c24a26; }
.compact-sites .furunavi { border-color: #afcad7; color: #17648c; }
.compact-sites .choice { border-color: #a9d2bf; color: #138756; }
.row-detail { width: 30px; height: 52px; position: absolute; right: 5px; top: 39px; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 30px; line-height: 1; }
.row-detail[aria-expanded="true"] { transform: rotate(90deg); }
.compact-reason { grid-column: 2 / 5; padding: 9px 11px; background: #f4f8f6; border-left: 3px solid var(--green); }
.compact-reason strong { font-size: 9px; }
.compact-reason p { margin: 2px 0; color: #53635c; font-size: 9px; }
.compact-reason small { color: var(--muted); font-size: 8px; }
.search-empty { min-height: 240px; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; border: 1px solid #d6ded9; border-radius: 8px; text-align: center; }
.search-empty > span { color: #a9b6b0; font-size: 36px; line-height: 1; }
.search-empty strong { margin-top: 12px; font-size: 15px; }
.search-empty p { margin: 5px 0 14px; color: var(--muted); font-size: 9px; }
.search-empty button { min-width: 110px; min-height: 34px; border: 1px solid var(--green); border-radius: 5px; background: #fff; color: var(--green); cursor: pointer; font-size: 9px; font-weight: 900; }
.ranking-population-note { margin: 10px 2px 0; color: var(--muted); font-size: 8px; text-align: right; }
.ranking-quick-qa { padding: 16px max(16px,calc((100% - 780px)/2)); background: #f6faf8; border-bottom: 1px solid var(--line); }
.qa-line { display: flex; align-items: center; gap: 12px; }
.qa-line + .qa-line { margin-top: 8px; }
.qa-line img { width: 58px; height: 58px; flex: 0 0 auto; object-fit: contain; border-radius: 50%; background: #fff; }
.qa-line p { margin: 0; padding: 12px 15px; position: relative; border-radius: 9px; font-size: 10px; line-height: 1.65; }
.qa-line p b { margin-right: 4px; color: var(--green); font-size: 12px; }
.qa-question p { flex: 1; background: #fff; border: 1px solid #dce6e1; }
.qa-question p::before { content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; transform: rotate(45deg); background: #fff; border-left: 1px solid #dce6e1; border-bottom: 1px solid #dce6e1; }
.qa-answer { justify-content: flex-end; }
.qa-answer p { max-width: calc(100% - 70px); background: #e7f5ee; color: #27453a; }
.qa-answer p::after { content: ""; position: absolute; right: -6px; top: 22px; width: 12px; height: 12px; transform: rotate(45deg); background: #e7f5ee; }
.compact-method { padding: 70px 20px; background: #18342d; color: #fff; text-align: center; }
.compact-method-inner { max-width: 780px; margin: 0 auto; }
.method-heading > span { color: #83d5ad; font-size: 9px; font-weight: 900; }
.compact-method h2 { margin: 8px 0 12px; font-size: 27px; line-height: 1.45; }
.compact-method p { max-width: 560px; margin: 0 auto; color: #b8cbc4; font-size: 10px; }
.method-back-link { width: fit-content; min-height: 42px; margin: 24px auto 28px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #83d5ad; border-radius: 22px; color: #fff; text-decoration: none; font-size: 10px; font-weight: 900; }
.method-back-link:hover { background: rgba(131,213,173,.12); }
.method-back-link span { color: #83d5ad; font-size: 15px; }
.ranking-flow { margin: 0 0 24px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.ranking-flow > div { min-height: 76px; padding: 13px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #46645b; border-radius: 7px; background: rgba(255,255,255,.025); }
.ranking-flow b { color: #83d5ad; font-size: 13px; }
.ranking-flow span { margin-top: 3px; color: #b8cbc4; font-size: 8px; }
.ranking-flow i { color: #83d5ad; font-size: 18px; font-style: normal; }
.compact-method ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid #46645b; border-left: 1px solid #46645b; list-style: none; }
.compact-method li { min-height: 72px; padding: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid #46645b; border-bottom: 1px solid #46645b; color: #b8cbc4; font-size: 9px; text-align: center; }
.compact-method li b { color: #83d5ad; font: 900 18px/1.2 monospace; }
.method-explanation { margin-top: 28px; padding: 24px 26px; border: 1px solid #46645b; border-radius: 8px; background: rgba(255,255,255,.035); text-align: left; }
.method-explanation h3 { margin: 0 0 15px; color: #fff; font-size: 16px; line-height: 1.5; text-align: center; }
.compact-method .method-explanation p { max-width: none; margin: 0 0 12px; color: #d2dfda; font-size: 11px; line-height: 1.9; }
.compact-method .method-explanation p:last-child { margin-bottom: 0; }
.compact-method .method-explanation .method-note { padding-top: 14px; border-top: 1px solid #46645b; color: #a9c0b7; font-size: 10px; }
.social-proof-section, .service-guide-section, .faq-section { max-width: 1040px; margin: 0 auto; padding: 54px 20px; }
.social-proof-section > header, .service-guide-section > header, .faq-section > header { margin-bottom: 22px; text-align: center; }
.social-proof-section header > span, .service-guide-section header > span, .faq-section header > span { color: var(--green); font-size: 9px; font-weight: 900; }
.social-proof-section h2, .service-guide-section h2, .faq-section h2 { margin: 5px 0 4px; color: #18342d; font-size: 24px; }
.social-proof-section header p, .service-guide-section header p { margin: 0; color: var(--muted); font-size: 9px; }
.social-embeds { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.social-embeds article { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.social-embeds h3 { min-height: 39px; margin: 0 0 10px; font-size: 11px; line-height: 1.55; }
.social-embeds h3 b { margin-right: 8px; color: var(--green); }
.social-embeds iframe { width: 100%; height: 510px; display: block; border: 0; border-radius: 6px; background: #f4f5f4; }
.service-guide-section { max-width: 1120px; background: #f7f9f8; }
.service-guide-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.service-guide-grid article { min-width: 0; overflow: hidden; display: grid; grid-template-columns: 44% minmax(0,1fr); border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.service-photo { min-height: 148px; display: block; overflow: hidden; background: #eef3f0; }
.service-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.service-guide-grid article > div { padding: 16px; }
.service-guide-grid article span { color: var(--green); font-size: 8px; font-weight: 900; }
.service-guide-grid h3 { margin: 5px 0; font-size: 15px; }
.service-guide-grid h3 a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.service-guide-grid p { margin: 0; color: var(--muted); font-size: 8px; }
.service-photo-note { margin: 10px 0 0; color: var(--muted); font-size: 7px; text-align: right; }
.faq-section { max-width: 860px; }
.faq-dialogues > .ranking-quick-qa { padding: 0; border: 0; background: transparent; }
.faq-dialogues > .qa-line:nth-child(2) { margin-top: 24px; }
.sample-footer-note { max-width: 720px; margin: 0 auto; padding: 42px 20px; text-align: center; }
.sample-footer-note strong { color: var(--green); font-size: 10px; }
.sample-footer-note p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.ranking-footer { min-height: 92px; padding: 24px max(20px,calc((100% - 1000px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #102720; color: #fff; }
.ranking-footer > div { display: flex; gap: 20px; }
.ranking-footer a, .ranking-footer p { color: #a8beb5; font-size: 8px; }
.floating-category-button { min-width: 250px; height: 52px; padding: 0 27px; display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; z-index: 30; left: 50%; bottom: max(16px,env(safe-area-inset-bottom)); transform: translateX(-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; background: rgba(25,39,35,.94); color: #fff; box-shadow: 0 8px 26px rgba(8,28,21,.3); cursor: pointer; font-size: 13px; font-weight: 900; backdrop-filter: blur(8px); }
.floating-category-button span { font-size: 22px; line-height: 1; }
.category-sheet-layer { position: fixed; z-index: 60; inset: 0; padding: 20px; display: flex; align-items: flex-end; justify-content: center; }
.category-sheet-backdrop { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(10,26,21,.52); cursor: default; }
.category-sheet { width: min(560px,100%); padding: 12px 20px 20px; position: relative; z-index: 1; border-radius: 18px 18px 10px 10px; background: #fff; box-shadow: 0 -14px 45px rgba(9,31,23,.25); animation: category-sheet-in .2s ease-out; }
.category-sheet-handle { width: 42px; height: 4px; margin: 0 auto 13px; border-radius: 4px; background: #d7dfdb; }
.category-sheet header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.category-sheet header span { color: var(--green); font-size: 8px; font-weight: 900; }
.category-sheet h2 { margin: 2px 0 0; font-size: 21px; }
.category-sheet header button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #f5f7f6; color: #52615a; cursor: pointer; font-size: 20px; line-height: 1; }
.category-sheet-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.category-sheet-grid button { min-height: 58px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #415049; cursor: pointer; }
.category-sheet-grid button.active { border-color: var(--green); background: var(--mint); color: var(--green); }
.category-sheet-grid strong { font-size: 11px; }
.category-sheet-grid span { color: var(--muted); font-size: 8px; }
.category-sheet > p { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 8px; }
@keyframes category-sheet-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 640px) {
  .sample-notice { min-height: 27px; padding: 4px 7px; gap: 6px; font-size: 7px; }
  .ranking-topnav { height: 49px; }
  .ranking-topnav a, .ranking-topnav button { min-width: 0; flex: 1; padding: 0 8px; gap: 5px; font-size: 10px; }
  .topnav-icon { left: 13px; font-size: 13px; }
  .category-list-icon { width: 14px; height: 12px; left: 2px; }
  .category-list-icon i { width: 9px; height: 2px; }
  .ranking-topnav a.active::after { left: 12px; right: 12px; }
  .ranking-shell { padding: 12px 0 48px; }
  .compact-heading { min-height: 68px; padding: 0 12px 13px; grid-template-columns: minmax(0,1fr); gap: 0; }
  .compact-heading h1 { font-size: 20px; line-height: 1.08; letter-spacing: -.05em; white-space: normal; }
  .ranking-title-main { display: block; white-space: nowrap; }
  .ranking-title-scope { display: block; margin-top: 3px; font-size: 13px; line-height: 1.15; letter-spacing: -.025em; }
  .compact-heading p { margin-top: 4px; font-size: 7px; line-height: 1.35; }
  .compact-heading > time { margin-top: 5px; justify-self: end; font-size: 9px; }
  .compact-heading .ranking-donation-note { margin-top: 5px; font-size: 11px; text-align: left; }
  .provisional-ranking-notice { margin: 0 10px 10px; padding: 10px 12px; gap: 4px 9px; }
  .provisional-ranking-notice strong { font-size: 12px; }
  .provisional-ranking-notice span { font-size: 11px; }
  .provisional-ranking-notice small { font-size: 10px; }
  .compact-filter-panel { margin: 6px 0 0; border-left: 0; border-right: 0; border-radius: 0; }
  .keyword-search { min-height: 48px; padding: 6px 8px; grid-template-columns: minmax(0,1fr) auto auto; gap: 5px; }
  .keyword-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .keyword-input-wrap { height: 34px; padding: 0 8px; gap: 5px; }
  .keyword-input-wrap > span { font-size: 16px; }
  .keyword-input-wrap input { font-size: 9px; }
  .keyword-submit, .keyword-reset { height: 34px; padding: 0 10px; font-size: 8px; }
  .category-label { min-height: 25px; padding: 4px 10px; }
  .category-label strong { font-size: 8px; }
  .category-label span { display: block; padding-right: 26px; }
  .category-tabs { display: flex; padding-right: 55px; }
  .category-tabs button { min-width: 74px; min-height: 39px; padding: 0 12px; font-size: 9px; }
  .category-scroll-shell.can-right::after { content: ""; width: 62px; position: absolute; top: 0; right: 0; bottom: 0; pointer-events: none; background: linear-gradient(90deg,rgba(255,255,255,0),#fff 75%); }
  .category-scroll-shell.can-left::before { content: ""; width: 56px; position: absolute; z-index: 1; top: 0; left: 0; bottom: 0; pointer-events: none; background: linear-gradient(270deg,rgba(255,255,255,0),#fff 75%); }
  .category-scroll-button { width: 34px; height: 34px; display: grid; place-items: center; position: absolute; z-index: 2; top: 3px; border: 1px solid #b9d4c6; border-radius: 50%; background: #fff; color: var(--green); font-size: 23px; line-height: 1; box-shadow: 0 2px 6px rgba(15,70,50,.12); }
  .category-next { right: 4px; }
  .category-prev { left: 4px; }
  .ranking-controls { min-height: 46px; padding: 6px 9px; gap: 8px; }
  .period-tabs { flex: 1; gap: 3px; }
  .period-tabs button { min-width: 0; flex: 1; padding: 6px 5px; font-size: 8px; }
  .sort-control span { display: none; }
  .sort-control select { width: 128px; min-width: 0; height: 31px; padding-left: 7px; font-size: 8px; }
  .sample-data-line { min-height: 27px; padding: 6px 10px; font-size: 7px; }
  .sample-data-line small { font-size: 7px; }
  .compact-ranking-list { border-left: 0; border-right: 0; border-radius: 0; }
  .ranking-table-head { min-height: 31px; padding-right: 23px; grid-template-columns: 28px minmax(0,1fr) 67px 74px; }
  .ranking-table-head > div { padding: 0 3px; font-size: 6.5px; }
  .compact-gift-row { min-height: 82px; padding: 6px 23px 6px 3px; grid-template-columns: 28px minmax(0,1fr) 67px 74px; gap: 4px; }
  .compact-rank span { height: 8px; font-size: 7px; }
  .compact-rank strong { margin-top: 2px; font-size: 15px; }
  .compact-product { grid-template-columns: 46px minmax(0,1fr); gap: 5px; }
  .compact-thumb-link { width: 46px; height: 54px; border-radius: 4px; }
  .compact-product h2 { margin-bottom: 2px; font-size: 9px; line-height: 1.3; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .compact-product > div:last-child > span { display: block; overflow: hidden; font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
  .compact-donation { margin-top: 8px; }
  .compact-donation small { font-size: 8px; }
  .donation-unavailable { font-size: 8px; }
  .compact-thumb { width: 46px; height: 54px; border-radius: 4px; }
  .compact-thumb span { font-size: 26px; }
  .review-summary { flex-wrap: wrap; align-content: center; gap: 0; white-space: normal; }
  .review-stars { width: 100%; font-size: 9px; letter-spacing: -1px; white-space: nowrap; }
  .review-summary strong { font-size: 7px; }
  .review-summary > span:last-child { font-size: 6px; }
  .compact-sites { gap: 2px; }
  .compact-sites a { padding: 3px 1px; font-size: 5.5px; }
  .compact-sites a small { font-size: 4.5px; }
  .row-detail { width: 22px; height: 34px; right: 0; top: 24px; font-size: 22px; }
  .compact-reason { grid-column: 2 / 5; padding: 6px 8px; }
  .compact-reason p { font-size: 8px; }
  .ranking-quick-qa { padding: 12px 10px; }
  .qa-line { gap: 7px; }
  .qa-line + .qa-line { margin-top: 6px; }
  .qa-line img { width: 42px; height: 42px; }
  .qa-line p { padding: 8px 9px; border-radius: 7px; font-size: 7.5px; line-height: 1.55; }
  .qa-line p b { font-size: 9px; }
  .qa-answer p { max-width: calc(100% - 49px); }
  .search-empty { min-height: 210px; border-left: 0; border-right: 0; border-radius: 0; }
  .search-empty strong { font-size: 13px; }
  .search-empty p { font-size: 8px; }
  .ranking-population-note { margin: 9px 10px 0; font-size: 7px; text-align: left; }
  .compact-method { padding: 48px 18px; }
  .compact-method h2 { font-size: 24px; }
  .compact-method p { max-width: 340px; }
  .method-back-link { min-height: 40px; margin: 22px auto 26px; padding: 0 18px; }
  .ranking-flow { grid-template-columns: 1fr; gap: 5px; }
  .ranking-flow > div { min-height: 62px; }
  .ranking-flow i { width: fit-content; justify-self: center; transform: rotate(90deg); font-size: 14px; pointer-events: none; }
  .compact-method ul { grid-template-columns: repeat(2,1fr); }
  .method-explanation { margin-top: 22px; padding: 20px 16px; }
  .method-explanation h3 { font-size: 15px; }
  .compact-method .method-explanation p { max-width: none; font-size: 11px; line-height: 1.85; }
  .social-proof-section, .service-guide-section, .faq-section { padding: 42px 12px; }
  .social-proof-section h2, .service-guide-section h2, .faq-section h2 { font-size: 20px; }
  .social-embeds { grid-template-columns: 1fr; gap: 12px; }
  .social-embeds iframe { height: 470px; }
  .service-guide-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-guide-grid article { grid-template-columns: 40% minmax(0,1fr); }
  .service-photo { min-height: 115px; }
  .service-guide-grid article > div { padding: 11px; }
  .service-guide-grid h3 { font-size: 12px; }
  .service-photo-note { text-align: left; }
  .ranking-footer { min-height: 110px; padding: 24px 18px; flex-direction: column; align-items: flex-start; }
  .ranking-footer > div { flex-wrap: wrap; gap: 12px; }
  .floating-category-button { width: calc(100% - 74px); min-width: 0; max-width: 330px; height: 50px; font-size: 12px; }
  .category-sheet-layer { padding: 0; }
  .category-sheet { width: 100%; padding: 10px 15px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
  .category-sheet h2 { font-size: 19px; }
  .category-sheet-grid { grid-template-columns: repeat(2,1fr); }
  .category-sheet-grid button { min-height: 52px; }
}

/* Readable type scale: body 16px, controls 14-16px, metadata 12-13px. */
.ranking-sample {
  --font-note: .75rem;
  --font-meta: .8125rem;
  --font-label: .875rem;
  --font-control: .9375rem;
  --font-body: 1rem;
  --font-product: 1.125rem;
  --muted: #56625c;
  font-size: var(--font-body);
  line-height: 1.7;
}
.sample-notice { min-height: 40px; font-size: var(--font-meta); line-height: 1.55; }
.sample-notice span { font-size: var(--font-note); }
.ranking-topnav { height: 64px; }
.ranking-topnav a, .ranking-topnav button { min-width: 200px; font-size: var(--font-control); line-height: 1.4; }
.compact-heading { min-height: 76px; }
.compact-heading h1 { font-size: 2rem; }
.compact-heading p, .compact-heading > time { font-size: var(--font-meta); line-height: 1.6; }
.provisional-ranking-notice strong { font-size: var(--font-body); }
.provisional-ranking-notice span { font-size: var(--font-label); }
.provisional-ranking-notice small { font-size: var(--font-meta); }
.keyword-search { min-height: 64px; }
.keyword-search > label { font-size: var(--font-label); }
.keyword-input-wrap { height: 44px; }
.keyword-input-wrap input { font-size: var(--font-body); }
.keyword-submit, .keyword-reset { min-height: 44px; height: 44px; font-size: var(--font-control); }
.category-label { min-height: 38px; }
.category-label strong { font-size: var(--font-label); }
.category-label span { font-size: var(--font-note); }
.category-tabs button { min-height: 48px; font-size: var(--font-label); line-height: 1.4; }
.ranking-controls { min-height: 62px; }
.period-tabs button { min-height: 44px; font-size: var(--font-label); line-height: 1.4; }
.sort-control span { font-size: var(--font-meta); }
.sort-control select { min-height: 44px; height: 44px; font-size: var(--font-label); }
.sample-data-line { min-height: 40px; font-size: var(--font-meta); line-height: 1.55; }
.sample-data-line small { font-size: var(--font-note); }
.ranking-shell { max-width: 1180px; }
.ranking-table-head { min-height: 46px; grid-template-columns: 64px minmax(0,1fr) 210px 300px; }
.ranking-table-head > div { font-size: var(--font-meta); }
.compact-gift-row { min-height: 128px; grid-template-columns: 56px minmax(0,1fr) 210px 300px; gap: 12px; }
.compact-product { grid-template-columns: 92px minmax(0,1fr); gap: 13px; }
.compact-thumb-link, .compact-thumb { width: 92px; height: 88px; }
.compact-rank span { height: auto; font-size: var(--font-note); line-height: 1.2; }
.compact-product h2 { font-size: var(--font-product); line-height: 1.5; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.compact-product > div:last-child > span { font-size: var(--font-meta); line-height: 1.5; }
.review-summary { gap: 2px; font-size: var(--font-label); line-height: 1.4; }
.review-stars { font-size: 1.125rem; }
.review-summary strong { font-size: var(--font-control); }
.review-summary > span:last-child { font-size: var(--font-meta); }
.compact-sites { gap: 7px; }
.compact-sites a { min-height: 44px; padding: 6px 5px; justify-content: center; font-size: var(--font-label); line-height: 1.35; }
.compact-sites a small { font-size: var(--font-note); line-height: 1.35; }
.compact-reason strong { font-size: var(--font-body); }
.compact-reason p { margin: 4px 0; font-size: var(--font-body); line-height: 1.75; }
.compact-reason small { font-size: var(--font-meta); line-height: 1.6; }
.search-empty strong { font-size: 1.125rem; }
.search-empty p { font-size: var(--font-body); line-height: 1.7; }
.search-empty button { min-height: 44px; font-size: var(--font-control); }
.ranking-population-note { font-size: var(--font-meta); line-height: 1.6; }
.qa-line p { font-size: var(--font-body); line-height: 1.75; }
.qa-line p b { font-size: var(--font-body); }
.method-heading > span { font-size: var(--font-label); }
.compact-method h2 { font-size: 1.75rem; }
.compact-method p { max-width: 760px; font-size: var(--font-body); line-height: 1.8; }
.method-back-link { min-height: 44px; font-size: var(--font-control); }
.ranking-flow > div { min-height: 96px; }
.ranking-flow b { font-size: var(--font-body); line-height: 1.45; }
.ranking-flow span { font-size: var(--font-meta); line-height: 1.5; }
.compact-method li { min-height: 92px; font-size: var(--font-label); line-height: 1.5; }
.compact-method li b { font-size: 1.375rem; }
.method-explanation h3 { font-size: 1.125rem; }
.compact-method .method-explanation p { font-size: var(--font-body); line-height: 1.85; }
.compact-method .method-explanation .method-note { font-size: var(--font-meta); }
.social-proof-section header > span, .service-guide-section header > span, .faq-section header > span { font-size: var(--font-label); }
.social-proof-section h2, .service-guide-section h2, .faq-section h2 { font-size: 1.75rem; }
.social-proof-section header p, .service-guide-section header p { font-size: var(--font-body); line-height: 1.7; }
.social-embeds h3 { font-size: var(--font-body); line-height: 1.6; }
.service-guide-grid article span { font-size: var(--font-meta); line-height: 1.5; }
.service-guide-grid h3 { font-size: 1.125rem; line-height: 1.5; }
.service-guide-grid p { font-size: var(--font-body); line-height: 1.7; }
.service-photo-note { font-size: var(--font-note); }
.sample-footer-note strong { font-size: var(--font-body); }
.sample-footer-note p { font-size: var(--font-body); line-height: 1.7; }
.ranking-footer a, .ranking-footer p { font-size: var(--font-label); line-height: 1.6; }
.floating-category-button { min-height: 56px; height: 56px; font-size: var(--font-body); }
.category-sheet header span { font-size: var(--font-meta); }
.category-sheet h2 { font-size: 1.5rem; }
.category-sheet-grid strong { font-size: var(--font-body); }
.category-sheet-grid span, .category-sheet > p { font-size: var(--font-meta); line-height: 1.5; }
.category-sheet-grid button { min-height: 64px; }

@media (max-width: 900px) {
  .ranking-shell { padding-left: 0; padding-right: 0; }
  .compact-heading { padding-left: 16px; padding-right: 16px; }
  .provisional-ranking-notice { margin-left: 12px; margin-right: 12px; }
  .compact-filter-panel, .compact-ranking-list { border-left: 0; border-right: 0; border-radius: 0; }
  .ranking-table-head { width: 1px; height: 1px; min-height: 0; padding: 0; position: absolute; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compact-gift-row { min-height: 0; padding: 14px 48px 14px 8px; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto auto auto; gap: 10px 12px; align-items: start; }
  .compact-rank { grid-column: 1; grid-row: 1 / span 3; padding-top: 8px; }
  .compact-product { grid-column: 2; grid-row: 1; grid-template-columns: 72px minmax(0,1fr); gap: 10px; }
  .compact-thumb-link, .compact-thumb { width: 72px; height: 72px; }
  .compact-product h2 { font-size: var(--font-body); }
  .review-summary { grid-column: 2; grid-row: 2; min-height: 24px; flex-wrap: nowrap; white-space: normal; }
  .review-stars { width: auto; }
  .compact-sites { grid-column: 2; grid-row: 3; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .compact-reason { grid-column: 2; grid-row: 4; }
  .row-detail { width: 44px; height: 44px; top: 14px; right: 2px; }
  .ranking-controls { flex-wrap: wrap; }
  .period-tabs { flex: 1 1 280px; }
  .sort-control { flex: 1 1 190px; justify-content: flex-end; }
  .sort-control select { width: min(100%,240px); }
}

@media (max-width: 640px) {
  .sample-notice { min-height: 40px; padding: 7px 9px; font-size: var(--font-note); }
  .ranking-topnav { height: 58px; }
  .ranking-topnav a, .ranking-topnav button { min-width: 0; padding: 0 8px; flex: 1; font-size: var(--font-label); }
  .compact-heading { min-height: 0; padding: 15px 12px; }
  .compact-heading h1 { font-size: 1.5rem; line-height: 1.25; }
  .ranking-title-scope { font-size: var(--font-body); line-height: 1.35; }
  .compact-heading p { padding-right: 0; font-size: var(--font-meta); line-height: 1.55; }
  .compact-heading > time { margin-top: 5px; position: static; display: block; font-size: var(--font-note); }
  .keyword-search { min-height: 58px; padding: 7px 8px; }
  .keyword-input-wrap { height: 44px; }
  .keyword-input-wrap input { font-size: var(--font-body); }
  .keyword-submit, .keyword-reset { min-height: 44px; height: 44px; padding: 0 9px; font-size: var(--font-label); }
  .category-label { min-height: 38px; }
  .category-label strong { font-size: var(--font-label); }
  .category-tabs button { min-width: 92px; min-height: 48px; font-size: var(--font-label); }
  .ranking-controls { min-height: 0; padding: 8px; }
  .period-tabs button { min-height: 44px; font-size: var(--font-label); }
  .sort-control { justify-content: stretch; }
  .sort-control select { width: 100%; min-height: 44px; height: 44px; font-size: var(--font-label); }
  .sample-data-line { min-height: 0; padding: 9px 10px; font-size: var(--font-meta); }
  .sample-data-line small { float: none; display: block; margin-top: 2px; font-size: var(--font-note); }
  .compact-gift-row { padding: 12px 46px 12px 6px; grid-template-columns: 32px minmax(0,1fr); gap: 8px 8px; }
  .compact-product { grid-template-columns: 64px minmax(0,1fr); gap: 8px; }
  .compact-thumb-link, .compact-thumb { width: 64px; height: 68px; }
  .compact-product h2 { font-size: var(--font-body); line-height: 1.45; }
  .compact-product > div:last-child > span { font-size: var(--font-meta); }
  .review-stars { font-size: var(--font-body); }
  .review-summary strong { font-size: var(--font-control); }
  .review-summary > span:last-child { font-size: var(--font-meta); }
  .compact-sites a { min-height: 44px; font-size: var(--font-label); }
  .compact-sites a small { font-size: var(--font-note); }
  .compact-reason p { font-size: var(--font-body); }
  .qa-line { align-items: flex-start; }
  .qa-line img { width: 50px; height: 50px; }
  .qa-line p { padding: 11px 12px; font-size: var(--font-body); line-height: 1.75; }
  .qa-line p b { font-size: var(--font-body); }
  .qa-answer p { max-width: calc(100% - 57px); }
  .search-empty strong { font-size: 1.125rem; }
  .search-empty p { font-size: var(--font-body); }
  .ranking-population-note { font-size: var(--font-meta); }
  .compact-method h2 { font-size: 1.5rem; }
  .compact-method p { max-width: none; font-size: var(--font-body); }
  .ranking-flow b { font-size: var(--font-body); }
  .ranking-flow span { font-size: var(--font-meta); }
  .compact-method li { font-size: var(--font-label); }
  .method-explanation h3 { font-size: 1.125rem; }
  .compact-method .method-explanation p { font-size: var(--font-body); }
  .social-proof-section h2, .service-guide-section h2, .faq-section h2 { font-size: 1.5rem; }
  .service-guide-grid article { grid-template-columns: 1fr; }
  .service-guide-grid h3 { font-size: 1.125rem; }
  .service-guide-grid p { font-size: var(--font-body); }
  .service-photo-note { font-size: var(--font-note); }
  .ranking-footer a, .ranking-footer p { font-size: var(--font-label); }
  .floating-category-button { min-height: 56px; height: 56px; font-size: var(--font-body); }
  .category-sheet h2 { font-size: 1.5rem; }
  .category-sheet-grid strong { font-size: var(--font-body); }
  .category-sheet-grid span, .category-sheet > p { font-size: var(--font-meta); }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-sample *, .ranking-sample *::before, .ranking-sample *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Loading feedback and longer furusato ranking title. */
.compact-heading h1 { white-space: normal; }
.ranking-title-main strong { white-space: nowrap; }
.sample-data-line.is-loading { display: flex; align-items: center; gap: 8px; }
.ranking-loading-spinner {
  display: inline-block;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 3px solid #d6ded9;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: ranking-loading-spin .8s linear infinite;
}
.ranking-loading-spinner-inline { width: 16px; height: 16px; border-width: 2px; }
@keyframes ranking-loading-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .ranking-title-main { white-space: normal; }
  .ranking-title-prefix { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .ranking-loading-spinner { animation: none; }
}

/* Keep the donation amount below the rating, at the portal label's type size. */
.compact-review-price { min-width: 0; }
.compact-review-price .compact-donation { font-size: var(--font-label); }
@media (max-width: 900px) {
  .compact-review-price { grid-column: 2; grid-row: 2; }
}
