/* WALLテレビ対応表 NEXT — 4ページ共通スタイル */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
}

/* 全ページ共通 — リビング背景画像（パターンC・薄め） */
body {
  background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.45)),
              url("../img/next/bg.jpg") center/cover no-repeat fixed;
}
/* Page 1（ランディング）は背景をほぼそのまま */
body.page-landing {
  background: url("../img/next/bg.jpg") center/cover no-repeat fixed;
}

a { color: #2a5db8; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; vertical-align: middle; }

button, .btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
button:hover, .btn:hover {
  background: #444;
  text-decoration: none;
  color: #fff;
}
button:disabled, .btn:disabled {
  background: #999;
  cursor: not-allowed;
}

select, input[type="text"], input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
  font-family: inherit;
}
select:focus, input:focus { outline: 2px solid #2a5db8; border-color: #2a5db8; }

.next-footer {
  background: #1a1a1a;
  color: #ddd;
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
  line-height: 1.8;
}
.next-footer a { color: #9bcaff; }
.next-footer .official-link { margin-bottom: 14px; }
.next-footer .official-link a {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid #888;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
}
.next-footer .official-link a:hover {
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}
.next-footer .copyright {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
}

/* ======= Page 1 (landing) ======= */
.page-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.landing-logo {
  max-width: 280px;
  width: 50%;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
}
.landing-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 32px;
  letter-spacing: .08em;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  padding-bottom: 14px;
  border-bottom: 2px solid #fff;
  display: inline-block;
}
.landing-desc {
  font-size: 15px;
  color: #fff;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.6);
  padding: 22px 28px;
  border-radius: 4px;
  max-width: 640px;
  margin: 0 0 36px;
  line-height: 1.9;
}
.landing-cta {
  font-size: 17px;
  padding: 18px 56px;
  min-width: 320px;
  background: #1a1a1a;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.landing-cta:hover {
  background: #333;
}

/* ======= 共通ヘッダー (Page 2-4) ======= */
.next-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.next-header .header-logo { height: 42px; width: auto; }
.next-header h1 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #222;
  letter-spacing: .05em;
  padding-bottom: 4px;
  border-bottom: 1px solid #222;
}

.next-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 24px;
  color: #1a1a1a;
  text-align: center;
}
.section-step {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: .15em;
  margin: 0 0 8px;
  text-align: center;
}

/* ======= Page 2 (STEP 1) ======= */
.step1-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.step1-info {
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.step1-info p { margin: 0 0 16px; font-size: 14px; }
.step1-info .tv-back-image {
  width: 100%;
  max-width: 420px;
  border-radius: 4px;
  margin: 16px 0;
  display: block;
}
.step1-info .mistakes {
  background: #f7f7f7;
  border-radius: 4px;
  padding: 16px 20px;
  margin-top: 16px;
}
.step1-info .mistakes h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #d9534f;
}
.step1-info .mistakes ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 13px;
}
.step1-info .mistakes li { margin-bottom: 4px; }

.search-block {
  background: rgba(255,255,255,.95);
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.search-block h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #1a1a1a;
}
.search-block .form-row {
  margin-bottom: 14px;
}
.search-block .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
}
.search-block .submit-row {
  margin-top: 20px;
  text-align: right;
}

