@charset "UTF-8";
/* ============================================================
   IMEIチェッカー  –  pixel-perfect implementation from Figma
   PC comp : 1440px / content 1200px
   SP comp : 375px  / content 345px
   ============================================================ */

:root {
  --bg: #0d2438;
  --panel: rgba(2, 19, 35, 0.8);
  --box: #0A243C;
  --accent: #00FECA;
  --accent-border: rgba(0, 254, 202, 0.6);
  --muted: #9CA3AA;
  --yellow: #F8DF00;
  --pink: #FF269A;
  --btn-disabled: #344B5F;
  --thead: #344B5F;
  --tab-active-bg: #022921;
  --footer-text: #153650;
  --font-en: 'Saira', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  /*url(../assets/noise.png) repeat*/
  background:  var(--bg);
  background-size: 256px 256px;
  font-family: var(--font-ja);
  color: #fff;
  position: relative;
}

button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1320px, calc(100% - 80px)); margin: 0 auto; position: relative; }

.sp-only { display: none !important; }

/* state toggling */
[data-state="initial"] .result-only { display: none !important; }
[data-state="result"] .initial-only { display: none !important; }

/* ============================================================
   Background texture (digit-rain approximation of design art)
   ============================================================ */
body::before { content: none; }

/* ============================================================
   SP SEO strip
   ============================================================ */
.sp-seo-strip { display: none; }

/* ============================================================
   Header  (PC: title_bg 0-103 + line)
   ============================================================ */

/*header-new*/
.header{
  width: 100%;
  position: relative;
  background: url(../assets/header-texture.jpg) top center no-repeat;
  background-size: 100% auto;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
  padding: 20px 0 20px 20px;
}

.header .seo-title{
  width: 100%;
  position:relative;
  top:auto;
  left:auto;
  text-align:right;
  padding-right:15px;
}

.headermain{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: min(1320px, calc(100% - 80px));
  margin:0 auto;
}

.headermain .header-logo{
  position: relative;
  left: auto;
  top:auto;
}

.headermain .header-logo .logo{
  position: relative;
  left:auto;
  top:auto;
  width: 270px;
}

.headermain .header-text{
  width: calc(100% - 300px);
}

.headermain .header-text h2{
  display: flex;
}

.headermain .header-text h2 .h1-line1{
  margin-right: 5px;
}
.headermain .header-text h2 .quote-open{
  transform: translateY(-10px) rotate(180deg);
}
.headermain .header-text h2 .quote-close{
  transform: translateY(2px);
}

.headermain .header-text .herolead{
  font-size: 14px;
}


