/* Rakutoko front page UI v1.1.6 — scoped to the homepage only */
body.home { background:#f6f7f8; }
body.home #content { margin-top:22px; }
body.home .main { background:transparent; border:none; box-shadow:none; padding-top:0; }
body.home .article-header .entry-title,
body.home .article-header .date-tags,
body.home .article-header .eye-catch,
body.home .article-header .sns-share,
body.home .article-header .read-time,
body.home .toc { display:none !important; }
body.home .entry-content { background:#fff; border:1px solid #e8eaed; border-radius:20px; padding:34px 42px; margin-top:22px; }
body.home .entry-content h2 { border:none; background:transparent; padding:0 0 10px; margin-top:44px; font-size:1.45rem; border-bottom:1px solid #e9ecef; }
body.home .entry-content h3 { border:none; padding:0; margin-top:28px; }
body.home .header-in { min-height:72px; }
body.home .logo-header { margin:0; }
body.home .site-name-text { font-weight:800; letter-spacing:.02em; }
body.home #navi .navi-in > ul > li > a { min-height:58px; }

.rpw-front-hub { width:100%; max-width:1180px; margin:0 auto 26px; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; color:#18212b; }
.rpw-hero { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr); gap:22px; align-items:stretch; }
.rpw-hero-copy { background:linear-gradient(135deg,#ffffff 0%,#f8fbff 65%,#eef5ff 100%); border:1px solid #dfe6ee; border-radius:24px; padding:40px 42px 34px; box-shadow:0 14px 36px rgba(20,32,48,.07); }
.rpw-kicker { display:inline-flex; align-items:center; gap:7px; margin:0 0 10px; padding:7px 11px; border-radius:999px; background:#eef3f8; color:#415064; font-size:.8rem; font-weight:800; letter-spacing:.04em; }
.rpw-hero h1 { margin:0; font-size:clamp(2.05rem,4vw,3.55rem); line-height:1.1; letter-spacing:-.04em; color:#101820; }
.rpw-lead { max-width:760px; margin:18px 0 22px; font-size:1.03rem; line-height:1.85; color:#445160; }
.rpw-search { display:flex; gap:8px; background:#fff; border:2px solid #202a36; border-radius:14px; padding:6px; box-shadow:0 8px 24px rgba(20,32,48,.08); }
.rpw-search input { flex:1; min-width:0; border:0 !important; box-shadow:none !important; outline:0; background:transparent; padding:12px 14px; font-size:16px; }
.rpw-search button { border:0; border-radius:10px; padding:0 20px; background:#18212b; color:#fff; font-weight:800; cursor:pointer; white-space:nowrap; }
.rpw-search button:hover { opacity:.9; }
.rpw-search-note { margin:8px 4px 0; color:#6c7784; font-size:.82rem; }
.rpw-danger-card { position:relative; overflow:hidden; background:#221b1b; border-radius:24px; padding:34px 30px; color:#fff; box-shadow:0 14px 36px rgba(20,32,48,.12); }
.rpw-danger-card:after { content:"!"; position:absolute; right:-4px; bottom:-54px; font-size:180px; line-height:1; font-weight:900; color:rgba(255,255,255,.055); }
.rpw-danger-badge { display:inline-block; padding:6px 10px; border-radius:999px; background:#ffefe9; color:#a63a16; font-size:.76rem; font-weight:900; }
.rpw-danger-card h2 { margin:18px 0 10px; font-size:1.45rem; line-height:1.35; color:#fff; }
.rpw-danger-card p { margin:0 0 22px; color:#e8e0df; line-height:1.75; font-size:.94rem; }
.rpw-danger-card a { position:relative; z-index:1; color:#fff; text-decoration:none; font-weight:800; border-bottom:1px solid rgba(255,255,255,.45); }
.rpw-quick-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:14px; }
.rpw-quick-card { display:flex; gap:13px; align-items:center; min-height:92px; padding:18px 18px; border:1px solid #e1e5e9; border-radius:18px; background:#fff; color:#18212b !important; text-decoration:none !important; box-shadow:0 7px 22px rgba(20,32,48,.045); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.rpw-quick-card:hover { transform:translateY(-2px); border-color:#c9d2db; box-shadow:0 12px 28px rgba(20,32,48,.08); }
.rpw-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:12px; background:#f0f3f6; font-size:1.25rem; font-weight:900; flex:0 0 40px; }
.rpw-quick-card b { display:block; margin-bottom:4px; font-size:.94rem; }
.rpw-quick-card small { display:block; color:#697583; font-size:.75rem; line-height:1.45; }
.rpw-recent { margin-top:18px; border:1px solid #e1e5e9; border-radius:20px; background:#fff; padding:20px; }
.rpw-section-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:14px; }
.rpw-section-head > div { display:flex; align-items:center; gap:9px; }
.rpw-live-dot { width:9px; height:9px; border-radius:50%; background:#d84d2f; box-shadow:0 0 0 5px rgba(216,77,47,.12); }
.rpw-section-head a { color:#46596f; font-size:.82rem; font-weight:700; }
.rpw-recent-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.rpw-recent-card { display:flex; flex-direction:column; min-height:132px; padding:16px; border-radius:14px; background:#f7f9fb; text-decoration:none !important; color:#18212b !important; }
.rpw-recent-card time { color:#7b8793; font-size:.72rem; font-weight:700; }
.rpw-recent-card strong { margin:8px 0 12px; line-height:1.55; font-size:.9rem; }
.rpw-recent-card span { margin-top:auto; color:#315d8c; font-size:.78rem; font-weight:800; }
.rpw-trust-row { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:12px; padding:0 6px; color:#66727e; font-size:.78rem; }
.rpw-sp-only { display:none; }

@media (max-width:980px) {
  .rpw-front-hub { padding:0 14px; }
  .rpw-hero { grid-template-columns:1fr; }
  .rpw-danger-card { padding:26px; }
  .rpw-quick-grid { grid-template-columns:repeat(2,1fr); }
  .rpw-recent-grid { grid-template-columns:1fr; }
  body.home .entry-content { margin-left:14px; margin-right:14px; padding:28px 24px; }
}
@media (max-width:600px) {
  body.home #content { margin-top:10px; }
  .rpw-front-hub { padding:0 10px; margin-bottom:16px; }
  .rpw-hero-copy { padding:28px 22px 24px; border-radius:20px; }
  .rpw-hero h1 { font-size:2.15rem; }
  .rpw-sp-only { display:block; }
  .rpw-lead { font-size:.93rem; line-height:1.75; }
  .rpw-search { display:block; padding:5px; }
  .rpw-search input { width:100%; padding:12px; }
  .rpw-search button { width:100%; min-height:44px; margin-top:4px; }
  .rpw-danger-card { border-radius:20px; }
  .rpw-quick-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .rpw-quick-card { min-height:108px; align-items:flex-start; padding:14px 12px; gap:9px; flex-direction:column; }
  .rpw-icon { width:34px; height:34px; flex-basis:34px; }
  .rpw-section-head { align-items:flex-start; flex-direction:column; gap:7px; }
  .rpw-trust-row { display:grid; gap:6px; }
  body.home .entry-content { margin:12px 10px 0; border-radius:18px; padding:24px 18px; }
}

/* v1.1.5 — Cocoonの右上ナビとは戦わない。
   トップページのPCではテーマ側ナビを隠し、専用ナビをコンテンツ幅の中に置く。 */
@media screen and (min-width: 1024px) {
  body.home #header-container #navi,
  body.home #header-container .navi {
    display:none !important;
  }

  body.home #header-container .header-container-in,
  body.home #header-container #header,
  body.home #header-container .header,
  body.home #header-container .header-in {
    width:100% !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
  }

  body.home #header-container .header-in {
    min-height:88px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    padding:14px 22px !important;
  }

  body.home #header-container .logo-header,
  body.home #header-container .site-name-text,
  body.home #header-container .site-name-text-link,
  body.home #header-container .tagline {
    text-align:left !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
}

.rpw-site-nav {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  width:100%;
  margin:0 0 14px;
  background:#fff;
  border:1px solid #e1e5e9;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(20,32,48,.035);
}
.rpw-site-nav a {
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:46px;
  padding:9px 10px;
  box-sizing:border-box;
  color:#27313d !important;
  text-decoration:none !important;
  text-align:center;
  font-size:.84rem;
  font-weight:760;
  line-height:1.35;
  border-right:1px solid #eceff2;
  background:#fff;
}
.rpw-site-nav a:last-child { border-right:0; }
.rpw-site-nav a:hover { background:#f6f8fa; }
.rpw-site-nav a.is-home { color:#111820 !important; }

@media (max-width:980px) {
  .rpw-site-nav {
    display:flex;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    border-radius:12px;
  }
  .rpw-site-nav::-webkit-scrollbar { display:none; }
  .rpw-site-nav a {
    flex:0 0 auto;
    min-width:max-content;
    padding:10px 15px;
  }
}


/* v1.1.6 — トップでは専用ナビだけを見せる。CocoonのPC/モバイル複製メニューを表示させない。 */
body.home #header-container #navi,
body.home #header-container .navi,
body.home #navi,
body.home .mobile-menu-buttons,
body.home .mobile-menu-content,
body.home #mobile-menu,
body.home .mobile-menu-button {
  display:none !important;
}

/* ヒーローは #content の外、ヘッダー直下へJSで移動する。広告より先に価値を見せる。 */
body.home .rpw-front-hub {
  margin-top:18px;
  margin-bottom:22px;
  padding-left:14px;
  padding-right:14px;
  box-sizing:border-box;
}

.rpw-search-chips {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:11px;
}
.rpw-search-chips a {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 10px;
  border:1px solid #dfe5ea;
  border-radius:999px;
  background:#fff;
  color:#3e5062 !important;
  text-decoration:none !important;
  font-size:.76rem;
  font-weight:750;
}
.rpw-search-chips a:hover { background:#f4f7f9; border-color:#cbd4dc; }

/* トップは「個人ブログ」より判断ツールを主役にする。記事本文や広告自体は削除しない。 */
body.home .author-box,
body.home .author-info,
body.home .sns-follow,
body.home .follow-button,
body.home .article-footer .sns-share,
body.home .article-footer .sns-follow {
  display:none !important;
}

@media (max-width:600px) {
  body.home .rpw-front-hub { margin-top:10px; padding-left:8px; padding-right:8px; }
  .rpw-search-chips { gap:6px; }
  .rpw-search-chips a { font-size:.72rem; padding:6px 9px; }
}


/* v1.1.7 — 2026-08-31実画面調整。
   広告要素にはセレクタを当てず、自作トップUIだけを整理する。 */
.rpw-front-hub {
  max-width:980px;
}
.rpw-hero {
  display:block;
}
.rpw-hero-copy {
  padding:34px 38px 30px;
}
.rpw-hero h1 {
  font-size:clamp(2rem,3.4vw,3rem);
}
.rpw-lead {
  max-width:820px;
  margin-top:14px;
  margin-bottom:18px;
}

/* 黒い大カードをやめ、検索の下に置く控えめな安全注意へ。 */
.rpw-danger-card {
  margin-top:12px;
  padding:14px 18px 15px;
  border:1px solid #efcfc7;
  border-left:4px solid #c85b3e;
  border-radius:14px;
  background:#fff8f6;
  color:#3b2823;
  box-shadow:none;
}
.rpw-danger-card:after { display:none; }
.rpw-danger-badge {
  padding:4px 8px;
  background:#fbe5df;
  color:#944127;
  font-size:.72rem;
}
.rpw-danger-card h2 {
  display:inline;
  margin:0 8px 0 8px;
  color:#34231f;
  font-size:.98rem;
  line-height:1.5;
}
.rpw-danger-card p {
  display:inline;
  margin:0;
  color:#67534d;
  font-size:.84rem;
  line-height:1.7;
}
.rpw-danger-card a {
  display:block;
  width:max-content;
  max-width:100%;
  margin-top:8px;
  color:#8d3b24 !important;
  border-bottom:1px solid #d9a798;
  font-size:.82rem;
}
.rpw-quick-grid {
  margin-top:12px;
}
.rpw-quick-card {
  min-height:82px;
  padding:15px 16px;
}
.rpw-recent {
  margin-top:14px;
}

@media (max-width:980px) {
  .rpw-front-hub { max-width:760px; }
  .rpw-hero-copy { padding:30px 28px 26px; }
}

@media (max-width:600px) {
  .rpw-front-hub { max-width:none; }
  .rpw-hero-copy { padding:23px 18px 20px; }
  .rpw-hero h1 { font-size:1.9rem; line-height:1.16; }
  .rpw-kicker { font-size:.72rem; }
  .rpw-lead { margin:12px 0 15px; }
  .rpw-danger-card { padding:12px 13px; }
  .rpw-danger-card h2,
  .rpw-danger-card p { display:block; margin-left:0; }
  .rpw-danger-card h2 { margin-top:7px; font-size:.94rem; }
  .rpw-danger-card p { margin-top:3px; font-size:.8rem; }
  .rpw-quick-card { min-height:96px; }
}

/* v1.1.8 — PSE常設ページ。広告や広告コンテナには一切触れない。 */
.rpw-search-chips a.is-new {
  border-color:#d7b96a;
  background:#fffaf0;
  color:#6f5210 !important;
}
.rpw-evergreen-note {
  margin:0 0 22px;
  padding:16px 18px;
  border:1px solid #ddcfab;
  border-left:4px solid #ad7b16;
  border-radius:12px;
  background:#fffaf0;
  color:#413719;
  line-height:1.8;
}
.rpw-pse-choice-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:18px 0 28px;
}
.rpw-pse-choice-grid > div {
  padding:16px;
  border:1px solid #e1e5e9;
  border-radius:12px;
  background:#f8fafb;
  line-height:1.7;
}
.rpw-pse-choice-grid strong {
  display:block;
  margin-bottom:5px;
  color:#1f2a34;
}
@media (max-width:700px) {
  .rpw-pse-choice-grid { grid-template-columns:1fr; }
}

/* v1.1.9 — HY300識別情報照合。広告要素には触れない。 */
.rpw-hy300-checker {
  margin:18px 0 30px;
  padding:20px;
  border:1px solid #dfe5ea;
  border-radius:16px;
  background:#f8fafb;
}
.rpw-hy300-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.rpw-hy300-grid label { font-weight:750; font-size:.88rem; color:#263440; }
.rpw-hy300-grid input,
.rpw-hy300-grid select {
  width:100%;
  margin-top:6px;
  min-height:44px;
  padding:9px 11px;
  border:1px solid #cfd7de;
  border-radius:10px;
  background:#fff;
  box-sizing:border-box;
  font:inherit;
}
.rpw-hy300-run {
  margin-top:14px;
  min-height:46px;
  padding:10px 18px;
  border:0;
  border-radius:10px;
  background:#18212b;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.rpw-hy300-result { margin-top:14px; line-height:1.75; }
.rpw-hy300-result > div { padding:14px 15px; border-radius:10px; }
.rpw-hy300-result .is-match { background:#fff3ef; border:1px solid #efc8bc; }
.rpw-hy300-result .is-review { background:#fff9e9; border:1px solid #e7d49c; }
.rpw-hy300-result .is-clear { background:#f3f7f9; border:1px solid #d7e0e6; }
.rpw-hy300-result p { margin:.45em 0 0; }
.rpw-hy300-result ul { margin:12px 0; }
@media (max-width:700px) {
  .rpw-hy300-grid { grid-template-columns:1fr; }
  .rpw-hy300-checker { padding:15px; }
  .rpw-hy300-run { width:100%; }
}


/* v1.2.0 — GSCで出始めた掃除機部品の検索意図を、広告には触れず入口だけ強める。 */
.rpw-search-chips a.is-focus {
  border-color:#8394a5;
  background:#f4f7fa;
  color:#24384b !important;
  font-weight:850;
}

/* v1.2.1 — 掃除機部品ページ。広告要素には触れず、本文内の操作ツールだけを装飾。 */
.rpw-parts-tool {
  margin:28px 0 34px;
  padding:24px;
  border:1px solid #dce2e7;
  border-radius:18px;
  background:#fbfcfd;
  box-shadow:0 8px 24px rgba(20,32,48,.045);
}
.rpw-parts-tool-head h2 {
  margin:3px 0 8px !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  font-size:1.45rem !important;
}
.rpw-parts-tool-head p { margin:0 0 12px; }
.rpw-parts-eyebrow { color:#526171; font-size:.78rem; font-weight:800; letter-spacing:.03em; }
.rpw-part-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:16px; }
.rpw-part-choice {
  appearance:none;
  width:100%;
  padding:13px 14px;
  border:1px solid #dfe4e8;
  border-radius:12px;
  background:#fff;
  color:#202a35;
  text-align:left;
  cursor:pointer;
}
.rpw-part-choice:hover { border-color:#aeb8c2; }
.rpw-part-choice.is-selected { border-color:#536779; box-shadow:0 0 0 2px rgba(83,103,121,.12); background:#f5f8fa; }
.rpw-part-choice b { display:block; margin-bottom:3px; font-size:.91rem; }
.rpw-part-choice span { color:#697684; font-size:.75rem; line-height:1.45; }
.rpw-parts-build { margin-top:18px; padding:16px; border-radius:14px; background:#fff; border:1px solid #e3e7ea; }
.rpw-parts-fields { display:grid; grid-template-columns:1fr 1.35fr; gap:10px; }
.rpw-parts-fields label { color:#4a5968; font-size:.78rem; font-weight:800; }
.rpw-parts-fields select,
.rpw-parts-fields input { width:100%; min-height:43px; margin-top:5px; padding:8px 10px; border:1px solid #cfd7de; border-radius:9px; background:#fff; color:#202a35; font-size:16px; box-sizing:border-box; }
.rpw-parts-result { margin-top:13px; }
.rpw-parts-result small { display:block; color:#71808d; margin-bottom:5px; }
.rpw-parts-result strong { display:block; padding:11px 12px; border-radius:9px; background:#f1f4f6; word-break:break-word; }
.rpw-parts-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.rpw-parts-actions button,
.rpw-parts-actions a { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 13px; border-radius:9px; font-size:.82rem; font-weight:800; text-decoration:none !important; }
.rpw-parts-actions button { border:0; background:#202a35; color:#fff; cursor:pointer; }
.rpw-parts-actions button:disabled { opacity:.4; cursor:not-allowed; }
.rpw-parts-actions a { border:1px solid #ccd5dc; background:#fff; color:#2f4f69 !important; }
.rpw-parts-note { display:flex; gap:8px; margin-top:13px; padding:11px 12px; border-left:3px solid #c87d36; background:#fff8ef; color:#584536; font-size:.82rem; line-height:1.6; }
.rpw-parts-note b { flex:0 0 auto; }
.rpw-parts-next { display:flex; flex-wrap:wrap; gap:12px; margin-top:13px; font-size:.82rem; font-weight:750; }
.rpw-parts-next a { color:#315d7b !important; }

@media (max-width:600px) {
  .rpw-parts-tool { margin:22px -2px 28px; padding:18px 14px; border-radius:15px; }
  .rpw-part-choices { grid-template-columns:1fr; gap:7px; }
  .rpw-parts-fields { grid-template-columns:1fr; }
  .rpw-parts-note { display:block; }
  .rpw-parts-note b { display:block; margin-bottom:3px; }
}
