:root {
  --bg: #f6f6f2;
  --ink: #232823;
  --muted: #747a70;
  --line: #dfe2d8;
  --green: #d8f16c;
  --dark: #27352a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Noto Sans JP",
    sans-serif;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
header {
  height: 86px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: -0.7px;
  font-weight: 850;
  text-decoration: none;
}
.mark {
  font-size: 30px;
}
.beta {
  font-size: 9px;
  letter-spacing: 1px;
  background: #edf0e7;
  padding: 5px 6px;
  margin-left: 10px;
}
nav {
  display: flex;
  gap: 32px;
  align-self: stretch;
}
.nav {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 0 3px;
}
.nav.active {
  color: var(--ink);
  border-bottom: 3px solid #354931;
}
.nav span {
  font-size: 11px;
  background: #edf0e7;
  border-radius: 5px;
  padding: 2px 5px;
  margin-left: 5px;
}
.button {
  background: var(--dark);
  color: white;
  border: 0;
  border-radius: 6px;
  padding: 13px 20px;
  font-weight: 600;
}
.small {
  font-size: 12px;
}
.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
}
aside {
  padding: 38px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 86px);
}
.side-label,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #7e8774;
}
.side-label {
  margin: 0 12px 20px;
}
.category {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  background: none;
  border: 0;
  text-align: left;
  color: #626b5e;
  border-radius: 6px;
  margin: 4px 0;
  font-size: 12px;
}
.category.active {
  background: #e7ecdc;
  color: #253422;
  font-weight: 700;
}
.category svg {
  width: 19px;
  height: 19px;
}
.side-bottom {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding: 25px 10px;
  font-size: 11px;
}
.side-bottom p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 10px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #789255;
  margin-right: 5px;
}
.side-bottom button,
.import {
  display: block;
  background: none;
  border: 0;
  text-align: left;
  padding: 8px 0;
  color: #59694e;
  font-size: 11px;
  cursor: pointer;
}
.import input {
  display: none;
}
main {
  min-width: 0;
  padding: 38px 40px 20px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.hero {
  position: relative;
  overflow: hidden;
  background: #e9ecdf;
  border: 1px solid #dfe4d3;
  border-radius: 9px;
  padding: 35px 34px 29px;
  min-height: 330px;
}
.hero .eyebrow {
  color: #5d6f4c;
  font-size: 9px;
}
h1 {
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: -1.8px;
  margin: 17px 0 12px;
  font-weight: 750;
}
.hero p {
  font-size: 11px;
  color: #69755e;
  position: relative;
  z-index: 2;
}
.searchbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin-top: 25px;
  max-width: 640px;
  background: white;
  border: 1px solid #d8dfcd;
  padding: 7px 8px 7px 16px;
  border-radius: 6px;
  box-shadow: 0 4px 12px #25342205;
}
.searchbar > span {
  font-size: 28px;
  margin-right: 12px;
}
.searchbar input {
  width: 100%;
  border: 0;
  outline: none;
  min-width: 0;
  font-size: 12px;
}
.searchbar button {
  white-space: nowrap;
  background: #f0f3e9;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  padding: 10px;
}
.quick {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}
.quick span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #838f75;
}
.quick button {
  background: none;
  border: 0;
  color: #5d6c4c;
  font-size: 10px;
  padding: 0;
}
.hero-art {
  position: absolute;
  right: 55px;
  top: 35px;
  width: 210px;
  height: 210px;
  opacity: 0.75;
  transform: rotate(-20deg);
}
.lens {
  border: 1px solid #adb89a;
  border-radius: 50%;
  position: absolute;
}
.l1 {
  width: 210px;
  height: 210px;
}
.l2 {
  width: 165px;
  height: 165px;
  left: 23px;
  top: 23px;
  border-width: 12px;
  border-color: #ccd4bc;
}
.l3 {
  width: 110px;
  height: 110px;
  left: 50px;
  top: 50px;
  background: repeating-conic-gradient(#c1caaa 0deg 1deg, transparent 1deg 30deg);
  border-width: 15px;
}
.art-caption {
  position: absolute;
  top: 224px;
  left: 30px;
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 2px;
  color: #869374;
  transform: rotate(20deg);
}
.notice {
  display: flex;
  gap: 10px;
  color: #737b69;
  font-size: 10px;
  line-height: 1.8;
  padding: 17px 2px 22px;
}
.notice > span {
  font-size: 15px;
}
.notice strong {
  color: #526044;
}
.tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 12px 0 23px;
}
.tools h2 {
  font-size: 20px;
  margin: 8px 0 0;
  letter-spacing: -0.7px;
}
.tools h2 span {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters select,
.filters > input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px;
  font-size: 11px;
  max-width: 136px;
}
.filters label {
  font-size: 10px;
  white-space: nowrap;
}
.filters input[type="checkbox"] {
  accent-color: var(--dark);
  vertical-align: middle;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px #25342209;
}
.visual {
  height: 130px;
  background: #eef0e9;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.visual svg {
  width: 105px;
  height: 84px;
  color: #667158;
  stroke-width: 1.2;
}
.visual .type {
  position: absolute;
  left: 15px;
  top: 14px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #8a927f;
}
.visual .number {
  position: absolute;
  right: 15px;
  bottom: 12px;
  font-size: 10px;
  color: #929b87;
  font-family: monospace;
}
.card:nth-child(3n + 2) .visual {
  background: #f0eee8;
}
.card:nth-child(3n + 3) .visual {
  background: #e9eeeb;
}
.card-body {
  padding: 19px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #88927b;
  text-transform: uppercase;
}
.card h3 {
  font-size: 16px;
  margin: 8px 0;
  line-height: 1.5;
}
.card .desc {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 15px;
  flex: 1;
}
.links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
.links a {
  flex: 1;
  text-decoration: none;
  text-align: center;
  border: 1px solid #dfe3d6;
  border-radius: 4px;
  padding: 10px 3px;
  font-size: 10px;
  background: #fafbf8;
}
.links a:hover {
  background: #e8eddd;
}
.links a.yahoo {
  background: #f7f3eb;
  border-color: #e8e1d3;
}
.save-btn {
  position: absolute;
  right: 13px;
  top: 10px;
  border: 0;
  background: #ffffffbd;
  border-radius: 50%;
  width: 29px;
  height: 29px;
  font-size: 18px;
  color: #68735b;
}
.save-btn.saved {
  background: var(--green);
  color: #263220;
}
.price {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin: 9px 0;
}
.price small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: #858c7a;
  margin-left: 8px;
}
.meta {
  font-size: 10px;
  color: #7b8470;
  line-height: 1.8;
}
.tags {
  display: flex;
  gap: 5px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.tag {
  font-size: 9px;
  padding: 4px 6px;
  background: #f0f2eb;
  border-radius: 3px;
  color: #68755c;
}
.tag.source {
  background: #f9eae8;
  color: #ae685f;
}
.tag.source.yahoo {
  background: #f5edd9;
  color: #967b3c;
}
.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  align-items: center;
}
.card-actions a {
  flex: 1;
}
.text-btn {
  border: 0;
  background: none;
  padding: 5px;
  font-size: 10px;
  color: #7c8572;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  background: white;
  border: 1px dashed #d7dfca;
  padding: 60px 20px;
  border-radius: 8px;
  color: #7c8772;
  line-height: 2;
}
.empty strong {
  font-size: 18px;
  color: #405335;
}
#customSearch:empty,
#savedSearches:empty {
  display: none;
}
#customSearch {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #e9efda;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 12px;
  flex-wrap: wrap;
}
#customSearch a {
  background: white;
  padding: 10px;
  text-decoration: none;
  border-radius: 4px;
}
#savedSearches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-chip {
  display: flex;
  align-items: center;
  background: #e9eddf;
  border-radius: 4px;
}
.search-chip button {
  background: none;
  border: 0;
  padding: 8px;
  font-size: 10px;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  color: #8b9281;
  font-size: 9px;
}
footer > span {
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  white-space: nowrap;
}
footer p {
  flex: 1;
  line-height: 1.8;
}
footer button {
  background: none;
  border: 0;
  font-size: 9px;
  color: inherit;
  white-space: nowrap;
}
dialog {
  border: 1px solid #d4dcc8;
  border-radius: 10px;
  padding: 27px;
  max-width: 560px;
  width: calc(100% - 30px);
  color: var(--ink);
  max-height: 90vh;
}
dialog::backdrop {
  background: #17231370;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  font-size: 20px;
  margin: 0;
}
.close {
  background: none;
  border: 0;
  font-size: 27px;
  color: #879079;
}
form label {
  display: block;
  font-size: 11px;
  margin: 14px 0;
}
form input,
form select,
form textarea {
  display: block;
  width: 100%;
  border: 1px solid #dce1d3;
  border-radius: 5px;
  padding: 10px;
  margin-top: 6px;
  background: #fff;
  font-size: 12px;
}
textarea {
  resize: vertical;
  min-height: 70px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.muted {
  font-size: 10px;
  line-height: 1.8;
  color: #858d7a;
}
#infoDialog p {
  line-height: 1.9;
  font-size: 12px;
}
#formError {
  color: #b04435;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #263629;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  font-size: 12px;
  transition: opacity 0.2s;
  z-index: 5;
}
#toast.show {
  opacity: 1;
}
:focus-visible {
  outline: 2px solid #7e9a53;
  outline-offset: 3px;
}
@media (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  main {
    padding: 25px;
  }
  .layout {
    grid-template-columns: 185px 1fr;
  }
  aside {
    padding: 30px 13px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-art {
    right: -65px;
    opacity: 0.3;
  }
  .tools {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  header {
    height: 70px;
    padding: 0 18px;
    gap: 10px;
  }
  .logo {
    font-size: 15px;
  }
  .mark {
    font-size: 24px;
  }
  .beta {
    display: none;
  }
  nav {
    gap: 13px;
  }
  .nav {
    font-size: 11px;
  }
  header .small {
    font-size: 0;
    padding: 9px;
  }
  header .small:after {
    content: "＋";
    font-size: 19px;
  }
  .layout {
    display: block;
  }
  aside {
    min-height: 0;
    border-right: 0;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  #categories {
    display: flex;
    overflow: auto;
    gap: 7px;
  }
  .category {
    flex-shrink: 0;
    width: auto;
    white-space: nowrap;
    padding: 9px 11px;
    font-size: 10px;
    gap: 5px;
  }
  .category svg {
    width: 15px;
    height: 15px;
  }
  main {
    padding: 18px 16px;
  }
  .hero {
    padding: 25px 21px;
    min-height: 0;
  }
  h1 {
    font-size: 29px;
    margin-top: 15px;
  }
  .hero p {
    font-size: 10px;
    max-width: 260px;
    line-height: 1.8;
  }
  .hero-art {
    right: -95px;
    top: 15px;
  }
  .searchbar {
    margin-top: 22px;
    padding-left: 10px;
  }
  .searchbar input {
    font-size: 10px;
  }
  .searchbar button {
    font-size: 10px;
    padding: 8px;
  }
  .quick {
    gap: 10px;
  }
  .quick span {
    display: none;
  }
  .notice {
    font-size: 9px;
    padding-bottom: 16px;
  }
  .grid {
    gap: 10px;
  }
  .visual {
    height: 105px;
  }
  .visual svg {
    width: 80px;
    height: 65px;
  }
  .card-body {
    padding: 13px;
  }
  .card h3 {
    font-size: 13px;
  }
  .card .desc {
    font-size: 10px;
  }
  .links {
    flex-direction: column;
    gap: 5px;
  }
  .links a {
    font-size: 10px;
    padding: 9px;
  }
  .brand {
    font-size: 8px;
  }
  .price {
    font-size: 21px;
  }
  .price small {
    display: block;
    margin: 4px 0 0;
  }
  .card-actions {
    flex-wrap: wrap;
  }
  .card-actions .links {
    width: 100%;
  }
  .tools h2 {
    font-size: 18px;
  }
  footer {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  footer p {
    margin-top: 0;
  }
  .filters {
    gap: 6px;
  }
  .filters select,
  .filters > input {
    font-size: 10px;
    max-width: 125px;
  }
  #savedSearches {
    margin-bottom: 10px;
  }
  body:has(#addDialog[open]) {
    overflow: hidden;
  }
}
.source-status {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: -5px 0 22px;
}
.source-pill {
  font-size: 10px;
  background: #e7eddf;
  color: #546a42;
  border-radius: 4px;
  padding: 7px 9px;
}
.source-pill.error {
  background: #f3eae0;
  color: #967a4d;
}
.source-pill.off {
  background: #edeee9;
  color: #828879;
}
.listing-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}
.live-card .visual {
  height: 185px;
  background: #fff;
}
.live-card .save-btn {
  z-index: 1;
}
.feed-date {
  font-size: 9px;
  color: #8a9281;
  margin-top: 9px;
}
.notice {
  align-items: start;
}
.notice > div {
  flex: 1;
}
.notice button {
  white-space: nowrap;
}
.loading-card {
  height: 315px;
  background: linear-gradient(100deg, #ecefe6, #f7f8f3, #ecefe6);
  background-size: 200% 100%;
  animation: pulse 1.5s infinite;
  border-radius: 8px;
}
.live-search-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.live-search-links a {
  font-size: 10px;
  border: 1px solid #dce2d2;
  border-radius: 4px;
  padding: 7px 10px;
  text-decoration: none;
  background: white;
}
.visual .tag {
  position: absolute;
  left: 12px;
  top: 12px;
}
.page-note {
  font-size: 10px;
  color: #7c8870;
  margin: 12px 0;
}
.loadmore {
  grid-column: 1/-1;
  padding: 15px;
  background: #e8eddd;
  border: 0;
  border-radius: 5px;
  color: #425234;
}
.source.source-system5 {
  background: #e6ebf4;
  color: #496e96;
}
.source.source-videkin {
  background: #e9edf0;
  color: #546b7b;
}
@keyframes pulse {
  to {
    background-position: -200% 0;
  }
}
@media (max-width: 700px) {
  header nav {
    gap: 10px;
  }
  .nav {
    font-size: 9px;
  }
  .logo {
    font-size: 12px;
    gap: 5px;
  }
  .live-card .visual {
    height: 130px;
  }
  .source-pill {
    font-size: 9px;
    padding: 5px 7px;
  }
  .filters label {
    font-size: 9px;
  }
  .filters {
    gap: 5px;
  }
  .source-status {
    margin-bottom: 15px;
  }
  .feed-date {
    font-size: 8px;
  }
  .notice button {
    font-size: 9px;
  }
}
.refresh-button {
  font-size: 12px !important;
  white-space: nowrap;
  padding: 13px 18px !important;
  box-shadow: 0 3px 10px #283d2420;
}
.refresh-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.compare-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 8px 0 25px;
  flex-wrap: wrap;
}
.compare-toolbar[hidden] {
  display: none;
}
.compare-toolbar .button {
  font-size: 11px;
  padding: 11px 14px;
}
.compare-toolbar > span {
  font-size: 10px;
  color: #7c8772;
}
.index-pill {
  border: 1px solid #d8c78e;
  background: #f8f1d9;
  color: #8b7135;
  cursor: pointer;
}
.deal-box {
  padding: 9px 10px;
  border-radius: 5px;
  margin: 0 0 12px;
  background: #f1f2ed;
  color: #727c65;
  line-height: 1.6;
  font-size: 10px;
}
.deal-box strong {
  font-size: 10px;
}
.deal-box small {
  display: block;
  font-size: 9px;
}
.deal-box.bargain {
  background: #e5f1c8;
  color: #3f612a;
  border: 1px solid #c8db9f;
}
.deal-box.expensive {
  background: #f6ede3;
  color: #947145;
}
.compare-choice {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  padding: 9px 0;
  margin-top: auto;
}
.compare-choice input {
  accent-color: #425d30;
}
.model-compare {
  text-align: left;
  font-size: 10px !important;
  padding: 0 0 13px !important;
  color: #536e3d !important;
}
#compareDialog {
  max-width: 1080px;
  width: calc(100% - 28px);
}
.comparison-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}
th,
td {
  border-bottom: 1px solid #dfe4d6;
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 10px;
  background: #eff2e8;
  color: #657453;
}
td:first-child {
  min-width: 200px;
}
td small {
  display: block;
  font-size: 9px;
  line-height: 1.7;
  margin-top: 6px;
  color: #8a927d;
}
td strong {
  white-space: nowrap;
}
#compareContent h3 {
  font-size: 16px;
}
label:has(#dealOnly) {
  color: #56773a;
}
@media (max-width: 700px) {
  .notice {
    flex-wrap: wrap;
  }
  .refresh-button {
    width: 100%;
    margin-top: 8px;
  }
  .compare-toolbar {
    gap: 9px;
  }
  .compare-toolbar > span {
    width: 100%;
  }
  .compare-toolbar .button {
    font-size: 10px;
  }
  .deal-box {
    padding: 7px;
  }
  .deal-box strong {
    font-size: 9px;
  }
  .deal-box small {
    font-size: 8px;
  }
  .compare-choice {
    font-size: 10px;
  }
  .index-pill {
    font-size: 9px;
  }
  .comparison-scroll {
    margin: 0 -10px;
  }
}
.history-status {
  font-size: 11px;
  color: #677b50;
  background: #edf2e4;
  border-left: 3px solid #809b5c;
  padding: 13px 15px;
  line-height: 1.8;
  margin: 0 0 18px;
}
.search-explanation {
  font-size: 11px;
  color: #425b2b;
  width: 100%;
  margin-bottom: 10px;
}
.historical-panel {
  border-top: 1px solid #dfe4d6;
  margin-top: 24px;
  padding-top: 18px;
}
.price-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.price-stats span {
  padding: 13px 16px;
  background: #eef2e7;
  font-size: 10px;
  color: #687854;
  border-radius: 5px;
}
.price-stats strong {
  display: block;
  font-size: 18px;
  color: #354a28;
  margin-top: 7px;
}
.historical-panel table {
  font-size: 10px;
}
.historical-panel td:first-child {
  max-width: 340px;
}
.historical-panel .deal-box strong {
  font-size: 14px;
}
.historical-panel .deal-box small {
  font-size: 11px;
}
.top-recommendations {
  margin: 6px 0 25px;
  padding: 25px;
  border: 1px solid #dce4ce;
  background: #f0f4e7;
  border-radius: 8px;
}
.top-recommendations[hidden],
.field-shortcuts[hidden],
.mercari-live[hidden] {
  display: none;
}
.recommend-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.recommend-heading h2 {
  font-size: 21px;
  letter-spacing: -0.7px;
  margin: 9px 0;
}
.recommend-heading p {
  color: #7b876c;
  font-size: 10px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.recommend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.recommend-card {
  border: 1px solid #dbe3cb;
  background: #fff;
  border-radius: 6px;
  text-align: left;
  padding: 18px;
  color: #37492b;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.recommend-card > span {
  font-size: 12px;
  line-height: 1.7;
}
.recommend-card > strong {
  font-size: 20px;
}
.recommend-card small {
  font-size: 9px;
  color: #7e8a6f;
}
.recommend-card .recommend-stars {
  font-size: 14px;
  color: #6b8e2d;
}
.recommend-stars b {
  margin-left: 7px;
}
.recommend-pending {
  font-size: 11px;
  line-height: 1.9;
  padding: 14px;
  background: #ffffff9c;
  border-radius: 5px;
  color: #7a846c;
}
.rating-badge {
  position: absolute;
  bottom: 9px;
  left: 10px;
  background: #f0f1e9ef;
  color: #7a826a;
  font-size: 9px;
  padding: 6px 9px;
  border-radius: 4px;
  border: 1px solid #e0e5d8;
}
.rating-badge.recommended {
  background: #d9ec9af2;
  color: #35511a;
  border-color: #b5ce7d;
  font-weight: 700;
}
.field-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}
.field-shortcuts span {
  font-size: 10px;
  color: #7f8a70;
}
.field-shortcuts button,
.subcategory-chips button {
  border: 1px solid #dce3d0;
  background: white;
  color: #62784c;
  font-size: 11px;
  border-radius: 4px;
  padding: 9px 12px;
}
.subcategory-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.subcategory-chips:empty {
  display: none;
}
.mercari-live {
  border: 1px solid #ead6cd;
  background: #faf5ef;
  padding: 17px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 7px;
  margin: 15px 0 23px;
}
.mercari-live strong {
  font-size: 12px;
  color: #8a6251;
}
.mercari-live p {
  font-size: 10px;
  color: #958071;
  line-height: 1.8;
  margin-bottom: 0;
}
.mercari-live a {
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dfc8ba;
  padding: 11px 15px;
  font-size: 11px;
  color: #a06c54;
  text-decoration: none;
  border-radius: 5px;
}
.category {
  font-size: 11px;
  padding: 11px 12px;
}
.hero {
  min-height: 285px;
}
.hero h1 {
  font-size: 33px;
}
.side-bottom {
  margin-top: 40px;
}
@media (max-width: 700px) {
  .top-recommendations {
    padding: 17px;
  }
  .recommend-heading {
    display: block;
  }
  .recommend-heading h2 {
    font-size: 18px;
  }
  .recommend-grid {
    grid-template-columns: 1fr;
  }
  .mercari-live {
    display: block;
    padding: 15px;
  }
  .mercari-live a {
    display: block;
    margin-top: 13px;
    text-align: center;
  }
  .rating-badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .field-shortcuts {
    gap: 7px;
  }
  .field-shortcuts button,
  .subcategory-chips button {
    font-size: 10px;
    padding: 8px;
  }
  .field-shortcuts span {
    width: 100%;
  }
  .hero {
    min-height: 0;
  }
  .hero h1 {
    font-size: 27px;
  }
  .category {
    padding: 9px 11px;
    font-size: 10px;
  }
}
.resale-overview {
  background: #ebf1e5;
  border: 1px solid #cddcc2;
  border-radius: 8px;
  padding: 24px;
  margin: -8px 0 16px;
}
.resale-overview[hidden],
.resale-settings[hidden] {
  display: none;
}
.resale-overview h2 {
  font-size: 20px;
}
.resale-overview .button {
  font-size: 11px;
  padding: 11px 14px;
}
.resale-card {
  padding: 10px;
  border-radius: 5px;
  line-height: 1.7;
  margin: 0 0 12px;
  background: #f1f2ed;
  color: #7c846e;
  font-size: 10px;
}
.resale-card strong {
  display: block;
  font-size: 11px;
}
.resale-card small {
  display: block;
  font-size: 9px;
}
.resale-card.profitable {
  background: #dceec4;
  border: 1px solid #bad29e;
  color: #41632c;
}
.resale-card.loss {
  background: #f6e9e4;
  color: #996453;
}
.resale-settings {
  border: 1px solid #dce3d0;
  border-radius: 6px;
  padding: 15px 20px;
  margin: 0 0 22px;
  background: #fff;
}
.resale-settings summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #5f744d;
}
.resale-settings > p {
  font-size: 10px;
  line-height: 1.8;
  color: #839073;
}
.resale-fields {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.resale-fields label {
  font-size: 10px;
  color: #778567;
}
.resale-fields input {
  display: block;
  border: 1px solid #dce2d3;
  padding: 9px;
  border-radius: 4px;
  margin-top: 6px;
  width: 100%;
  color: #405631;
  background: #fafcf6;
}
.resale-analysis {
  border-top: 1px solid #dce3d0;
  margin-top: 24px;
  padding-top: 20px;
}
.resale-analysis h3 {
  font-size: 17px;
}
.resale-analysis th {
  width: 68%;
  font-weight: 400;
}
.profit-title {
  color: #4d792c !important;
  font-size: 18px !important;
}
@media (max-width: 700px) {
  .resale-overview {
    padding: 17px;
  }
  .resale-overview h2 {
    font-size: 18px;
  }
  .resale-overview .recommend-heading > div:last-child {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
  }
  .resale-fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .resale-settings {
    padding: 14px;
  }
  .resale-card strong {
    font-size: 10px;
  }
  .resale-card small {
    font-size: 8px;
  }
}
.amazon-box {
  border: 1px solid #e1dfcf;
  border-radius: 5px;
  padding: 11px;
  margin-bottom: 12px;
  background: #faf8f0;
  color: #7d765e;
  font-size: 10px;
  line-height: 1.7;
}
.amazon-box strong {
  display: block;
  font-size: 11px;
}
.amazon-box small {
  display: block;
  font-size: 9px;
}
.amazon-box > div {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
}
.amazon-box a {
  font-size: 10px;
  color: #9a752f;
}
.amazon-box .text-btn {
  font-size: 9px;
  padding: 0;
}
.amazon-box.amazon-cheaper {
  background: #fff0d8;
  border-color: #e6c58b;
  color: #956320;
}
.amazon-confirm {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.8;
}
.amazon-confirm input {
  width: auto;
  margin: 4px 0 0;
  flex-shrink: 0;
}
#amazonSearchLink {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 5px;
  background: #f7e9c9;
  color: #866025;
  text-decoration: none;
  font-size: 12px;
}
#amazonItemTitle {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.8;
}
#amazonError {
  font-size: 11px;
  color: #b14e3b;
}
.historical-panel + .amazon-box {
  margin-top: 15px;
}
@media (max-width: 700px) {
  .amazon-box {
    padding: 8px;
  }
  .amazon-box strong {
    font-size: 10px;
  }
  .amazon-box small {
    font-size: 8px;
  }
}