@media (max-width: 1360px) {
  .headermain .header-text .herolead{
    font-size: 11px;
  }
}
@media (max-width: 767px) {
  .header{
    background:none;
    border-bottom:0;
    padding: 0;
  }
  .header .seo-title{
    padding:3px 0;
  }
  .headermain{
    width: 100%;
    max-width:100%;
  }
  .headermain .header-logo{
    width: 100%;
    padding: 18px 20px;
    display: flex;
    justify-content: center;
    background: url(../assets/header-texture-sp.jpg) top center no-repeat;
    background-size: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  }
  .headermain .header-logo .splogo{
    width: 153px;                            /* splogo.png 306px = @2x */
    height: auto;
  }
  .headermain .header-logo .splogo{
    transform: translateX(0);
    position: relative;
    left: auto;
    top:auto;
  }
  .headermain .header-text{
    width: 100%;
    padding: 5.33vw 5.33vw 0 4vw;           /* Figma 20/15px を幅比例に (375px時に一致) */
    position: relative;
    height: 61.6vw;                         /* Figma比率 231/375 — 375px時に丁度231px */
    margin-bottom: -13.07vw;                /* Figma: パネルが写真下部に49px(375px時)重なる */
    background: var(--bg) url(../assets/fv_bg.jpg) top center no-repeat;
    background-size: 100% auto;             /* 全幅スケールで端の切れ目をなくす */
    background-blend-mode: lighten;         /* Figma同様: 写真の暗部を背景に溶かす */
  }
  /* Figmaの合成(lightenブレンド+下部フェード)を再現: 全体を薄く沈め、下端は背景に溶け込ませる */
  .headermain .header-text:after{
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(5, 25, 43, 0) 45%, rgba(5, 25, 43, 0.7) 80%, #05192B 97%),
      rgba(5, 25, 43, 0.1);
  }
  .headermain .header-text h2{
    flex-direction: column;
    margin-bottom: 3px;                     /* Figma: 一括確認→リード間 10px (行ボックス差引) */
    position:relative;
    z-index: 1;
  }
  .headermain .header-text h2 .h1-line1{
    font-size: 5.824vw;                     /* Figma: 21.84px (375px時) — 幅比例 */
    line-height: 9.33vw;
    letter-spacing: -0.05em;
    margin-bottom: 0;
    margin-right: 0;
  }
  .headermain .header-text h2 .h1-strong{
    font-size: 9.07vw;                      /* Figma: 34px (375px時) — 幅比例 */
    line-height: 11.2vw;
  }
  .headermain .header-text h2 .quote{
    font-size: 8.38vw;                      /* Figma: 31.41px (375px時) — 幅比例 */
  }
  .headermain .header-text .herolead{
    width: 61.6vw;                          /* Figma: 231px (375px時) — 幅比例 */
    margin-top: 0;
    font-size: 2.667vw;                     /* Figma: 10px (375px時) — 幅比例で拡大 */
    line-height: 170%;
    letter-spacing: 0.03em;
    white-space: normal;
    position: relative;
    z-index: 1;
  }
}
/*/header-new*/

.site-header {
  position: relative;
  z-index: 2;
  height: 103px;
  background: url(../assets/header-texture.jpg) top center no-repeat var(--bg);
  background-size: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.seo-title {
  position: absolute;
  top: 5px;
  left: calc(50% + 278px);
  width: 427px;
  font-size: 10px;
  font-weight: 500;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  height: 100%;
}

/* ----- logo ----- */
.logo {
  position: absolute;
  left: 120px;
  top: 28px;
  width: 270px;
  height: auto;
  display: block;
}

.splogo{
  position: absolute;
  left: 120px;
  top: 28px;
  width: 270px;
  height: auto;
  display: none;
}

/* ----- hero copy ----- */
.hero-copy {
  position: absolute;
  left: calc(50% - 308px);
  top: 19px;
  /*width: 898px;*/
  width: 100%;
}
@media (max-width: 1360px) {
  .hero-copy {
    left: calc(50% - 200px);
    width: 50%;
    white-space: normal;
  }
}

.hero-copy h1 {
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
  height: 41px;
}
.h1-line1 {
  font-size: 17.73px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 32px;
  color: #fff;
  margin-top: 6px;
}
.h1-line2 {
  display: flex;
  align-items: flex-start;
  margin-left: -2px;
}
.h1-strong {
  font-size: 28.2px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 36px;
  background: linear-gradient(89.75deg, #00FFFF 3.58%, #00FFF7 59.49%, #00FF66 116.5%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quote {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24.17px;
  line-height: 20px;
  background: linear-gradient(89.75deg, #00FFFF 3.58%, #00FFF7 59.49%, #00FF66 116.5%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.quote-open { transform: rotate(180deg); margin-right: 2px; margin-top: 2px; }
.quote-close { margin-left: 2px; }
.hero-lead {
  margin-top: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 160%;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* ============================================================
   Hero background (approximation of AdobeStock composite)
   ============================================================ */
.hero-bg { display: none; }

/* ============================================================
   Checker section
   ============================================================ */
.page { position: relative; z-index: 1; }

.checker { padding-top: 30px; }

.checker-cols {
  display: flex;
  align-items: stretch;
  gap: 15px;
}

.panel { background: var(--panel); }

/* ---------- left panel ---------- */
.panel-input {
  width: 410px;
  flex: none;
  padding: 0 20px 20px;
}

.step-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}
.step1 { margin-top: 20px; }
.step-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--accent);
}
.step-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  color: #fff;
}

.imei-input-wrap { margin-top: 5px; }
.imei-textarea {
  display: block;
  width: 370px;
  height: 126px;
  background: var(--box);
  border: 1px solid var(--accent-border);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 150%;
  letter-spacing: 0.03em;
  padding: 14px 15px;
  resize: none;
  outline: none;
}
.imei-textarea::placeholder { color: rgba(255, 255, 255, 0.7); }
.imei-textarea:focus { border-color: var(--accent); }
.imei-textarea::-webkit-scrollbar { width: 4px; }
.imei-textarea::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.7); }

