@charset "UTF-8";

/* ============================================================
   品目検索窓 サンプル用スタイル
   ------------------------------------------------------------
   既存テーマとの衝突を避けるため、クラス名は .kks- で統一。
   ============================================================ */

/* ------------------------------------------------------------
   すべての指定を .kks 配下に限定し、既存ページへ影響させない
   ------------------------------------------------------------ */
.kks {
  /* 既存テーマ（common.css / ws.css）と同じ配色を使用 */
  --navy: #193c7e;
  --blue: #0074e8;
  --blue-h: #3e9eff;
  --blue-d: #005ad9;
  --sky: #dfedf8;
  --pale: #f2f7fd;
  --box: #f5f8fc;
  --ok: #0f9d58;
  --cond: #ef8f00;
  --ng: #d4453a;
  --cta: #ee3f64;
  --ink: #22293d;
  --sub: #6a7288;
  --line: #c2d1dc;
  --font: "Noto Sans JP", sans-serif;
  --radius: 20px;
  --max: 995px;
}

.kks,
.kks *,
.kks *::before,
.kks *::after {
  box-sizing: border-box;
}

/* :where() で詳細度を上げないようにする。
   これを付けないと .kks p / .kks ul がクラス指定の margin より強くなり、
   .kks-tags や .kks__rule の余白が効かなくなる */
.kks :where(h2, h3, p, ul, li, table) {
  margin: 0;
  padding: 0;
}

.kks :where(ul) {
  list-style: none;
}

.kks li::before,
.kks li::after {
  content: none;
}

.kks :where(a) {
  color: inherit;
  text-decoration: none;
}

.kks :where(input, button) {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.kks .sp-only {
  display: none;
}

/* ============ 検索ブロック ============ */
.kks {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.85;
  letter-spacing: .01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  background: var(--pale);
  padding: 48px 20px 56px;
}

.kks__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.kks__head {
  text-align: center;
  margin-bottom: 28px;
}

.kks__title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 12px;
}

/* 既存の .voice-slide-sec-description と同じ文字設定 */
.kks__lead {
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: normal;
  color: var(--sub);
}

/* PCは1行に収め、スマホだけ読点の位置で改行させる */
.kks__lead br {
  display: none;
}

/* 既存テーマの見出しクラス（.section-title / .section-entitle）を使う場合の調整 */
.kks .section-entitle {
  margin: 8px 0 14px;
}

/* ============ 置き方のバリエーション ============ */

/* .kks--section：1つの独立したセクションとして置く場合（clearance など）。
   前後のセクションと余白のリズムを揃える */
.kks.kks--section {
  padding: 72px 20px 78px;
}

.kks--section .kks__head {
  margin-bottom: 32px;
}

/* 単独で置くときは、既存のセクション見出し（.kt-example__title など）と同じ設定にする。
   56px / 900 / #333、色を変える部分は #0078e6 */
.kks--section .kks__title {
  font-size: 56px;
  line-height: 1.15;
  font-weight: 900;
  color: #333;
  margin-bottom: 16px;
}

.kks--section .kks__title span {
  color: #0078e6;
}

/* リード文も既存の本文（18px）に合わせ、薄く見えないよう色を濃くする */
.kks--section .kks__lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #333;
}

/* .kks--bg-white：上下のセクションが淡い水色で、標準の背景だと境目が消える場合に使う。
   下に続くセクションも白いことがあるため、境目に細い線を引く */
.kks.kks--bg-white {
  background: #fff;
  border-bottom: 1px solid #e6eef6;
}

/* 白地では結果カードの輪郭が無くなるため、細い線を足す */
.kks--bg-white .kks-card {
  border: 1px solid #e1e9f2;
}

/* .kks--bg-blue：既存の「お任せください」などのセクションと同じ水色 */
.kks.kks--bg-blue {
  background: #f2faff;
}

/* .kks--embed：背景と余白を外し、親セクションの中に収める */
.kks.kks--embed {
  background: none;
  padding: 0;
  margin-top: 10px;
}

.kks--embed .kks__inner {
  max-width: none;
}

/* .kks--dark：濃色背景のセクションに置く場合 */
.kks--dark .kks__lead {
  color: #fff;
}

.kks--dark .kks__popular-label {
  color: rgba(255, 255, 255, .7);
}

.kks--dark .kks__rule {
  color: rgba(255, 255, 255, .72);
}

.kks--dark .kks-search__input {
  border-color: transparent;
}

/* 紺地では標準の #0074e8 が沈むため、テーマの明るい方の青を使う */
.kks--dark .kks-search__button {
  background: #549ee7;
}

