/* 型番ページ専用スタイル（ナオセル風・style.cssの後に読み込む） */

/* ===== Hero（青背景パネル） ===== */
/* 長い英数字の型番も、文字列を変えずに画面幅へ収める。 */
.model-hero h1,
.model-section h2,
.model-cta__content h2,
.model-cta__content p,
.model-cta__buttons .btn {
  overflow-wrap: anywhere;
}

.model-hero {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 40px 20px 48px;
}

.model-hero__inner { max-width: 720px; margin: 0 auto; }

.model-hero__eyebrow { font-size: 13px; opacity: .85; letter-spacing: .06em; }

.model-hero h1 {
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 900;
  letter-spacing: .06em;
  margin-top: 4px;
}

.model-hero__name { font-size: 14px; opacity: .9; margin-top: 4px; }

.model-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.model-tag {
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 9999px;
  padding: 3px 12px;
  font-size: 12px;
}

.model-hero__visual {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 420px;
  margin: 24px auto 0;
}

.model-hero__visual img { width: 100%; height: auto; }

.model-image-caption { font-size: 12px; opacity: .8; margin-top: 8px; }

/* 画像なし機種のテキストプレート（catalog.cssの.product-card__plateに寄せた見た目。
   画像枠と同じ白い枠内に、ブランド小・型番大を中央寄せで配置する） */
.model-hero__plate {
  background: #fff;
  border-radius: 12px;
  border-bottom: 3px solid var(--blue);
  max-width: 420px;
  margin: 24px auto 0;
  padding: 20px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.model-hero__plate-brand {
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--gray);
}

.model-hero__plate-model {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--blue-heading);
  word-break: break-word;
}

.model-hero__plate-icon {
  width: 72px;
  height: 72px;
  color: #C9DEEC;
}

.model-hero__plate-note {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gray);
}

.price-panel {
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  max-width: 420px;
  margin: 20px auto 0;
  padding: 20px 24px 24px;
  text-align: center;
}

.price-panel__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.price-panel__label { font-weight: 700; color: var(--blue-heading); }
.price-panel__status { color: var(--gray-light); }

.price-panel__value {
  font-size: 44px;
  font-weight: 900;
  color: var(--red);
  line-height: 1.2;
  margin-top: 6px;
}

.price-panel__value small { font-size: 18px; margin-left: 2px; }

.price-panel__date { font-size: 12px; color: var(--gray); margin-top: 6px; }

/* ===== 本文セクション共通 ===== */
.model-main { padding: 8px 20px 0; }
.model-main-inner { max-width: 840px; margin: 0 auto; }
.model-section { padding-top: 48px; }
.model-section__head { text-align: center; }

.model-section__number {
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .08em;
}

.model-section h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--blue-heading);
  line-height: 1.5;
  margin-top: 8px;
}

.model-section__lead { font-size: 14px; color: var(--gray); margin-top: 10px; text-align: left; }

@media (min-width: 768px) {
  .model-section__lead { text-align: center; }
}

.source-note { font-size: 12px; color: var(--gray-light); margin-top: 14px; }
.source-note a { color: var(--blue); }

/* ===== 02 買取相場の推移 ===== */
.trend-sample-badge {
  display: inline-block;
  border: 1px solid var(--blue);
  border-radius: 9999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  margin-top: 12px;
}

.trend-judgment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: #F0F8FC;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 24px;
}

.trend-judgment__pill {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
}

.trend-judgment__pill.is-up {
  background: var(--yellow);
  color: var(--yellow-ink);
}

.trend-judgment__text { font-size: 14px; }
.trend-judgment__text strong { color: var(--red); }

.trend-chart { position: relative; margin-top: 20px; }
.trend-chart svg { display: block; width: 100%; height: auto; }

.trend-grid { stroke: var(--border); stroke-width: 1; }
.trend-axis-text { font-size: 11px; fill: var(--gray); }
.trend-area { fill: rgba(27, 140, 205, .08); }
.trend-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend-avg-line { stroke: var(--gray-light); stroke-width: 1.5; stroke-dasharray: 4 4; }
.trend-crosshair { stroke: var(--gray-light); stroke-width: 1; }
.trend-hover-dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.trend-current-dot { fill: var(--red); stroke: #fff; stroke-width: 2; }
.trend-current-label { font-size: 12px; font-weight: 700; fill: var(--text); }

.trend-tooltip {
  display: none;
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 6px;
  padding: 6px 10px;
  transform: translate(-50%, -140%);
}

.trend-tooltip.is-visible { display: block; }
.trend-tooltip.is-right-edge { transform: translate(-90%, -140%); }
.trend-tooltip.is-left-edge { transform: translate(-10%, -140%); }

.trend-judgment__pill.is-collecting { background: #EEF1F4; color: var(--gray); }

.trend-collecting {
  margin-top: 20px;
  padding: 32px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  text-align: center;
}
.trend-collecting__title { font-size: 13px; font-weight: 700; color: var(--gray); }
.trend-collecting__price { margin-top: 8px; font-size: 15px; }
.trend-collecting__price strong { font-size: 24px; color: var(--red); }
.trend-collecting__note { margin-top: 8px; font-size: 12px; color: var(--gray); }

.trend-data { margin-top: 16px; }

.trend-data summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}

.trend-data__table table {
  border-collapse: collapse;
  width: 100%;
  max-width: 400px;
  margin-top: 12px;
  font-size: 13px;
}

.trend-data__table th,
.trend-data__table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.trend-data__table thead th { background: #F4FAFD; }

/* ===== 01 相場買取価格 ===== */
.price-table { margin-top: 28px; border-top: 1px solid var(--border); }

.price-table__row {
  display: grid;
  grid-template-columns: 160px 180px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
}

.price-table__row.is-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-light);
  padding: 8px 4px;
}

