/* ===========================
   CSS Variables & Reset
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #2B7FE0;
  --primary-dark:  #1A60C0;
  --primary-light: #EBF3FD;
  --primary-mid:   #D0E6FA;
  --accent:        #FF6B35;
  --bg:            #EEF3F9;
  --surface:       #FFFFFF;
  --border:        #D8E4F0;
  --text-main:     #1A2130;
  --text-sub:      #5A6880;
  --text-muted:    #9AAABB;
  --success:       #18A058;
  --radius-card:   18px;
  --radius-sm:     10px;
  --shadow-card:   0 2px 16px rgba(43,127,224,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-modal:  0 8px 48px rgba(43,127,224,.18), 0 2px 12px rgba(0,0,0,.10);
  --transition:    all .22s cubic-bezier(.4,0,.2,1);
  --font:          'Noto Sans JP', sans-serif;
}

html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

/* ===========================
   App Wrapper
=========================== */
.app-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 60px;
}

.hidden { display: none !important; }

/* ===========================
   Screen Header
=========================== */
.screen-header {
  text-align: center;
  padding: 40px 24px 28px;
}
.screen-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--primary);
}
.screen-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.3;
  letter-spacing: -.02em;
}
.screen-subtitle {
  font-size: .9rem;
  color: var(--text-sub);
  margin-top: 6px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .82rem;
  font-family: var(--font);
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 20px;
}
.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===========================
   Step indicator
=========================== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}
.step-dot {
  width: 8px; height: 8px;
  background: var(--border);
  border-radius: 50%;
  transition: var(--transition);
}
.step-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

/* ===========================
   Category Grid (Step 1)
=========================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 20px;
}

.category-card {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-card);
  padding: 22px 12px 18px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.category-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--primary-light);
  opacity: 0;
  transition: opacity .2s;
}
.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(43,127,224,.18), 0 2px 8px rgba(0,0,0,.08);
}
.category-card:hover::before { opacity: 1; }
.category-card:active { transform: translateY(0); }

/* Font Awesomeアイコン（fallback用） */
.category-card-icon {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

/* SVG線画アイコン */
.category-card-svg {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  transition: var(--transition);
}
.category-card:hover .category-card-svg {
  transform: translateY(-2px) scale(1.05);
}

.category-card-name {
  position: relative;
  z-index: 1;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}
.category-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

/* ===========================
   Symptom List (Step 2)
=========================== */
.symptom-list {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Collapsed symptom card --- */
.symptom-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}
.symptom-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px;
  cursor: pointer;
  user-select: none;
}
.symptom-card-icon {
  width: 38px; height: 38px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: var(--transition);
}
.symptom-card-label {
  flex: 1;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.symptom-card-toggle {
  width: 28px; height: 28px;
  background: var(--primary-light);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.symptom-card:hover:not(.is-open) {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(43,127,224,.14);
}
.symptom-card:hover:not(.is-open) .symptom-card-toggle {
  background: var(--primary);
  color: #fff;
}

/* --- Open state --- */
.symptom-card.is-open {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(43,127,224,.15);
  position: relative;
}
.symptom-card.is-open .symptom-card-header {
  border-bottom: 1.5px solid var(--primary-mid);
}
.symptom-card.is-open .symptom-card-icon {
  background: var(--primary);
  color: #fff;
}
.symptom-card.is-open .symptom-card-toggle {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}
.symptom-card.is-open .symptom-card-label {
  color: var(--primary-dark);
}

/* 下向き矢印インジケーター */
.symptom-card.is-open .symptom-card-header::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--primary);
  pointer-events: none;
}

/* --- Accordion body (カード内部) --- */
.symptom-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height .36s cubic-bezier(.4,0,.2,1);
}
.symptom-accordion.is-open {
  max-height: 900px;
}
.accordion-inner {
  padding: 18px 14px 14px;
  background: #F7FAFD;
}
.accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* PC時レイアウト調整 */
@media (min-width: 769px) {
  .accordion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screen-header { padding: 48px 32px 32px; }
  .screen-title  { font-size: 1.8rem; }
  .category-grid { padding: 0 32px; gap: 18px; }
  .symptom-list  { padding: 0 32px; max-width: 760px; margin: 0 auto; width: 100%; }
  .accordion-inner { padding: 22px 20px 18px; }
}

.check-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.45;
  min-height: 60px;
}
.check-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(43,127,224,.12);
}
.check-btn:active {
  background: var(--primary-mid);
}
.check-btn-none {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1.5px dashed var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.check-btn-none:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #FFF5F0;
}