.search-providers {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin-top: 12px;
  font-size: 11px;
  color: #59694e;
}
.search-providers a {
  background: #fff3db;
  border: 1px solid #e8d5ac;
  padding: 9px 13px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
}
.search-providers small {
  font-size: 10px;
  color: #69755e;
}
.links a.amazon {
  background: #fff3db;
  color: #664b22;
}

/* Focused browsing layout */
.hero {
  min-height: 0;
  padding: 26px 28px;
}
.hero h1 {
  font-size: 30px;
  margin: 10px 0;
}
.hero-art {
  display: none;
}
.hero .searchbar {
  max-width: 850px;
  margin-top: 20px;
}
.hero .search-providers a {
  padding: 8px 12px;
}
.notice {
  padding: 14px 0;
  align-items: center;
}
.tools {
  margin: 18px 0;
}
.advanced-tools {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0 22px;
  background: #fff;
}
.advanced-tools > summary {
  padding: 13px 16px;
  cursor: pointer;
  font-size: 12px;
  color: #59694e;
}
.advanced-body {
  padding: 0 16px 16px;
}
.advanced-body .filters {
  margin: 10px 0;
  flex-wrap: wrap;
}
.product-details {
  margin: 12px 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.product-details > summary {
  cursor: pointer;
  color: #627454;
  font-size: 11px;
}
.product-details[open] > summary {
  margin-bottom: 12px;
}
.side-bottom > summary {
  cursor: pointer;
}
#saveSearch {
  display: none;
}
.card .links {
  flex-wrap: wrap;
}
.advanced-body .top-recommendations {
  margin-top: 16px;
}
@media (max-width: 700px) {
  .hero {
    padding: 20px;
  }
  .hero h1 {
    font-size: 25px;
  }
  .search-providers small {
    width: 100%;
  }
  .notice {
    flex-wrap: wrap;
  }
  .tools .filters {
    width: 100%;
  }
  .advanced-body {
    padding: 0 12px 12px;
  }
}