/* 入力内容一覧 (result state) */
.input-list-block { margin-top: 15px; }
.input-list-heading {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: #fff;
}
.input-list-box {
  margin-top: 5px;
  width: 370px;
  height: 126px;
  background: var(--box);
  border: 2px solid var(--accent);
  padding: 13px 13px;
  overflow-y: auto;
}
.input-list-box::-webkit-scrollbar { width: 4px; }
.input-list-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.7); }
.input-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 13px;
  color: var(--accent);
  margin-bottom: 8.5px;
}
.input-list li.invalid { color: var(--pink); }
.input-list li .err-note {
  display: block;
  font-family: var(--font-ja);
  font-size: 10.8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.input-list li.note-line { display: block; margin-left: 15px; }

.input-note-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 370px;
  height: 17px;
}
.note {
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.7);
}
.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 21px;
  color: #fff;
  border-bottom: 0.57px solid #fff;
  padding-bottom: 1px;
}
.icon-trash { width: 10.3px; height: 11.4px; fill: #fff; }

.step2 { margin-top: 10px; }
[data-state="result"] .step2 { margin-top: 20px; }
.step2-note {
  margin-top: 3px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 13px;
}

.carrier-rows { margin-top: 10px; }
.carrier-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 5px;
}






.carrier-row + .carrier-row { margin-top: 10px; }
.carrier {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}
.carrier input { display: none; }
.cbox {
  width: 15px;
  height: 15px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cbox svg { width: 11px; height: 8.5px; margin-top: 1px; }
.carrier input:not(:checked) + .cbox { background: rgba(255, 255, 255, 0.6); }
.carrier input:not(:checked) + .cbox svg { visibility: hidden; }
.cbox-off { background: rgba(255, 255, 255, 0.6); }
.carrier-name {
  font-family: var(--font-en);
  font-size: 15px;
  line-height: 21px;
  color: var(--accent);
  white-space: nowrap;
}
.carrier-name.off { color: #fff; font-size: 13px; }

.step3 { margin-top: 20px; }

.check-btn {
  margin-top: 5px;
  width: 370px;
  height: 50px;
  background: var(--btn-disabled);
  font-size: 15px;
  font-weight: 700;
  line-height: 150%;
  text-align: center;
  color: rgba(0, 254, 202, 0.4);
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.check-btn.is-active {
  background: var(--accent);
  color: #0A243C;
  cursor: pointer;
}
[data-state="result"] .check-btn {
  background: var(--btn-disabled);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  cursor: default;
}
[data-state="result"] .check-btn.is-active {
  background: var(--accent);
  color: #0A243C;
  cursor: pointer;
  border: none;
}
.check-btn .btn-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  animation: spin 1s linear infinite;
}

/* ---------- right panel ---------- */
.panel-result {
  flex: 1;
  padding: 0 20px 20px;
  position: relative;
}

.result-head {
  margin-top: 18px;
  height: 17px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.result-heading {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--accent);
  white-space: nowrap;
}
.icon-kekka { width: 17px; height: 15px; flex: none; }
.result-meta {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.result-count {
  font-family: var(--font-en);
  font-size: 10px;
  line-height: 18px;
  color: #fff;
}
.clear-history { font-family: var(--font-ja); font-size: 10px; line-height: 18px; border-bottom-width: 0.5px; }
.clear-history .icon-trash { width: 9px; height: 10px; }

/* --- initial: empty box --- */
.result-empty {
  margin-top: 10px;
  width: 100%;
  height: 335px;
  background: var(--box);
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-empty p {
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
  color: rgba(255, 255, 255, 0.7);
}

/* --- result state --- */
.result-body { position: relative; }

.filter-tabs {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}
.tab {
  width: 80px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--muted);
  font-size: 12px;
  line-height: 150%;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.tab.is-active {
  background: var(--tab-active-bg);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 500;
}

/* table */
.result-table-wrap {
  max-height: 620px;
  overflow-y: auto;
  margin-top: 10px;
  background: var(--box);
  border: 0.5px solid var(--accent-border);
}
.result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;             /* 列は内容基準 (楽天モバイル等の折返し防止) */
}
.result-table th { white-space: nowrap; }
.result-table td { white-space: nowrap; }
.result-table col { }
.result-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--thead);
  height: 33px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: var(--accent);
  text-align: left;
  padding-left: 20px;
}
.result-table th.col-no { width: 48px; min-width: 48px; padding-left: 16px; }
.result-table th.col-imei { width: 200px; min-width: 200px; padding-left: 16px; }
.result-table th.col-carrier { width: 100px; min-width: 80px; padding-left: 10px; text-align: center; }
.result-table th.col-carrier + .col-carrier { width: 90px; min-width: 70px; }
.result-table th.col-carrier + .col-carrier + .col-carrier { width: auto; }
.result-table td {
  height: 39px;
  border-top: 0.5px solid rgba(0, 254, 202, 0.6);
  font-family: var(--font-en);
  font-size: 11px;
  line-height: 18px;
  color: #fff;
  padding-left: 16px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-table tr:first-child td { border-top: none; }
.result-table td.mark {
  font-size: 15px;
  font-weight: 300;
  padding-left: 10px;
  text-align: center;
}
.result-table td.mark.ok { color: var(--accent); }
.result-table td.mark.warn { color: var(--yellow); font-weight: 400; }
.result-table td.mark.ng { color: var(--pink); }
.result-table td.mark.none { color: var(--muted); }
.result-table tr.invalid td { color: var(--pink); }
.result-table tr.invalid td.imei-cell-invalid {
  white-space: nowrap;
  overflow: visible;
}
.result-table .imei-num {
  display: inline-block;
  max-width: 118px;               /* 長いIMEIは「...」で省略 (約15桁分) */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.result-table tr.invalid .fmt-err {
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 9px;
  color: var(--pink);
  margin-left: 10px;
  vertical-align: middle;
}
.result-table tr.invalid td.mark {
  /* 無効行のキャリア列は空 */
  color: transparent;
}

/* CSV button */
.csv-btn {
  margin: 10px 10px 0 auto;
  width: 160px;
  height: 40px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: #021323;
}
.icon-csv { width: 12px; height: 14px; }

/* legend */
.legend-block { margin-top: -20px; }
.legend-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 19px;
  color: #fff;
  width: calc(100% - 195px);
  padding-bottom: 5px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.6);
  text-align: left;
}
.legend-toggle .icon-kekka { width: 18px; height: 18px; }
.chev {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(-135deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.legend-block.closed .chev { transform: rotate(45deg); }
.legend-block.closed .legend-body { display: none; }

.legend-body { margin-top: 15px; }
.legend-table {
  width: 100%;
  border-collapse: collapse;
  border: 0.5px solid var(--accent-border);
}
.legend-table th {
  background: var(--thead);
  height: 33px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 12px;
  color: var(--accent);
  text-align: left;
}
.legend-table th.lg-mark { width: 90px; padding-left: 41px; }
.legend-table th.lg-state { width: 88px; }
.legend-table th.lg-desc { padding-left: 0; text-align: left; text-indent: 214px; }
.legend-table td {
  border-top: 0.5px solid rgba(0, 254, 202, 0.6);
  padding: 14px 0;
  vertical-align: middle;
}
.legend-table tr:first-child td { border-top: none; }
.legend-table td.lg-mark {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 300;
  text-align: left;
  padding-left: 41px;
  width: 90px;
}
.legend-table td.mark-ok { color: var(--accent); }
.legend-table td.mark-warn { color: var(--yellow); font-weight: 400; }
.legend-table td.mark-ng { color: var(--pink); }
.legend-table td.mark-none { color: var(--muted); }
.legend-table td.lg-state { text-align: center; width: 88px; }
.st-name { display: block; font-size: 12px; line-height: 14px; color: #fff; }
.st-sub { display: block; font-size: 10px; font-weight: 500; line-height: 12px; margin-top: 1px; }
.sub-ok { color: var(--accent); }
.sub-warn { color: var(--yellow); }
.sub-ng { color: var(--pink); }
.sub-none { color: var(--muted); }
.legend-table td.lg-desc {
  font-size: 10px;
  line-height: 14px;
  color: #fff;
  padding-left: 0;
  padding-right: 30px;
}

/* ============================================================
   Our service / banner
   ============================================================ */
.service { margin-top: 40px; }

.sec-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 750px;
  margin: 0 auto;
  height: 16px;
}
.sec-en {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.sec-ja {
  font-size: 12px;
  font-weight: 500;
  line-height: 21px;
  color: #fff;
  transform: skewX(-5deg);
}

/* --- banner --- */
.kaitori-banner {
  display: block;
  width: 750px;
  height: 110px;
  margin: 10px auto 0;
}
.kaitori-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.cyan-line {
  margin: 40px 0 0;
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.6;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 40px; }
.faq .sec-heading { margin-bottom: 10px; }

.faq-list {
  width: 750px;
  margin: 0 auto;
}
.faq-item {
  background: var(--panel);
  width: 750px;
  padding: 18px 20px;
  margin-bottom: 10px;
}
.faq-q {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  color: #fff;
}
.q-mark {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 20px;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--accent);
}
.faq-a {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 160%;
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  margin-top: 40px;
  height: 22px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.site-footer p {
  font-size: 10px;
  line-height: 150%;
  color: var(--footer-text);
  text-align: center;
}

/* ============================================================
   ============================================================
   SP  (≤767px)   comp: 375px
   ============================================================
   ============================================================ */
@media (max-width: 767px) {

  .pc-only { display: none !important; }
  .sp-only { display: block !important; }
  span.sp-only, .tabs-fade.sp-only { display: inline-flex !important; }
  br.sp-only { display: inline !important; }
  div.carrier-row-annotation.sp-only { display: flex !important; }

  .container { width: auto; margin: 0 15px; }

  body {
    background:
      /*url(../assets/bg-sp.jpg) center 17px no-repeat,*/
      url(../assets/noise.png) repeat,
      var(--bg);
    background-size: 375px auto, 256px 256px, auto;
  }

  /* SEO strip */
  .sp-seo-strip {
    display: block;
    background: #021323;
    height: 20px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 17px;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    overflow: hidden;
    white-space: nowrap;
  }

  /* header */
  .site-header {
    height: auto;
    border-bottom: none;
    background: transparent;
  }
  .header-inner {
    width: 100%;
    height: 73px;
    position: relative;
    background: url(../assets/header-texture-sp.jpg) top center no-repeat;
    /*background-size: 375px 73px;*/
    background-size: cover;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.4);
  }
  .site-header { background: var(--bg); height: auto; }
  .logo {
    display: none;
    left: 50%;
    top: 15px;
    width: 181px;
    transform: translateX(-50%);
  }
  .splogo{
    display: block;
    left: 50%;
    top: 15px;
    width: 181px;
    transform: translateX(-50%);
  }

  /* hero copy becomes its own band */
  .hero-copy {
    position: static;
    width: auto;
    height: 182px;
    padding: 20px 14px 0;
  }
  .hero-copy h1 {
    display: block;
    height: auto;
    white-space: normal;
  }
  .h1-line1 {
    display: block;
    font-size: 21.84px;
    line-height: 35px;
    margin-top: 0;
  }
  .h1-line2 { margin-left: 0; height: 44px; }
  .h1-strong { font-size: 34px; line-height: 42px; }
  .quote { font-size: 31.4px; line-height: 25px; }
  .hero-lead {
    margin-top: 2px;
    font-size: 10px;
    line-height: 170%;
    letter-spacing: 0.03em;
    white-space: normal;
    width: 231px;
  }

  /* hero copy lives inside flow: give the band its height */
  .page { padding-top: 0; }
  .checker { padding-top: 0; background: #0d243810; /*var(--bg)*/ margin-top: 0; }

  .checker-cols { display: flex; flex-direction: column; gap: 0; }
  
  /*.panel{
    background: #021323;
  }*/

  .panel-input {
    width: auto;
    padding: 0 15px 15px;
  }

  .step1 { margin-top: 19px; }
  .step-label { font-size: 14px; line-height: 21px; }
  .step-title { font-size: 13px; line-height: 19px; }
  .step2 .step-title, .step3 .step-title { font-size: 12px; }

  .imei-textarea {
    width: 100%;
    height: 92px;
    font-size: 12px;
    line-height: 18px;
    padding: 10px 12px;
    border-width: 0.5px;
  }

  .input-list-block { margin-top: 15px; }
  .input-list-heading { font-size: 13px; }
  .input-list-box {
    width: 100%;
    height: 126px;
    border-width: 0.5px;
    border-color: var(--accent-border);
    padding: 10px;
  }
  .input-list li { font-size: 12px; margin-bottom: 8px; }
  .input-list li .err-note { font-size: 10px; }

  .input-note-row { width: 100%; margin-top: 10px; height: 15px; }
  .note { font-size: 10px; line-height: 18px; }
  .text-btn { font-size: 10px; line-height: 18px; }
  .icon-trash { width: 9px; height: 10px; }

  .step2 { margin-top: 13px; }
  [data-state="result"] .step2 { margin-top: 13px; }
  .step2-note { font-size: 10px; }

  .carrier-rows { margin-top: 1px; }
  .carrier-row { column-gap: 14px; row-gap: 7px; }
  .carrier-row + .carrier-row { margin-top: 7px; }
  .carrier { gap: 3px; }
  .cbox { width: 12px; height: 12px; }
  .cbox svg { width: 9.6px; height: 7.2px; }
  .carrier-name { font-size: 14px; line-height: 18px; }
  .carrier-name.off { font-size: 13px; }

  .step3 { margin-top: 17px; }

  .check-btn {
    width: 100%;
    height: 45px;
    font-size: 13px;
    margin-top: 7px;
  }

  /* SP: result panel hidden until check */
  [data-state="initial"] .panel-result { display: none; }

  .panel-result {
    margin-top: 10px;
    padding: 0 15px 15px;
    width: auto;
  }

  .result-head { margin-top: 21px; height: auto; }
  .result-heading { font-size: 14px; line-height: 19px; }
  .icon-kekka { width: 14px; height: 12px; }

  .result-count { display: block; margin-top: 8px; }
  .result-meta {
    position: static;
    display: block;
  }
  .result-head { display: block; position: relative; }
  .result-head .clear-history { position: absolute; right: 0; top: 0; }

  .filter-tabs {
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }
  .tabs-fade {
    position: sticky;
    right: 0;
    margin-left: -60px;
    width: 60px;
    height: 30px;
    flex: none;
    background: linear-gradient(270deg, #031425 0%, rgba(7, 27, 45, 0) 71.65%);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
  }
  .chev-right {
    width: 6px;
    height: 6px;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    transform: rotate(45deg);
    margin-right: 6px;
  }

  .result-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border-width: 0.5px;
    -webkit-overflow-scrolling: touch;
  }
  .result-table { width: 520px; min-width: 520px; table-layout: auto; }
  .result-table th { height: 33px; font-size: 11px; white-space: nowrap; }
  .result-table th.col-no { width: 30px; min-width: 30px; padding-left: 6px; }
  .result-table th.col-imei { width: 130px; min-width: 130px; padding-left: 8px; }
  .result-table th.col-carrier { width: 65px; min-width: 55px; padding-left: 4px; text-align: center; }
  .result-table th.col-carrier + .col-carrier { width: 65px; min-width: 55px; padding-left: 4px; }
  .result-table th.col-carrier + .col-carrier + .col-carrier { width: 60px; min-width: 50px; padding-left: 4px; }
  .result-table td { padding-left: 6px; font-size: 10px; height: 36px; white-space: nowrap; }
  .result-table td.mark { padding-left: 4px; text-align: center; font-size: 13px; }
  .result-table tr.invalid .fmt-err { display: inline; margin-left: 6px; }
  .result-table tr.invalid td.imei-cell-invalid { white-space: nowrap; overflow: visible; }
  .result-table .imei-num { max-width: 96px; }

  .csv-btn {
    width: 100%;
    height: 35px;
    margin: 15px 0 0;
  }

  .legend-block { margin-top: 25px; }
  .legend-toggle { width: 100%; }
  .legend-body { margin-top: 15px; }
  .legend-table { width: 100%; }
  .legend-table th { font-size: 12px; }
  .legend-table th.lg-mark { width: 44px; padding-left: 8px; }
  .legend-table th.lg-state { width: 73px; }
  .legend-table th.lg-desc { padding-left: 10px; text-indent: 0; text-align: left; }
  .legend-table td.lg-mark { width: 44px; padding-left: 14px; }
  .legend-table td.lg-state { width: 73px; }
  .legend-table td.lg-desc { padding-left: 10px; padding-right: 10px; }
  .result-table tr.invalid td { white-space: nowrap; }

  /* service / banner */
  .service { margin-top: 30px; }
  .sec-heading { width: auto; }
  .sec-en { font-size: 16px; line-height: 21px; }
  .sec-ja { font-size: 10px; }

  .kaitori-banner {
    width: 100%;
    max-width: 345px;
    height: 75px;
    margin: 2px auto 0;
  }
  .kaitori-banner img { content: url(../assets/banner-sp.png); }

  .cyan-line { margin-top: 30px; border-top-width: 0.5px; }

  /* FAQ */
  .faq { margin-top: 30px; }
  .faq-list { width: auto; }
  .faq-item {
    width: auto;
    min-height: 0;
    padding: 15px;
    margin-bottom: 10px;
  }
  .faq-q { font-size: 12px; line-height: 17px; gap: 5px; }
  .q-mark { font-size: 15px; }
  .faq-a { margin-top: 10px; font-size: 10px; line-height: 16px; }

  /* footer */
  .site-footer { margin-top: 44px; height: 55px; align-items: flex-start; }
  .site-footer p { font-size: 9px; margin-top: 6px; width: 100%; }
}


/* ============================================================
   追加: リアルタイムIMEIプレビュー
   ============================================================ */
.imei-preview-area {
  margin-top: 15px;
}
.imei-preview-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  color: #fff;
  margin-bottom: 5px;
}
.imei-preview-box {
  width: 370px;
  max-height: 180px;
  background: var(--box);
  border: 2px solid var(--accent);
  padding: 13px 13px;
  overflow-y: auto;
}
.imei-preview-box::-webkit-scrollbar { width: 4px; }
.imei-preview-box::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.7); }
.imei-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.imei-preview-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-en);
  font-size: 13px;
  line-height: 13px;
  color: var(--accent);
  margin-bottom: 8.5px;
}
.imei-preview-list li.invalid { color: var(--pink); }
.imei-preview-list li .err-note {
  display: block;
  font-family: var(--font-ja);
  font-size: 10.8px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.imei-preview-list li.note-line { display: block; margin-left: 15px; }

/* ============================================================
   追加: プログレスバー
   ============================================================ */
.progress-container {
  margin-top: 16px;
  padding: 0;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: var(--font-en);
}
.progress-label #progressText {
  font-family: var(--font-ja);
  font-size: 12px;
  color: #fff;
}
.progress-label #progressPercent {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.progress-bar-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 3px;
  height: 5px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0a6e5c);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}