/* ===========================
   Modal
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, .55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border-radius: 24px;
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
  animation: slideUp .28s cubic-bezier(.4,0,.2,1);
}
@keyframes slideUp {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--text-sub);
  cursor: pointer;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.modal-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-main);
  text-align: center;
  line-height: 1.4;
  margin-bottom: 18px;
}
.modal-body {
  font-size: .88rem;
  color: var(--text-sub);
  text-align: center;
  line-height: 1.8;
  margin-bottom: 22px;
}
.modal-body strong { color: var(--primary-dark); }
.modal-resolve-label {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.modal-actions {
  display: flex;
  gap: 10px;
}
.btn-primary {
  flex: 1;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 10px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(43,127,224,.35);
}
.btn-secondary {
  flex: 1;
  background: var(--surface);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 13px 10px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}
.btn-outline {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ===========================
   Resolved Modal
=========================== */
.resolved-modal { text-align: center; }
.resolved-icon {
  font-size: 3.5rem;
  color: var(--success);
  margin-bottom: 16px;
}
.resolved-title {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--text-main);
}
.resolved-body {
  font-size: .88rem;
  color: var(--text-sub);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* ===========================
   Contact Modal
=========================== */
.contact-modal { text-align: center; }
.contact-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.contact-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--text-main);
}
.contact-body {
  font-size: .85rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 20px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--primary-light);
  border: 1.5px solid var(--primary-mid);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--primary-dark);
  transition: var(--transition);
}
.contact-method:hover {
  background: var(--primary-mid);
  transform: translateX(2px);
}
.contact-method > i {
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-method > span {
  flex: 1;
  font-size: .88rem;
  font-weight: 700;
  text-align: left;
}
.contact-method > small {
  font-size: .75rem;
  color: var(--text-sub);
}

/* ===========================
   Scrollbar
=========================== */
.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===========================
   Responsive（スマホ縦）
=========================== */
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }
  .symptom-list { padding: 0 16px; }
  .screen-header { padding: 28px 16px 20px; }
  .screen-title { font-size: 1.3rem; }
  .accordion-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 18px 22px; }
  .modal-actions { flex-direction: column; }
}

/*============================
#self-check
※cssの上書き   2026.07.16 add
============================*/
.symptom-card-label {
  font-size: 1.5rem;
}

.check-btn {
  font-size: 1.3rem;
}

.check-btn-none {
  font-size: 1.3rem;
}

.back-btn {
  font-size: 1.3rem;
}

/* 20260716-2 add */
.step-indicator {
  opacity: 0.3;
  display: none;
}

.app-wrapper {
  max-width: 1000px;
  padding: 0 0 20px;
}

.screen-header {
  padding: 33px 32px 32px;
}
@media (max-width: 768px) {
  .screen-header {
    padding: 5px 32px 25px;
  }
}

.screen-subtitle {
  font-size: 1.5rem;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .category-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    min-height: 50px;
    border-radius: 8px;
    position: relative;
  }
  .category-card::after {
    position: absolute;
    content: "";
    top: calc((100% - 15px) / 2);
    right: 20px;
    width: 15px;
    height: 15px;
    background: url(https://tools.itembox.cloud/item/lp/self-check/img/ico_self-check_04.png) center center/contain no-repeat;
  }
}

.category-card-svg {
  width: 100px;
  height: 100px;
}
@media (max-width: 768px) {
  .category-card-svg {
    width: 65px;
    height: 60px;
  }
}

.category-card-name {
  font-size: 1.5rem;
}
@media (max-width: 768px) {
  .category-card-name {
    display: block;
    width: calc(100% - 80px);
    font-size: 1.8rem;
    padding: 0 25px 0 0;
  }
}

.screen-title {
  font-size: 3rem;
}
.modal-label {
  font-size: 1.2rem;
}
.modal-title {
  font-size: 1.8rem;
}
.modal-body {
  font-size: 1.6rem;
}
.modal-resolve-label {
  font-size: 1.2rem;
}
.btn-primary {
  font-size: 1.3rem;
}
.btn-secondary {
  font-size: 1.3rem;
}
.resolved-title {
  font-size: 1.8rem;
}
.resolved-body {
  font-size: 1.3rem;
}
.contact-title {
  font-size: 1.8rem;
}
.contact-body {
  font-size: 1.5rem;
}
.contact-method > span {
  font-size: 1.5rem;
}
.contact-method > small {
  font-size: 1.3rem;
}
.btn-outline {
  font-size: 1.3rem;
}
/* アコーディオンの「+」を変更 */
.fa-add:before, .fa-plus:before {
    content: '\2228' !important;
}
        
        

/* 開いたら180°回転 */
.symptom-card.is-open .symptom-card-toggle {
    transform: rotate(180deg) !important;
}

/*  ※cssの上書き  2026.07.16 add end ------------------ */

/*  2026.09.08 add ------------------------------------ */
/*  機器の選択ボタン部分 1行3個 → 4個に変更   */
/* ===========================
   Category Grid (Step 1)
=========================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
/*  機器の選択ボタン部分 1行3個 → 4個に変更 end */

/*  pc版のみｼｭﾐﾚｰﾀ ボタンのテキストを2行分に */
@media screen and (min-width: 769px) {
  .category-card-name {
  min-height: 2.8em;
  display: flex;
  align-items: center;
  }
}
/*  pc版のみｼｭﾐﾚｰﾀ ボタンのテキストを2行分に end */

/*  2026.09.08 add end ------------------------------------ */