.overseas-search {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  max-width: 700px;
  font-size: 11px;
  color: #59694e;
}
.overseas-search summary {
  cursor: pointer;
  padding: 4px 0;
}
.overseas-search > div {
  padding: 12px 0 0;
}
.overseas-search a,
.ebay-product {
  display: inline-block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 11px;
}
.overseas-search p {
  line-height: 1.8;
  margin-bottom: 0;
}
.ebay-product {
  margin: 8px 0;
}

.ebay-listings {
  margin: 16px 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf0e7;
}
.ebay-listings h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.ebay-listings h2 small {
  font-size: 11px;
  color: var(--muted);
}
.ebay-listings .grid {
  margin-top: 14px;
}
.ebay-listings .muted {
  font-size: 11px;
}
.ebay-listings .price {
  font-size: 22px;
}

.unified-status {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.unified-status:empty {
  display: none;
}

/* ---- 総額・同条件比較（2026-10 追加） ---- */
.total-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2px 10px;
  padding: 9px 10px;
  border-radius: 5px;
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.5;
  border: 1px solid var(--line);
  background: #fff;
}
.total-box strong {
  font-size: 15px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.total-box small {
  grid-column: 1 / -1;
  font-size: 9px;
  color: var(--muted);
}
.total-box.sure {
  border-color: #c8db9f;
  background: #f4f9e6;
  color: #3f612a;
}
.total-box.estimate {
  border-color: #cfd8e8;
  background: #f2f5fa;
  color: #3e5170;
}
.total-box.unsure {
  border-style: dashed;
  color: #8a7a5d;
}
.total-box.unsure strong {
  font-size: 12px;
  color: #8a7a5d;
}
.compare-line {
  font-size: 10px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #5d6657;
}
.compare-line.best {
  color: #2f5a1f;
  font-weight: 600;
}
.compare-line.worse {
  color: #8a6236;
}
.compare-line.none {
  color: #9aa092;
}
.compare-line .text-btn {
  font-size: 10px;
  padding: 0 0 0 4px;
  text-decoration: underline;
}
.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin: 4px 0 8px;
}
.breakdown th,
.breakdown td {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  color: var(--muted);
}
.breakdown td {
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.breakdown tr:last-child th,
.breakdown tr:last-child td {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 0;
}
.source-status {
  margin: 0 0 14px;
}
.source-pill.ok {
  background: #e7eddf;
  color: #546a42;
}
.source-pill.warn {
  background: #f6f0d9;
  color: #85702f;
}
.source-pill.busy {
  background: #eef0f4;
  color: #5b6475;
}
.source-pill.info {
  background: #eef0f4;
  color: #5b6475;
}
.landed-settings {
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.landed-settings strong {
  font-size: 12px;
}
.landed-settings .check {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 6px;
}
.landed-settings .check input {
  display: inline;
  margin: 0;
  width: auto;
}
.card.foreign .visual {
  background: #f3f5f9;
}
@media (max-width: 720px) {
  .landed-settings .check {
    grid-column: 1 / -1;
  }
}
.breakdown th {
  background: none;
  padding-right: 8px;
}

/* ==========================================================================
   v2: 公開サイト向けの仕上げ（2026-11）
   既存スタイルの上に重ねる。文字サイズの底上げ・カードの統一・ヒーロー縮小・
   オーナー専用要素の非表示・フッター／ガイドを定義する。
   ========================================================================== */
:root {
  --bg: #f5f5f0;
  --ink: #1f241f;
  --muted: #6a7166;
  --line: #e1e4da;
  --accent: #3d5a2a;
  --accent-soft: #e8efdc;
  --surface: #ffffff;
  --radius: 10px;
}
html:not(.owner) .owner-only {
  display: none !important;
}
body {
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
}
a:hover {
  color: var(--accent);
}

/* ---- ヘッダー ---- */
header {
  height: 64px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffffeb;
  backdrop-filter: saturate(1.4) blur(10px);
}
.logo {
  font-size: 18px;
}
.mark {
  font-size: 24px;
}
.nav {
  font-size: 14px;
  font-weight: 600;
}
.nav.active {
  border-bottom-width: 2px;
}
.beta {
  background: var(--green);
}

/* ---- サイドバー ---- */
aside {
  padding: 28px 16px;
  min-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  align-self: start;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.side-label {
  font-size: 11px;
  letter-spacing: 1px;
  margin: 0 8px 10px;
}
.category {
  font-size: 13.5px;
  padding: 9px 10px;
  border-radius: 7px;
  line-height: 1.35;
  text-align: left;
}
.category:hover {
  background: #eef1e8;
}

/* ---- メイン ---- */
main {
  padding: 28px 36px 24px;
}
.hero {
  min-height: 0 !important;
  padding: 30px 32px 24px;
  border-radius: 14px;
  background:
    radial-gradient(1200px 300px at 100% 0%, #dfe8cf 0%, transparent 60%),
    #ebeee3;
}
.hero .eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
}
.hero h1 {
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 10px 0 10px;
}
.hero p {
  font-size: 14px;
  line-height: 1.75;
  color: #56614d;
  max-width: 720px;
  margin: 0;
}
.searchbar {
  margin-top: 20px;
  max-width: 720px;
  padding: 6px 8px 6px 16px;
  border-radius: 10px;
  border-color: #d3dbc6;
}
.searchbar:focus-within {
  border-color: #8aa66a;
  box-shadow: 0 0 0 3px #c9dcae66;
}
.searchbar > span {
  font-size: 24px;
  color: #6b7a5c;
}
.searchbar input {
  font-size: 16px; /* iOSでの自動ズームを防ぐ */
  padding: 10px 0;
  background: transparent;
}
.searchbar input::-webkit-search-cancel-button {
  cursor: pointer;
}
.quick {
  gap: 8px;
  margin-top: 14px;
}
.quick span,
.search-providers > span {
  font-size: 12px;
  letter-spacing: 0;
  color: #6f7b63;
  margin-right: 4px;
}
.quick button {
  font-size: 13px;
  color: #3e5130;
  background: #ffffffb3;
  border: 1px solid #d6dec9;
  border-radius: 999px;
  padding: 6px 12px;
}
.quick button:hover {
  background: #fff;
  border-color: #a9bb8f;
}
.search-providers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
}
.search-providers a {
  font-size: 13px;
  color: #4d5e3f;
  background: none;
  border: 0;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #b8c4a6;
}
.notice {
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  padding: 14px 2px 6px;
}
.notice strong {
  color: inherit;
}
.refresh-button {
  font-size: 13px !important;
  padding: 6px 10px !important;
  box-shadow: none;
  color: var(--accent) !important;
  background: none;
  border: 0;
}

/* ---- 一覧ツールバー ---- */
.tools {
  margin: 14px 0 16px;
  align-items: flex-end;
}
.tools .eyebrow {
  font-size: 11px;
}
.tools h2 {
  font-size: 22px;
  margin: 4px 0 0;
}
.tools h2 span {
  font-size: 13px;
}
.filters select,
.filters > input {
  font-size: 14px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid #d6dccc;
  background-color: #fff;
  padding: 0 12px;
}
.filters label {
  font-size: 13px;
}
.advanced-tools > summary {
  font-size: 14px;
}
.subcategory-chips button,
.field-shortcuts button {
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 13px;
}

/* ---- カード ---- */
.grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 16px;
}
.card {
  border-radius: var(--radius);
  border-color: var(--line);
}
.card:hover {
  transform: none;
  box-shadow: 0 8px 24px #1f2a1a14;
  border-color: #d2d9c6;
}
.live-card .visual {
  height: auto !important;
  aspect-ratio: 4 / 3;
  background: #f1f2ec;
  overflow: hidden;
}
.visual-link {
  display: block;
  width: 100%;
  height: 100%;
}
.visual-link svg {
  width: 40%;
  height: 100%;
  margin: auto;
  display: block;
  color: #a6ae99;
}
.listing-photo {
  object-fit: cover !important;
  padding: 0 !important;
  background: #f1f2ec !important;
  transition: transform 0.3s;
}
.card:hover .listing-photo {
  transform: scale(1.03);
}
.visual .tag {
  left: 10px;
  top: 10px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #ffffffe6;
  color: #3b4733;
  box-shadow: 0 1px 3px #0000001a;
}
.save-btn {
  width: 36px;
  height: 36px;
  right: 10px;
  top: 8px;
  font-size: 19px;
  background: #ffffffe6;
  box-shadow: 0 1px 3px #0000001f;
}
.rating-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  left: 10px;
  bottom: 10px;
}
.card-body {
  padding: 14px 16px 16px;
  gap: 0;
}
.brand {
  font-size: 11.5px;
  letter-spacing: 0.2px;
  text-transform: none;
  color: #7a8370;
}
.card h3 {
  font-size: 15px;
  line-height: 1.5;
  margin: 6px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.title-link {
  text-decoration: none;
  color: inherit;
}
.title-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price {
  font-size: 24px;
  margin: 6px 0 8px;
}
.price small {
  font-size: 12px;
}
.total-box {
  border-radius: 8px !important;
  font-size: 12.5px;
}
.total-box span {
  font-size: 12.5px !important;
}
.total-box strong {
  font-size: 15px !important;
}
.total-box small {
  font-size: 11.5px !important;
  line-height: 1.6;
}
.compare-line {
  font-size: 12.5px !important;
  line-height: 1.6;
  margin: 8px 0 0;
}
.compare-line .text-btn {
  font-size: 12.5px !important;
}
.deal-box {
  font-size: 12.5px;
  margin: 8px 0 0;
  border-radius: 8px;
}
.deal-box strong {
  font-size: 13px;
}
.deal-box small {
  font-size: 11.5px;
}
.product-details {
  margin-top: 10px;
  font-size: 13px;
}
.product-details > summary {
  font-size: 13px;
  color: #5d6a52;
  cursor: pointer;
  padding: 4px 0;
}
.product-details .meta,
.product-details .desc {
  font-size: 12px !important;
}
.breakdown th,
.breakdown td {
  font-size: 12px;
  padding: 7px 6px;
}
.ebay-product {
  display: inline-block;
  font-size: 12.5px;
  margin: 8px 0 2px;
}
.model-compare {
  font-size: 12.5px !important;
}
.live-card .links {
  margin-top: 12px;
}
.live-card .links a.primary-link {
  flex: 1;
  background: var(--dark);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 10px;
}
.live-card .links a.primary-link:hover {
  background: #1d281f;
  color: #fff;
}
.loadmore {
  font-size: 14px;
  border-radius: 10px;
}
.empty {
  font-size: 14px;
  line-height: 1.8;
}
.loading-card {
  height: 380px;
  border-radius: var(--radius);
}

/* ---- 詳細ツール ---- */
.advanced-tools {
  font-size: 13px;
}
.landed-settings,
.landed-settings label {
  font-size: 13px;
}
.muted,
.page-note {
  font-size: 12.5px;
  line-height: 1.75;
}
.top-recommendations .recommend-heading p {
  font-size: 13px;
}
.recommend-card > span {
  font-size: 13.5px;
}
.recommend-card small {
  font-size: 11.5px;
}
.compare-toolbar > span,
.text-btn {
  font-size: 13px;
}
.live-search-links a {
  font-size: 12.5px;
}
.search-explanation {
  font-size: 12.5px;
}
dialog {
  font-size: 14px;
  line-height: 1.8;
  max-width: 720px;
  width: calc(100% - 28px);
}
#infoDialog p {
  font-size: 14px;
}