.kks--dark .kks-search__button:hover {
  background: #7ab7ef;
}

/* ---- 検索フォーム ---- */
/* 既存の「対応エリアを検索」と同じ、入力欄とボタンが一体になった形 */
.kks__form {
  display: flex;
  position: relative;
  z-index: 5;
}

.kks-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.kks-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4bd;
  font-size: 17px;
  pointer-events: none;
}

.kks-search__input {
  width: 100%;
  height: 60px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #fff;
  padding: 0 44px 0 48px;
  font-family: var(--font);
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}

.kks-search__input::placeholder {
  color: #aaa;
}

.kks-search__input:focus {
  border-color: var(--blue);
}

.kks-search__clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #e4e9f2;
  color: #67718a;
  font-size: 12px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.kks-search__clear.is-show {
  display: flex;
}

.kks-search__button {
  flex-shrink: 0;
  width: 150px;
  height: 60px;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background-color .3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.kks-search__button i {
  font-size: 15px;
}

.kks-search__button:hover {
  background: var(--blue-h);
}

/* ---- 入力ルールの注記 ---- */
/* アイコンを1行目の文字と同じ行に流したいので、flex ではなく通常の行として組む */
.kks__rule {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  color: var(--sub);
}

.kks__rule i {
  margin-right: 7px;
  font-size: 13px;
}

/* PCは1行に収め、スマホだけ文の区切りで改行させる */
.kks__rule br {
  display: none;
}

/* ---- サジェスト ---- */
.kks-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(25, 60, 126, .14);
  overflow: hidden;
  z-index: 20;
}

.kks-suggest.is-open {
  display: block;
}

.kks-suggest li {
  padding: 11px 18px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  border-bottom: 1px solid #f0f3f8;
}

.kks-suggest li:last-child {
  border-bottom: 0;
}

.kks-suggest li:hover,
.kks-suggest li.is-active {
  background: var(--pale);
}

/* ---- よく検索される品目 ---- */
.kks__popular {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kks__popular-label {
  font-size: 13px;
  color: var(--sub);
}

.kks__popular-label::after {
  content: "：";
}

/* 8個を等幅で並べる。1fr にすることで一番長い品目名にすべての幅が揃う */
.kks__popular-list {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}

.kks__popular-list button {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 9999px;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  transition: background-color .3s;
}

.kks__popular-list button:hover {
  background: var(--sky);
}

/* 明るい背景に置く場合は白いチップが埋もれるため輪郭を足す */
.kks:not(.kks--dark) .kks__popular-list button {
  border: 1px solid #e1e9f2;
}

/* ============ 検索結果 ============ */
.kks-result {
  margin-top: 34px;
}

.kks-result:empty {
  margin-top: 0;
}

.kks-card {
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---- 結果ヘッダー（回収可否で色とマークが変わる） ---- */
.kks-card__head {
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: center;
}

.kks-card__head i {
  font-size: 22px;
}

.kks-card--ok .kks-card__head {
  background: var(--ok);
}

.kks-card--cond .kks-card__head {
  background: var(--cond);
}

.kks-card--ng .kks-card__head {
  background: var(--ng);
}

.kks-card--ask .kks-card__head {
  background: var(--blue);
}

.kks-card__body {
  padding: 30px 32px 32px;
}

/* ---- 品目と参考料金 ---- */
.kks-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--box);
  border-radius: 14px;
  padding: 22px 26px;
}

.kks-box__item {
  flex-shrink: 0;
}

.kks-box__item p {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* 参考料金：既存の品目カードと同じ「2,200円（税込）〜」の見せ方に合わせる */
.kks-box__price {
  margin-left: auto;
  text-align: right;
  line-height: 1.35;
}

.kks-box__price .label {
  font-size: 12px;
  color: var(--sub);
}

.kks-box__price .value {
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
}

.kks-box__price .value .number {
  font-size: 34px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -.01em;
  font-feature-settings: normal;
  margin-right: 2px;
}

.kks-box__lead {
  margin-left: auto;
  text-align: right;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub);
}

.kks-box__lead b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

/* ---- 条件・理由・処分方法 ---- */
.kks-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: 14px;
  background: var(--box);
  padding: 16px 22px;
  margin-top: 16px;
}

.kks-info--cond {
  background: #fff8ec;
}

.kks-info--ng {
  background: #fdf0ef;
}

.kks-info__label {
  flex-shrink: 0;
  width: 76px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--sub);
  border-radius: 5px;
  text-align: center;
  line-height: 2;
}

.kks-info--cond .kks-info__label {
  background: var(--cond);
}