/* 取付可否バッジ */
.avail-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  margin: 0 0 10px;
}
.avail-ok { background: #e8f5ec; color: #1d7a3e; }
.avail-limited { background: #fdf3e6; color: #b26a00; }

/* 部品依頼誘導（取り付け条件モーダル内） */
.parts-request {
  margin-top: 20px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
}
.parts-request p { margin: 0 0 8px; }
.parts-request .parts-note { font-size: 12px; color: #666; }
.parts-request-btn { margin: 12px 0; }

.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 10;
  display: none;
}
.autocomplete-list li {
  list-style: none;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}
.autocomplete-list li:hover, .autocomplete-list li.active {
  background: #eef4ff;
}
.autocomplete-list li .meta { color: #888; font-size: 12px; margin-left: 8px; }

/* ======= Page 3 (STEP 2) ======= */
.step2-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.stand-card {
  background: rgba(255,255,255,.95);
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  transition: box-shadow .15s ease, transform .15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.stand-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.stand-card .stand-image {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}
.stand-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.stand-card p {
  font-size: 13px;
  color: #555;
  margin: 0;
  flex: 1;
  text-align: left;
}
.stand-card .biz-note {
  margin-top: 10px;
  font-size: 12px;
  color: #d9534f;
}

.step2-all-link {
  margin-top: 32px;
  text-align: center;
}
/* 「すべてのテレビスタンドから探す」：背景画像に沈んで目立たないため、
   白地・大きめのボタンにする（顧客FB対応） */
.step2-all-link a {
  display: inline-block;
  padding: 20px 64px;
  border: 1px solid #222;
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
.step2-all-link a:hover {
  background: #222;
  color: #fff;
  text-decoration: none;
}
@media (max-width: 600px) {
  .step2-all-link a { padding: 16px 28px; font-size: 16px; width: 100%; box-sizing: border-box; }
}

/* ======= Page STEP 3 (結果) ======= */
.step3-main { max-width: 1100px; }
.step3-tv-info {
  text-align: center;
  font-size: 14px;
  margin: 0 0 4px;
  color: #333;
}
.step3-tv-info span { font-weight: 600; }
.step3-cat {
  text-align: center;
  font-size: 13px;
  margin: 0 0 20px;
  color: #555;
}
.step3-back { font-size: 12px; }
.step3-tv-image-wrap {
  text-align: center;
  margin: 0 0 12px;
}
.step3-tv-image {
  max-height: 200px;
  max-width: 320px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
}
.step3-loading {
  text-align: center;
  padding: 40px 0;
  color: #555;
}
.option-figure { margin: 0 0 12px; }
.option-figure figcaption {
  font-size: 16px; /* タイトルと同程度の大きさ（顧客FB対応） */
  color: #555;
  width: 75%;      /* 中央寄せ画像と左端を揃える */
  margin: 4px auto 0;
}
/* 設置事例にURLが登録されている場合のリンク（画像＋説明文がリンクになる） */
.option-figure-link { display: block; color: inherit; text-decoration: none; }
.option-figure-link:hover figcaption { color: #0a58ca; text-decoration: underline; }

.product-cards { display: flex; flex-direction: column; gap: 24px; }

.product-card {
  background: rgba(255,255,255,.97);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 24px;
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.product-photo img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 4px;
}
/* 商品画像スライドショー（複数登録時） */
.photo-slider { position: relative; }
.photo-slider .slide { display: none; }
.photo-slider .slide.active { display: block; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.slider-arrow:hover { background: rgba(0,0,0,.55); }
.slider-prev { left: 6px; }
.slider-next { right: 6px; }
.slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.slider-dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  cursor: pointer;
}
.slider-dot.active { background: #1a1a1a; }

/* サブ画像（商品番号・JAN一覧など）。メイン写真の下に小さく表示し、クリックで拡大 */
.product-photo-sub {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: zoom-in;
  max-width: 45%;
}
.product-photo-sub img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  background: #fff;
}
.subimage-full { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.product-info { min-width: 0; }
.product-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.product-size {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-left: 6px;
  white-space: nowrap;
}
/* 商品名の横に表示するタイプ（例：タイプ：LOWTYPE / HIGHTYPE） */
.product-type-inline {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-left: 10px;
  white-space: nowrap;
}
/* 取付可否バッジ＋機能チップの行 */
.badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.badge-row .avail-badge { margin: 0; }
.feature-chip {
  display: inline-flex;
  align-items: stretch;
  font-size: 12px;
  border-radius: 3px;
  overflow: hidden;
  background: #ececec;
}
.feature-chip .chip-label { padding: 4px 10px; color: #444; }
.feature-chip .chip-value { padding: 4px 10px; background: #dcdcdc; font-weight: 700; color: #111; }
/* 商品説明テキスト（顧客FBで+1pt） */
.product-tagline { font-size: 14px; margin: 0 0 10px; color: #333; }
.product-colors {
  font-size: 12px;
  margin: 0 0 10px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}
.color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #bbb;
}
.product-colors { flex-wrap: wrap; }
.color-cap { color: #555; }
.product-color-img {
  /* 画像ごとに高さを揃える（上限24px）。幅は比率なりで自動、潰さない。
     横長の帯も2段組の見本も、同じくらいの高さで見やすく揃う。 */
  height: auto;
  width: auto;
  max-height: 24px;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}
.product-price { font-size: 15px; margin: 0 0 12px; }
.product-price strong { font-size: 17px; }
.product-typedesc { font-size: 12px; margin: 0 0 8px; color: #444; line-height: 1.7; }
.product-specs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.product-specs li { display: inline-flex; align-items: center; font-size: 12px; background: #f2f4f6; border-radius: 4px; padding: 2px 8px; }
.product-specs .spec-label { color: #888; margin-right: 6px; }
.product-specs .spec-value { color: #222; font-weight: 600; }
.product-attention {
  font-size: 12px;
  color: #c0392b;
  background: #fdf0ee;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 8px 0 0;
  line-height: 1.7;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.action-btn {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 3px;
  background: #d4dbe1;
  color: #1a1a1a;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
  font-family: inherit;
}
.action-btn:hover { background: #bfc9d2; color: #1a1a1a; text-decoration: none; }
.action-btn-primary { background: #1a1a1a; color: #fff; }
.action-btn-primary:hover { background: #333; color: #fff; }

.unavailable-section {
  margin-top: 40px;
  background: rgba(255,255,255,.92);
  border-radius: 6px;
  padding: 20px 24px;
}
.unavailable-title {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  margin: 0 0 12px;
}
.unavailable-list { margin: 0; padding: 0; list-style: none; }
.unavailable-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  color: #999;
}
.unavailable-row:last-child { border-bottom: none; }
.unavailable-mark { font-weight: 600; }

.step3-restart { text-align: center; margin-top: 36px; }

/* ======= モーダル ======= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
}
.modal-box.modal-wide { max-width: 780px; }
.parts-iframe {
  display: block;
  width: 100%;
  height: 70vh;
  border: none;
  border-radius: 4px;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 4px;
}
.modal-close:hover { color: #000; background: none; }
.modal-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 18px;
  color: #1a1a1a;
}

.height-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
.height-table th {
  background: #e9edf0;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border: 1px solid #d5dade;
}
.height-table td {
  font-size: 14px;
  text-align: center;
  padding: 8px 10px;
  border: 1px solid #d5dade;
}
.height-label span {
  display: inline-block;
  background: #4a4a4a;
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
}
.height-legend { display: flex; gap: 18px; align-items: center; }
.height-diagrams { display: flex; gap: 8px; flex-shrink: 0; }
.height-figure { margin: 0; text-align: center; }
.height-figure img { width: 150px; }
.height-figure figcaption { font-size: 11px; color: #555; margin-top: 2px; }
.height-legend-text p { font-size: 12px; margin: 0 0 6px; color: #444; }
.height-legend-text label {
  display: inline-block;
  background: #4a4a4a;
  color: #fff;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 3px;
  margin-right: 6px;
}
.unit-note { color: #888; }

/* 背面寸法入力フォーム（高さ確認モーダル内） */
.backpanel-lead { font-size: 13px; line-height: 1.8; margin: 0 0 12px; color: #333; }
.backpanel-grid {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 16px 0;
}
.backpanel-figure { width: 180px; flex-shrink: 0; }
.backpanel-inputs p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin: 0 0 12px;
}
.backpanel-inputs label {
  display: inline-block;
  background: #4a4a4a;
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 3px;
}
.backpanel-inputs input[type="number"],
.backpanel-inputs select {
  width: 110px;
  padding: 8px 10px;
}
.backpanel-inputs .bp-error { border-color: #e60012; background: #fdf0ee; }
.bp-warning {
  color: #e60012;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
}
.backpanel-submit { text-align: center; }
.backpanel-reenter { margin-top: 14px; font-size: 13px; text-align: right; }

@media (max-width: 480px) {
  .backpanel-grid { flex-direction: column; align-items: flex-start; }
}

.conditions-desc { font-size: 14px; line-height: 1.9; margin-bottom: 16px; }
.conditions-img {
  display: block;
  max-width: 100%;
  margin: 0 auto 12px;
  border: 1px solid #eee;
  border-radius: 4px;
}

/* 設置イメージモーダルのタイトル（大きめ・中央寄せ。顧客FB対応） */
.option-modal-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}
.option-images img {
  display: block;
  width: 75%; /* 画像は現在の70〜80%サイズで表示（顧客FB対応） */
  margin: 0 auto 12px;
  border-radius: 4px;
}
.option-link-row { text-align: center; margin-top: 16px; }

/* ======= Page 4 (Not Found) ======= */
.notfound-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}
.notfound-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #d9534f;
}
.notfound-message {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #1a1a1a;
}
.notfound-sub {
  font-size: 14px;
  color: #555;
  margin: 0 0 28px;
}
.notfound-main {
  background: rgba(255,255,255,.92);
  border-radius: 8px;
  margin: 60px auto;
  padding: 48px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.notfound-block {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 20px 24px;
  margin: 0 auto 24px;
  text-align: left;
  font-size: 14px;
}
.notfound-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #d9534f;
}
.notfound-block ul {
  margin: 0;
  padding-left: 1.2em;
}
.notfound-tvback {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 0 auto 28px;
  border-radius: 4px;
}
.notfound-newmodel {
  font-size: 14px;
  color: #333;
  line-height: 1.9;
  margin: 0 0 32px;
}
.notfound-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.notfound-actions .btn { min-width: 240px; }
.btn-pill {
  border-radius: 999px;
  background: #1a1a1a;
  padding: 16px 36px;
  font-size: 15px;
}
.btn-pill:hover { background: #333; }
.notfound-actions .btn-secondary {
  background: #fff;
  color: #222;
  border: 1px solid #222;
}
.notfound-actions .btn-secondary:hover {
  background: #222;
  color: #fff;
}

/* ======= Responsive ======= */
@media (max-width: 845px) {
  .step1-layout { grid-template-columns: 1fr; gap: 32px; }
  .step2-cards { grid-template-columns: 1fr; }
  .stand-card .stand-image { height: 220px; }
  .product-card { grid-template-columns: 1fr; gap: 16px; }
  .product-photo img { height: 240px; }
  .product-actions { flex-direction: column; }
  .height-legend { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .next-main { padding: 24px 16px 40px; }
  .next-header { padding: 12px 16px; }
  .next-header h1 { font-size: 15px; }
  .landing-title { font-size: 22px; }
  .landing-desc { font-size: 14px; padding: 16px; }
  .landing-cta { min-width: 0; width: 100%; }
  .search-block { padding: 18px; }
  .section-title { font-size: 18px; }
}