/* チェック中のボタンスタイル */
[data-state="result"] .check-btn:disabled {
  background: var(--btn-disabled);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  cursor: default;
}

/* ============================================================
   追加: スクロールヒント（Figma準拠オーバーレイ）
   ============================================================ */
.result-table-wrap {
  position: relative;
}
/* (旧・自作スクロールヒントのCSSは ScrollHint ライブラリとクラス名が衝突するため削除) */

/* ============================================================
   追加: ローディングスピナー
   ============================================================ */
.mark.loading {
  text-align: center;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   追加: モバイル対応
   ============================================================ */
@media (max-width: 767px) {
  .imei-preview-area { margin-top: 10px; }
  .imei-preview-box { width: 100%; max-height: 150px; padding: 10px; }
  .imei-preview-list li { font-size: 12px; margin-bottom: 7px; }

  .progress-container { margin-top: 10px; padding: 8px 0; }
  .progress-label #progressText { font-size: 11px; }
  .progress-label #progressPercent { font-size: 12px; }
  .progress-bar-wrapper { height: 8px; }

}


/* ============================================================
   チェック日時列 / 過去の確認結果 (追加修正_20260724)
   ============================================================ */
.result-table th.col-date { width: 160px; padding-left: 10px; font-size: 11px; white-space: nowrap; }
.result-table td.date {
  font-family: var(--font-en);
  font-size: 11px;                /* Figma: Saira 11px */
  line-height: 18px;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 10px;
}
.result-table tr.invalid td.date { color: var(--muted); }

.history-list {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;                      /* Figma: バー間 10px */
}
.history-head {
  display: flex;
  align-items: center;
  gap: 5px;                       /* Figma: タイトル→日時 5px */
  width: 100%;
  height: 36px;                   /* Figma: 735x36 */
  padding: 0 14px 0 10px;         /* Figma: 左10px */
  background: #344B5F;            /* Figma実測 rgb(52,75,95) */
  border: 1px solid var(--accent);
  text-align: left;
  cursor: pointer;
}
.history-head .h-title {
  font-size: 12px;                /* Figma: Noto Sans JP 12px Bold */
  font-weight: 700;
  line-height: 24.43px;
  color: var(--accent);
  white-space: nowrap;
}
.history-head .h-date {
  font-family: var(--font-en);
  font-size: 11px;                /* Figma: Saira 11px Regular */
  line-height: 18px;
  color: #fff;
  white-space: nowrap;
}
.history-head .h-count {
  font-family: var(--font-en);
  font-size: 12px;                /* Figma: Saira 12px Bold */
  font-weight: 700;
  line-height: 24.43px;
  color: var(--accent);
  margin-left: 5px;               /* 日時→件数 計10px */
  white-space: nowrap;
}
.history-head .h-chev {
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
  flex: none;
}
.history-item.open .history-head {
  background: var(--accent);
  border-color: var(--accent);
}
.history-item.open .history-head .h-title,
.history-item.open .history-head .h-date,
.history-item.open .history-head .h-count { color: #05192B; }
.history-item.open .history-head .h-chev {
  border-color: #05192B;
  transform: rotate(-135deg) translate(-2px, -2px);
}
.history-body { display: none; padding-top: 12px; }
.history-item.open .history-body { display: block; }
.history-body .filter-tabs { margin-top: 0; }
.history-body .result-table-wrap { margin-top: 10px; }

/* ScrollHint ライブラリの色調整 (ダークテーマ) */
.scroll-hint-icon {
  background: rgba(2, 19, 35, 0.92);
  border: 1px solid var(--accent-border);
}

@media (max-width: 767px) {
  .result-table th.col-date { width: 150px; }
  .history-head { gap: 10px; padding: 0 10px; height: 36px; }
  .history-head .h-title { font-size: 12px; }
  .history-head .h-date { font-size: 11px; }
  .history-head .h-count { font-size: 12px; }
  .history-body .filter-tabs { overflow-x: auto; }
}

/* ---------- history-list: always visible even in initial state ---------- */
[data-state="initial"] .panel-result .history-list {
  display: flex !important;
}
@media (max-width: 767px) {
  [data-state="initial"] .panel-result {
    display: block !important;
  }
  [data-state="initial"] .panel-result > *:not(.history-list) {
    display: none !important;
  }
  [data-state="initial"] .panel-result .history-list {
    display: flex !important;
  }
}