.kks-info--ng .kks-info__label {
  background: var(--ng);
}

.kks-info__text {
  font-size: 15px;
  line-height: 1.75;
}

/* ---- 補足タグ（既存の品目カードのタグと同じ見た目） ---- */
.kks-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1;
}

.kks-tags li {
  color: var(--navy);
  background: var(--sky);
  border-radius: 5px;
  padding: .5em .6em;
}

.kks-tags li.buy {
  color: #b26a00;
  background: #fff2d8;
  font-weight: 700;
}

/* ---- ボタン（既存のリンクボタンと同じピル形＋矢印） ---- */
.kks-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.kks-btns > * {
  flex: 1 1 260px;
}

.kks-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  transition: opacity .3s;
}

.kks-btn:hover {
  opacity: .75;
}

.kks-btn .arw {
  margin-left: auto;
  font-size: 12px;
}

/* 塗りボタンは既存CTAと同じく下側を暗くして白文字を読みやすくする */
.kks-btn--lp,
.kks-btn--contact,
.kks-btn--line {
  background-image: linear-gradient(0, rgba(0, 0, 0, .3) 0%, transparent 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.kks-btn--lp {
  background-color: var(--blue-d);
}

.kks-btn--contact {
  background-color: var(--cta);
}

.kks-btn--line {
  background-color: #06c755;
}

.kks-btn--sub {
  background: #fff;
  border: 2px solid var(--navy);
  color: var(--navy);
}

/* ============ スマートフォン ============ */
@media screen and (max-width: 767px) {
  .kks .sp-only {
    display: block;
  }

  .kks {
    padding: 32px 16px 40px;
  }

  .kks.kks--section {
    padding: 44px 16px 48px;
  }

  .kks.kks--embed {
    padding: 0;
    margin-top: 26px;
  }

  .kks__head,
  .kks--section .kks__head {
    margin-bottom: 24px;
  }

  .kks__title {
    font-size: 20px;
  }

  /* 既存の見出しはSPで34pxだが、こちらは文字数が多いので1行に収まる大きさにする */
  .kks--section .kks__title {
    font-size: 30px;
    margin-bottom: 12px;
  }

  .kks--section .kks__lead {
    font-size: 15px;
  }

  .kks__lead {
    font-size: 14px;
  }

  .kks__lead br {
    display: inline;
  }

  /* スマホでも一体型のまま。既存の「対応エリアを検索」と同じ比率 */
  .kks-search__input {
    height: 52px;
    font-size: 16px;
    padding: 0 40px 0 42px;
    border-radius: 14px 0 0 14px;
  }

  .kks-search__icon {
    left: 14px;
    font-size: 15px;
  }

  .kks-search__button {
    width: 62px;
    height: 52px;
    border-radius: 0 14px 14px 0;
  }

  .kks-search__button span {
    display: none;
  }

  .kks-search__button i {
    font-size: 17px;
  }

  .kks__rule {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.65;
  }

  .kks__rule br {
    display: inline;
  }

  .kks__popular {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .kks__popular-label {
    font-size: 12px;
  }

  /* 横に8個は入らないので4列×2段にする */
  .kks__popular-list {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .kks__popular-list button {
    font-size: 12px;
    padding: 7px 4px;
  }

  .kks-result {
    margin-top: 26px;
  }

  .kks-card {
    border-radius: 12px;
  }

  .kks-card__head {
    padding: 17px 18px;
    font-size: 19px;
  }

  .kks-card__head i {
    font-size: 18px;
  }

  .kks-card__body {
    padding: 22px 18px 24px;
  }

  .kks-box {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 12px;
  }

  .kks-box__item p {
    font-size: 21px;
  }

  .kks-box__price,
  .kks-box__lead {
    margin-left: 0;
    text-align: left;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
  }

  .kks-box__price .value {
    font-size: 17px;
  }

  .kks-box__price .value .number {
    font-size: 30px;
  }

  .kks-box__lead {
    font-size: 15px;
  }

  .kks-box__lead b {
    font-size: 18px;
  }

  .kks-info {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .kks-info__label {
    width: auto;
    align-self: flex-start;
    padding: 0 12px;
    font-size: 12px;
  }

  .kks-info__text {
    font-size: 14px;
  }

  .kks-tags {
    margin-top: 16px;
    font-size: 12px;
  }

  .kks-btns {
    gap: 10px;
    margin-top: 22px;
  }

  .kks-btns > * {
    flex: 1 1 100%;
  }

  .kks-btn {
    height: 54px;
    padding: 0 20px;
    font-size: 15px;
  }
}