/* ---- ガイド・SEO本文 ---- */
.seo-intro,
.guide {
  margin-top: 40px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.seo-intro h2,
.guide h2 {
  font-size: 20px;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}
.seo-intro p {
  font-size: 14px;
  line-height: 1.9;
  color: #48523f;
  margin: 0 0 10px;
}
.seo-intro ul {
  margin: 4px 0 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.9;
  color: #48523f;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.guide h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.guide p {
  font-size: 13.5px;
  line-height: 1.85;
  color: #56614d;
  margin: 0;
}

/* ---- フッター ---- */
footer {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 14px !important;
  font-size: 12.5px !important;
  color: #6f7768 !important;
  margin-top: 40px;
  padding: 26px 0 30px;
}
footer .footer-brand span {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.3px;
}
footer .footer-brand p {
  margin: 4px 0 0;
}
footer .disclosure {
  margin: 0;
  line-height: 1.85;
  max-width: 900px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-self: auto;
}
.footer-links a,
.footer-links .link-btn {
  font-size: 13px !important;
  color: #3e4d33 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #b8c4a6;
  background: none;
  border: 0;
  padding: 0;
}
footer .copyright {
  color: #8b9282;
}
.footer-owner button {
  font-size: 12px !important;
  margin-right: 14px;
}

/* ---- 静的ページ（運営者情報・プライバシーポリシー） ---- */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.doc h1 {
  font-size: 30px;
  margin: 0 0 24px;
}
.doc h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.doc p,
.doc li {
  font-size: 15px;
  line-height: 1.95;
  color: #3d4636;
}
.doc table {
  font-size: 14px;
}
.doc th {
  width: 160px;
  font-size: 13px;
}
.doc .back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
}
.doc .todo {
  background: #fff6d6;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ---- レスポンシブ ---- */
@media (max-width: 1100px) {
  main {
    padding: 22px 22px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  header {
    height: 56px;
    padding: 0 14px;
  }
  .logo {
    font-size: 15px;
  }
  .nav {
    font-size: 13px;
  }
  aside {
    position: sticky;
    top: 56px;
    z-index: 15;
    max-height: none;
    min-height: 0;
    padding: 8px 12px;
    background: #f5f5f0f2;
    backdrop-filter: blur(8px);
    overflow: visible;
  }
  #categories {
    scrollbar-width: none;
  }
  #categories::-webkit-scrollbar {
    display: none;
  }
  .category {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #dde2d4;
    background: #fff;
  }
  .category.active {
    background: var(--dark);
    color: #fff;
    border-color: var(--dark);
  }
  .category svg {
    display: none;
  }
  main {
    padding: 14px 12px;
  }
  .hero {
    padding: 20px 16px 16px;
    border-radius: 12px;
  }
  .hero h1 {
    font-size: 24px;
    margin: 6px 0 8px;
  }
  .hero p {
    font-size: 13px;
    max-width: none;
  }
  .searchbar {
    margin-top: 14px;
  }
  .searchbar input {
    font-size: 16px;
  }
  .quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 12px -16px 0;
    padding: 0 16px 2px;
    scrollbar-width: none;
  }
  .quick::-webkit-scrollbar {
    display: none;
  }
  .quick button {
    flex-shrink: 0;
    font-size: 12.5px;
  }
  .search-providers {
    margin-top: 10px;
  }
  .search-providers > span {
    width: 100%;
  }
  .notice {
    font-size: 12px;
    flex-wrap: nowrap;
  }
  .refresh-button {
    width: auto;
    margin-top: 0;
  }
  .tools {
    margin: 8px 0 12px;
  }
  .tools h2 {
    font-size: 19px;
  }
  .filters {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
  }
  .filters select,
  .filters > input {
    max-width: none !important;
    width: 100%;
    font-size: 14px !important;
  }
  .filters > input {
    grid-column: 1 / -1;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .card-body {
    padding: 10px 11px 12px;
  }
  .brand {
    font-size: 10.5px;
  }
  .card h3 {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }
  .price {
    font-size: 18px;
    margin: 4px 0 6px;
  }
  .price small {
    font-size: 10.5px;
  }
  .total-box {
    padding: 7px 8px !important;
    display: block !important;
  }
  .total-box span {
    display: block;
    font-size: 11px !important;
  }
  .total-box strong {
    font-size: 14px !important;
  }
  .total-box small {
    font-size: 10.5px !important;
  }
  .compare-line,
  .deal-box,
  .deal-box strong {
    font-size: 11.5px !important;
  }
  .deal-box small {
    font-size: 10.5px !important;
  }
  .product-details > summary {
    font-size: 12px;
  }
  .live-card .links a.primary-link {
    font-size: 12.5px;
    padding: 10px 6px;
  }
  .visual .tag {
    font-size: 10px;
    padding: 3px 6px;
    left: 6px;
    top: 6px;
  }
  .save-btn {
    width: 32px;
    height: 32px;
    font-size: 17px;
    right: 6px;
    top: 6px;
  }
  .rating-badge {
    font-size: 10px !important;
    left: 6px;
    bottom: 6px;
  }
  .seo-intro,
  .guide {
    padding: 20px 16px;
    margin-top: 28px;
  }
  .doc {
    padding: 24px 16px 48px;
  }
  .doc h1 {
    font-size: 24px;
  }
}
@media (max-width: 360px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* v2 追補 */
.quick {
  display: flex;
}
.filters select {
  min-width: 170px;
}
.live-card .product-details {
  margin-top: auto;
  padding-top: 10px;
}
.live-card .card-body > .total-box,
.live-card .card-body > .compare-line,
.live-card .card-body > .deal-box {
  flex: none;
}
@media (max-width: 700px) {
  .filters select {
    min-width: 0;
  }
}

.seo-cats {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-cats a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid #dbe1d0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  background: #fafbf7;
}
.seo-cats a:hover {
  border-color: #a9bb8f;
}
@media (max-width: 700px) {
  .tools {
    align-items: flex-start !important;
  }
  .notice #feedTime {
    display: none;
  }
}