.price-table__rank { display: flex; align-items: center; gap: 10px; }

.price-table__rank-mark {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.price-table__rank-name { font-size: 14px; font-weight: 700; }

.price-table__price { font-size: 20px; font-weight: 700; color: var(--red); }
.price-table__price small { font-size: 12px; }

.price-table__note { font-size: 13px; color: var(--gray); }

@media (max-width: 767px) {
  .price-table__row { grid-template-columns: 1fr auto; }
  .price-table__row.is-head { display: none; }
  .price-table__note { grid-column: 1 / -1; }
}

/* ===== 02 市場ポジション ===== */
.market-facts { display: grid; gap: 12px; margin-top: 28px; }

@media (min-width: 768px) {
  .market-facts { grid-template-columns: repeat(3, 1fr); }
}

.market-fact {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.market-fact__label { display: block; font-size: 12px; color: var(--gray-light); }
.market-fact__value { display: block; font-size: 15px; font-weight: 700; margin-top: 4px; }

/* ===== 03 仕様 ===== */
.spec-grid { display: grid; margin-top: 28px; border-top: 1px solid var(--border); }

@media (min-width: 768px) {
  .spec-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

.spec-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-item__label { color: var(--gray); }
.spec-item__value { font-weight: 700; text-align: right; }

.spec-diff-note {
  background: var(--yellow-pale);
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
  font-size: 14px;
}

.spec-diff-note__label { font-weight: 700; color: var(--red); }
.spec-diff-note__text { margin-top: 6px; }

/* ===== 04 前モデル比較 ===== */
.compare-scroll { overflow-x: auto; margin-top: 28px; }

.compare-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table thead th { background: #F4FAFD; }

.compare-table thead th span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
  margin-top: 2px;
}

.compare-table tbody th { font-weight: 700; white-space: nowrap; }

.compare-table .is-current { background: var(--aqua); font-weight: 700; }
.compare-table thead th.is-current span { color: var(--text); }

.compare-price-row td { background: #FFFDF0; }
.compare-price-row td.is-current { background: var(--aqua); }

.compare-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.compare-price--current { color: var(--red); font-size: 18px; }

.compare-price-note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--gray);
  margin-top: 2px;
}

.compare-caution {
  background: var(--yellow-pale);
  border-radius: 8px;
  font-size: 14px;
  padding: 14px 16px;
  margin-top: 20px;
}

.compare-caution strong { color: var(--red); }

/* ===== 05 査定ポイント ===== */
.appraisal-grid { display: grid; gap: 16px; margin-top: 28px; }

@media (min-width: 768px) {
  .appraisal-grid { grid-template-columns: repeat(3, 1fr); }
}

.appraisal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.appraisal-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.appraisal-card h3 { font-size: 16px; font-weight: 700; margin-top: 10px; }
.appraisal-card p { font-size: 13px; color: var(--gray); margin-top: 6px; text-align: left; }

/* ===== 06 付属品 ===== */
.accessory-list { list-style: none; margin-top: 28px; border-top: 1px solid var(--border); }

.accessory-list li {
  position: relative;
  padding: 12px 4px 12px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.accessory-list li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  color: var(--blue);
  font-weight: 900;
}

/* ===== 07 FAQ ===== */
.faq-list { margin-top: 28px; border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item__q-label {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item__q-text { flex: 1; font-size: 15px; font-weight: 700; }

.faq-item__toggle {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
  margin-right: 4px;
}

.faq-item[open] .faq-item__toggle { transform: rotate(225deg); }

.faq-item__body { padding: 0 4px 16px 44px; font-size: 14px; }

/* ===== CTA ===== */
.model-cta { text-align: center; padding: 56px 20px 0; }

.model-cta__content h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--blue-heading);
  line-height: 1.5;
}

.model-cta__content p { font-size: 14px; color: var(--gray); margin-top: 10px; }

.model-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
  margin-bottom: 56px;
}
