/*
Theme Name: Rimo Sagashi MVP
Theme URI: https://rimosagashi.com/
Author: MVP Project
Description: 公式根拠付きエアコン代替リモコン検索の検証版テーマ。
Version: 0.4.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: rimosagashi-mvp
*/

:root {
  --ink: #102633;
  --ink-soft: #4f626c;
  --blue: #0d84c6;
  --blue-deep: #056a9f;
  --sky: #dff3fb;
  --cream: #f4f4ed;
  --paper: #fffef9;
  --line: #dce3e2;
  --green: #1b8b62;
  --yellow: #f2b84b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rimosagashi-site {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}
.rimosagashi-site a { color: inherit; text-decoration: none; }
.rimosagashi-site button, .rimosagashi-site input { font: inherit; }
.rimosagashi-site button, .rimosagashi-site a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid rgba(16, 38, 51, .12);
}
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--ink); color: white; font: 800 19px/1 Georgia, serif;
  transform: rotate(-4deg);
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 16px; letter-spacing: .08em; }
.brand small { margin-top: 6px; color: var(--blue); font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.site-header nav a:hover { color: var(--blue); }
.pilot-label { padding: 8px 12px; border: 1px solid rgba(13,132,198,.25); border-radius: 999px; color: var(--blue-deep); font-size: 11px; font-weight: 800; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
  padding: 72px 0 76px;
}
.eyebrow { margin: 0 0 18px; color: var(--blue-deep); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.eyebrow span { display: inline-block; width: 28px; height: 2px; margin-right: 10px; vertical-align: middle; background: var(--blue); }
.hero h1 { margin: 0; font-size: clamp(48px, 6vw, 82px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 620px; margin: 25px 0 32px; color: var(--ink-soft); font-size: 17px; line-height: 1.85; }
.model-search { padding: 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(16,38,51,.08); }
.model-search > label { display: block; margin: 0 0 9px 8px; color: var(--ink-soft); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.search-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; min-height: 62px; padding-left: 10px; border: 2px solid var(--ink); border-radius: 12px; background: white; }
.search-icon { color: var(--blue); font: 30px/1 Georgia, serif; transform: rotate(-18deg); }
.search-row input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 20px; font-weight: 800; letter-spacing: .03em; }
.search-row input::placeholder { color: #98a6ab; font-size: 15px; font-weight: 500; }
.search-row button, .empty-result button { align-self: stretch; min-width: 150px; padding: 0 24px; border: 0; border-radius: 8px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; transition: .2s ease; }
.search-row button:hover, .empty-result button:hover { background: var(--blue-deep); transform: translateY(-1px); }
.search-row button:focus-visible, .rimosagashi-site a:focus-visible, .rimosagashi-site input:focus-visible { outline: 3px solid rgba(13,132,198,.35); outline-offset: 3px; }
.model-search > p { margin: 10px 8px 0; color: #74858c; font-size: 11px; line-height: 1.6; }
.noscript-notice { margin: 12px 0 0; padding: 12px 14px; border: 1px solid #ead9ab; border-radius: 10px; color: #665b3e; background: #fff9e8; font-size: 12px; line-height: 1.7; }
.trust-strip { display: flex; gap: 26px; margin-top: 22px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.trust-strip span { display: flex; align-items: center; gap: 7px; }
.trust-strip b { color: var(--blue); font-family: Georgia, serif; }

.remote-visual { position: relative; height: 520px; display: grid; place-items: center; }
.remote-visual::before { content: ""; position: absolute; width: 410px; height: 410px; border-radius: 50%; background: var(--sky); }
.remote-visual::after { content: ""; position: absolute; width: 330px; height: 80px; bottom: 28px; border-radius: 50%; background: rgba(16,38,51,.12); filter: blur(12px); }
.remote-body { z-index: 2; width: 196px; height: 430px; padding: 30px 22px; border: 1px solid #c7d0d0; border-radius: 42px; background: linear-gradient(145deg, #fff, #e8edeb); box-shadow: -20px 28px 45px rgba(16,38,51,.22), inset -10px -10px 20px rgba(16,38,51,.06); transform: rotate(10deg); }
.remote-screen { height: 96px; padding: 14px 18px; border: 5px solid #d5dcda; border-radius: 12px; background: #bed5cb; color: #26443f; }
.remote-screen small { display: block; font: 800 9px/1 sans-serif; letter-spacing: .15em; }
.remote-screen strong { display: block; margin-top: 7px; font: 700 40px/1 "Courier New", monospace; }
.remote-power { width: 42px; height: 42px; margin: 22px auto 16px; border-radius: 50%; display: grid; place-items: center; color: white; background: #ef6262; box-shadow: inset 0 -4px 7px rgba(0,0,0,.16); font-size: 12px; }
.remote-pad { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; height: 46px; padding: 0 14px; border-radius: 24px; background: #d6dddb; color: #40545a; text-align: center; font-weight: 800; box-shadow: inset 0 -3px 4px rgba(0,0,0,.1); }
.remote-pad i { width: 1px; height: 28px; background: #b2bfbc; }
.remote-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; padding: 20px 10px; }
.remote-buttons i { height: 18px; border-radius: 8px; background: #d1d8d6; box-shadow: inset 0 -2px 3px rgba(0,0,0,.1); }
.signal { position: absolute; z-index: 1; width: 100px; height: 100px; border: 3px solid var(--blue); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-45deg); opacity: .38; }
.signal-one { top: 42px; left: 76px; }
.signal-two { width: 145px; height: 145px; top: 20px; left: 54px; opacity: .2; }
.verified-float, .model-float { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 12px; background: white; box-shadow: 0 14px 32px rgba(16,38,51,.15); font-size: 12px; font-weight: 800; }
.verified-float { top: 92px; right: 5px; }
.verified-float i { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; color: white; background: var(--green); font-style: normal; }
.model-float { bottom: 75px; left: 12px; color: var(--blue-deep); font-family: "Courier New", monospace; letter-spacing: .08em; }

.result-section, .how-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 104px 0; }
.result-section { border-top: 1px solid rgba(16,38,51,.12); scroll-margin-top: 20px; }
.section-heading { max-width: 700px; margin-bottom: 40px; }
.section-heading h2 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.18; letter-spacing: -.04em; }
.section-heading > p:last-child { margin: 0; color: var(--ink-soft); line-height: 1.8; }
.result-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 22px; }
.answer-card, .confidence-card, .notice-card, .how-grid article, .detail-main-card, .detail-side-card { border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.answer-card { padding: 28px; }
.answer-topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: #76868c; font-size: 11px; font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: var(--green); background: #e5f5ee; }
.status-badge i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: white; background: var(--green); font-style: normal; font-size: 10px; }
.answer-models { display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; gap: 14px; padding: 30px 0; }
.answer-models > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--sky); font-size: 20px; }
.answer-models small, .answer-facts small { display: block; margin-bottom: 8px; color: #718289; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.answer-models strong { font: 800 clamp(24px, 3vw, 38px)/1 "Courier New", monospace; letter-spacing: -.05em; }
.answer-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.answer-facts > div { padding: 17px; border-right: 1px solid var(--line); }
.answer-facts > div:last-child { border-right: 0; }
.answer-facts b { font-size: 14px; }
.stock { color: var(--green); }
.stock i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.stock.stock-warning { color: #a07516; }
.stock.stock-warning i { background: var(--yellow); }
.best-choice { margin-top: 22px; padding: 24px; border-radius: 16px; color: white; background: var(--ink); }
.best-choice > span { color: #8acbed; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.best-choice h3 { margin: 8px 0; font-size: 21px; }
.best-choice p { margin: 0 0 18px; color: #c6d1d5; font-size: 12px; line-height: 1.7; }
.best-choice a { display: inline-flex; justify-content: space-between; width: 100%; padding: 14px 17px; border-radius: 9px; background: var(--blue); font-size: 13px; font-weight: 800; transition: .2s ease; }
.best-choice a:hover { background: #1594d6; }
.confidence-card { padding: 28px; text-align: center; }
.confidence-card > p:first-child { margin: 0 0 18px; color: #708086; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.confidence-ring { width: 102px; height: 102px; margin: 0 auto 16px; border: 8px solid #d8efe7; border-top-color: var(--green); border-right-color: var(--green); border-radius: 50%; display: grid; place-content: center; transform: rotate(6deg); }
.confidence-ring strong, .confidence-ring span { transform: rotate(-6deg); }
.confidence-ring strong { font: 800 36px/1 Georgia, serif; color: var(--green); }
.confidence-ring span { margin-top: 3px; color: var(--green); font-size: 9px; font-weight: 800; }
.confidence-card h3 { margin: 0 0 20px; font-size: 16px; }
.confidence-card ul { margin: 0; padding: 0; list-style: none; text-align: left; }
.confidence-card li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.confidence-card li i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; font-style: normal; }
.confidence-card li.done i { color: var(--green); background: #e5f5ee; }
.confidence-card li.pending { color: #7a898e; }
.confidence-card li.pending i { color: #a07516; background: #fbf0d4; }
.confidence-note { margin: 14px 0 0 !important; color: #7a898e !important; font-size: 10px !important; line-height: 1.6; }
.notice-card { display: flex; align-items: flex-start; gap: 16px; margin-top: 22px; padding: 22px 25px; border-color: #ead9ab; background: #fff9e8; }
.notice-card > span { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--yellow); font: 800 18px/1 Georgia, serif; }
.notice-card h3 { margin: 1px 0 6px; font-size: 15px; }
.notice-card p { margin: 0; color: #665b3e; font-size: 12px; line-height: 1.7; }
.detail-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.detail-links a { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 2px solid var(--ink); background: transparent; font-size: 13px; font-weight: 800; }
.detail-links a:hover { color: var(--blue); border-color: var(--blue); }

.empty-result { width: min(900px, calc(100% - 48px)); margin: 20px auto 90px; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); text-align: center; scroll-margin-top: 20px; }
.empty-result h2 { font-size: 30px; }
.empty-result > p:not(.eyebrow) { max-width: 650px; margin: 0 auto 24px; color: var(--ink-soft); line-height: 1.8; }
.empty-result button { min-height: 48px; }

.evidence-section { padding: 104px max(24px, calc((100% - 1180px) / 2)); color: white; background: var(--ink); }
.section-heading.light > p:last-child { color: #a9bbc2; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.evidence-grid article { min-height: 250px; padding: 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.035); }
.evidence-grid article > b { float: right; color: #42606e; font: 700 36px/1 Georgia, serif; }
.evidence-grid article > span { display: inline-block; padding: 6px 9px; border-radius: 999px; color: #8ed4f7; background: rgba(13,132,198,.18); font-size: 10px; font-weight: 800; }
.evidence-grid h3 { margin: 70px 0 12px; font-size: 20px; }
.evidence-grid p { margin: 0; color: #a9bbc2; font-size: 13px; line-height: 1.8; }
.source-link { display: inline-flex; gap: 18px; margin-top: 30px; padding-bottom: 8px; border-bottom: 1px solid #8ed4f7; color: #8ed4f7 !important; font-size: 13px; font-weight: 800; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-grid article { padding: 28px; }
.how-grid article > span { color: var(--blue); font: 800 12px/1 "Courier New", monospace; }
.how-grid h3 { margin: 30px 0 10px; font-size: 18px; }
.how-grid p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }

.rimo-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 30px; padding: 44px max(24px, calc((100% - 1180px) / 2)); border-top: 1px solid rgba(16,38,51,.12); }
.footer-brand { grid-row: auto; }
.footer-copy { display: grid; gap: 8px; max-width: 680px; }
.rimo-footer p { margin: 0; color: #718289; font-size: 10px; text-align: right; }

.detail-page { min-height: 100vh; }
.detail-header { border-bottom: 0; }
.back-link { color: var(--blue-deep) !important; font-size: 13px; font-weight: 800; }
.detail-hero { padding: 90px max(24px, calc((100% - 960px) / 2)) 120px; color: white; background: var(--ink); }
.detail-hero .eyebrow { color: #8ed4f7; }
.detail-hero h1 { margin: 0; font: 800 clamp(50px, 8vw, 88px)/1 "Courier New", monospace; letter-spacing: -.06em; }
.detail-hero > p:not(.eyebrow) { color: #a9bbc2; }
.detail-relation { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 20px; margin-top: 45px; padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.04); }
.detail-relation > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: white; }
.detail-relation small { display: block; margin-bottom: 8px; color: #8ed4f7; font-size: 10px; font-weight: 800; }
.detail-relation strong { font: 800 clamp(22px, 4vw, 36px)/1 "Courier New", monospace; }
.detail-content { width: min(960px, calc(100% - 48px)); margin: -60px auto 0; padding-bottom: 100px; display: grid; grid-template-columns: 1.5fr .7fr; gap: 22px; align-items: start; }
.detail-main-card, .detail-side-card { padding: 28px; box-shadow: 0 18px 45px rgba(16,38,51,.08); }
.detail-main-card h2, .detail-side-card h2 { margin: 28px 0 18px; font-size: 22px; }
.detail-main-card dl { margin: 0; }
.detail-main-card dl div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.detail-main-card dt { color: #718289; font-size: 12px; }
.detail-main-card dd { margin: 0; text-align: right; font-weight: 800; }
.notice-inline { display: flex; gap: 15px; margin-top: 20px; padding: 17px; border-radius: 12px; background: #fff5da; }
.notice-inline b { color: #9b7114; }
.notice-inline p { margin: 0; color: #665b3e; font-size: 12px; line-height: 1.7; }
.detail-side-card p { color: var(--ink-soft); font-size: 12px; line-height: 1.7; }
.detail-side-card a { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); color: var(--blue-deep); font-size: 12px; font-weight: 800; }
.detail-side-card small { display: block; margin-top: 18px; color: #7a898e; }

.applicable-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 104px; }
.model-chip-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.model-chip-list a { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 800 12px/1.2 "Courier New", monospace; overflow-wrap: anywhere; transition: .2s ease; }
.model-chip-list a:hover { color: var(--blue-deep); border-color: var(--blue); transform: translateY(-1px); }

.not-found-main {
  width: min(720px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 0;
}
.not-found-main .brand { margin-bottom: 70px; }
.error-code { margin: 0 0 8px; color: var(--blue); font: 800 70px/1 Georgia, serif; }
.not-found-main h1 { margin: 0; font-size: clamp(32px, 6vw, 56px); letter-spacing: -.04em; }
.not-found-main > p:not(.error-code) { margin: 20px 0 32px; color: var(--ink-soft); line-height: 1.8; }
.home-button { padding: 15px 22px; border-radius: 10px; color: white !important; background: var(--blue); font-weight: 800; }
.home-button:hover { background: var(--blue-deep); }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .remote-visual { height: 440px; }
  .result-grid, .detail-content { grid-template-columns: 1fr; }
  .confidence-card { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; text-align: left; }
  .confidence-card > p:first-child, .confidence-card h3 { grid-column: 1 / -1; }
  .confidence-ring { margin: 0; }
  .confidence-card ul { align-self: center; }
  .confidence-note { grid-column: 1 / -1; }
  .model-chip-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .site-header, .hero, .result-section, .how-section, .detail-content, .applicable-section { width: min(100% - 30px, 1180px); }
  .site-header { height: 74px; }
  .pilot-label { display: none; }
  .hero { gap: 20px; padding: 46px 0 54px; }
  .hero h1 { font-size: 45px; }
  .hero-lead { font-size: 15px; }
  .model-search { padding: 10px; }
  .search-row { grid-template-columns: 30px 1fr; padding: 9px 9px 9px 12px; }
  .search-row input { font-size: 17px; }
  .search-row button { grid-column: 1 / -1; min-height: 48px; margin-top: 10px; }
  .trust-strip { flex-wrap: wrap; gap: 12px 20px; }
  .remote-visual { height: 390px; margin: -25px 0; overflow: hidden; }
  .remote-visual::before { width: 300px; height: 300px; }
  .remote-body { transform: rotate(8deg) scale(.82); }
  .result-section, .how-section, .evidence-section { padding-top: 76px; padding-bottom: 76px; }
  .answer-models { grid-template-columns: 1fr; text-align: center; }
  .answer-models > span { margin: 0 auto; transform: rotate(90deg); }
  .answer-facts, .evidence-grid, .how-grid, .detail-links { grid-template-columns: 1fr; }
  .answer-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .answer-facts > div:last-child { border-bottom: 0; }
  .confidence-card { display: block; text-align: center; }
  .confidence-ring { margin: 0 auto 16px; }
  .confidence-card ul { text-align: left; }
  .rimo-footer { grid-template-columns: 1fr; }
  .footer-brand { grid-row: auto; margin-bottom: 18px; }
  .rimo-footer p { text-align: left; line-height: 1.6; }
  .detail-hero { padding-top: 65px; }
  .detail-relation { grid-template-columns: 1fr; text-align: center; }
  .detail-relation > span { margin: 0 auto; transform: rotate(90deg); }
  .model-chip-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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