.seo-intro[hidden] {
  display: none;
}
@media (max-width: 700px) {
  .hero .eyebrow {
    display: none;
  }
  .hero p {
    font-size: 12.5px;
    line-height: 1.7;
  }
  .search-providers {
    font-size: 12px;
  }
  .search-providers > span {
    width: auto;
  }
  .search-providers a {
    font-size: 12.5px;
  }
}

/* ==== v3: 総額の見せ方・状態ラベル・新着通知（2026-11-18） ==== */
.ship-note {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 0;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 6px;
}
.badges .brand {
  margin-left: 2px;
}
.cond-badge,
.time-left {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.cond-new {
  background: #e3f0d2;
  color: #2f5a17;
}
.cond-used {
  background: #eceee7;
  color: #4d5547;
}
.cond-parts {
  background: #f7e3dc;
  color: #8a3b22;
}
.time-left {
  background: #fff;
  border: 1px solid #dde2d4;
  color: #4d5547;
  font-weight: 500;
}
.time-left.soon {
  border-color: #e8b98f;
  color: #9a5317;
  background: #fff8f1;
}
.usd {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin: 2px 0 0 !important;
}
.total-box .usd {
  text-align: right;
}
.quick-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid #d6dccc;
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  user-select: none;
}
.toggle:has(input:checked) {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.toggle input {
  accent-color: var(--green);
  margin: 0;
}
.quick-filter-note {
  font-size: 12.5px;
  color: var(--muted);
}
.new-listings {
  border: 0;
  background: var(--green);
  color: #22301d;
  font-weight: 700;
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
  animation: pop 0.25s ease-out;
}
.new-listings[hidden] {
  display: none;
}
@keyframes pop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
}
@media (max-width: 700px) {
  .cond-badge,
  .time-left {
    font-size: 10px;
    padding: 3px 5px;
  }
  .ship-note {
    font-size: 11px;
  }
  .toggle {
    font-size: 12.5px;
  }
}
/* ---- 人気機種タイル・機種ページ ---- */
.quick a {
  font-size: 13px;
  color: #3e5130;
  background: #ffffffb3;
  border: 1px solid #d6dec9;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  white-space: nowrap;
}
.quick a:hover {
  background: #fff;
  border-color: #a9bb8f;
}
.crumbs {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.crumbs a {
  color: inherit;
}
.model-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 980px;
}
.model-stats[hidden] {
  display: none;
}
.model-stats .stat {
  background: #fff;
  border: 1px solid #d9e0cd;
  border-radius: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
a.stat:hover {
  border-color: #9fb383;
  box-shadow: 0 4px 14px #1f2a1a12;
}
.stat > span {
  font-size: 12px;
  color: var(--muted);
}
.stat > strong {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.stat > strong b {
  font-size: 13px;
  font-weight: 600;
  margin-left: 3px;
}
.stat > small {
  font-size: 11.5px;
  color: #7a8370;
}
.stat .usd {
  font-size: 12px;
}
body.model-page .hero .quick,
body.model-page .search-providers {
  display: none;
}
.featured {
  margin: 18px 0 6px;
}
.featured[hidden] {
  display: none;
}
.featured-head h2 {
  font-size: 18px;
  margin: 0 0 12px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.model-tile {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.model-tile:hover {
  border-color: #a9bb8f;
  box-shadow: 0 6px 18px #1f2a1a12;
  color: inherit;
}
.tile-cat {
  font-size: 11px;
  color: #7a8370;
}
.tile-name {
  font-size: 15px;
  line-height: 1.35;
}
.tile-type {
  font-size: 12px;
  color: var(--muted);
}
.tile-price {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--accent);
}
.tile-price b {
  font-size: 15px;
  color: var(--ink);
}
.seo-models {
  list-style: none;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.seo-models a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid #dbe1d0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  background: #fafbf7;
}
.lang-switch {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d6dccc;
  border-radius: 999px;
  padding: 5px 11px;
  color: #3e4d33;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .model-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .stat > strong {
    font-size: 18px;
  }
  .model-stats .stat {
    padding: 10px 11px;
  }
  .featured-grid {
    display: flex;
    overflow-x: auto;
    margin: 0 -12px;
    padding: 0 12px 4px;
    scrollbar-width: none;
  }
  .featured-grid::-webkit-scrollbar {
    display: none;
  }
  .model-tile {
    flex: 0 0 64%;
  }
  .lang-switch {
    font-size: 12px;
    padding: 4px 9px;
  }
  header nav {
    gap: 12px;
  }
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
html[lang="en"] .search-providers,
html[lang="en"] .landed-settings,
html[lang="en"] #topRecommendations,
html[lang="en"] .compare-toolbar > span {
  display: none !important;
}

.filters select {
  min-width: 190px;
}
@media (max-width: 700px) {
  .filters select {
    min-width: 0;
  }
}
/* ---- 新品で買うなら（楽天・Yahoo!ショッピング） ---- */
.new-prices {
  margin: 14px 0 6px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.new-prices[hidden] {
  display: none;
}
.np-head h2 {
  font-size: 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.np-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.pr-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid #c9cfbd;
  color: #6a7166;
  border-radius: 4px;
  padding: 1px 5px;
}
.np-gap {
  margin: 12px 0 0;
  font-size: 14px;
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 9px 12px;
}
.np-gap strong {
  color: var(--accent);
}
.np-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 6px;
}
.np-list a {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
.np-list a:hover {
  border-color: #a9bb8f;
  background: #fafbf7;
}
.np-list img,
.np-noimg {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #f4f5f0;
  border-radius: 6px;
}
.np-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.np-shop {
  font-size: 11.5px;
  color: var(--muted);
}
.np-title {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.np-price {
  text-align: right;
}
.np-price strong {
  display: block;
  font-size: 17px;
}
.np-price small {
  font-size: 11.5px;
  color: var(--muted);
}
.np-cta {
  font-size: 13px;
  font-weight: 600;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
}
.np-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.np-links a {
  font-size: 13.5px;
  border: 1px solid #d6dccc;
  border-radius: 999px;
  padding: 7px 13px;
  text-decoration: none;
  background: #fafbf7;
}
.np-credit {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin: 10px 0 0;
  font-size: 11px;
}
.np-credit a {
  color: #8b9282;
}
@media (max-width: 700px) {
  .new-prices {
    padding: 16px 14px;
  }
  .np-list a {
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
  }
  .np-list img,
  .np-noimg {
    width: 44px;
    height: 44px;
  }
  .np-cta {
    display: none;
  }
  .np-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* ---- 価格の推移（Keepa型） ---- */
.price-history {
  margin: 10px 0 6px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.price-history[hidden] {
  display: none;
}
.ph-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.ph-head h2 {
  font-size: 18px;
  margin: 0;
}
.ph-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.ph-range {
  display: flex;
  gap: 4px;
}
.ph-range button {
  font: inherit;
  font-size: 12.5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
}
.ph-range button[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.ph-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 10px;
}
.ph-stat {
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ph-stat span {
  font-size: 12px;
  color: var(--muted);
}
.ph-stat strong {
  font-size: 18px;
}
.ph-stat small {
  font-size: 11.5px;
  color: var(--muted);
}
.ph-stat small.down {
  color: #1a7f55;
}
.ph-stat small.up {
  color: #b5452f;
}
.ph-badge {
  align-self: flex-start;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecece6;
  color: #4d524a;
}
.ph-badge.good {
  background: #dff3e8;
  color: #12603f;
}
.ph-badge.high {
  background: #f9e6df;
  color: #8a3220;
}
.ph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.ph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ph-chart {
  width: 100%;
  height: auto;
  display: block;
}
.ph-grid {
  stroke: #e7e8e1;
  stroke-width: 1;
}
.ph-tick {
  font-size: 11px;
  fill: #8a8f85;
}
.ph-hit {
  fill: transparent;
}
.ph-hit:hover {
  fill: rgba(39, 53, 42, 0.06);
}
.ph-empty {
  margin: 14px 0 2px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 14px;
}
.ph-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .price-history {
    padding: 16px 14px;
  }
  .ph-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
