/* ── 更新履歴モーダル ────────────────────────────── */
.hm-row--version{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  cursor:pointer;
  text-align:left;
  background:transparent;
  border:none;
  width:100%;
  padding:10px 16px;
  font-family:inherit;
}
.hm-row--version:hover{
  background:#f5f5f8;
}
.hm-version-arrow{
  margin-left:auto;
  color:#b0b0bc;
  font-size:18px;
  font-weight:300;
  line-height:1;
}
.changelog-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.5);
  z-index:9500;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  box-sizing:border-box;
}
.changelog-modal.show{
  display:flex;
}
.changelog-card{
  background:#fff;
  border-radius:14px;
  max-width:560px;
  width:100%;
  max-height:80vh;
  display:flex;
  flex-direction:column;
  box-shadow:0 16px 48px rgba(0,0,0,.22);
  overflow:hidden;
}
.changelog-head{
  display:flex;
  align-items:center;
  padding:16px 20px;
  border-bottom:1px solid #ececf2;
  flex-shrink:0;
}
.changelog-title{
  font-size:15px;
  font-weight:700;
  color:#1a1a2e;
  letter-spacing:.02em;
}
.changelog-close{
  margin-left:auto;
  background:transparent;
  border:none;
  font-size:18px;
  color:#888;
  cursor:pointer;
  padding:4px 8px;
  border-radius:6px;
  line-height:1;
  font-family:inherit;
}
.changelog-close:hover{
  background:#f0f0f5;
  color:#333;
}
.changelog-body{
  padding:8px 20px 20px;
  overflow-y:auto;
}
.changelog-entry{
  padding:16px 0;
  border-bottom:1px solid #f0f0f5;
}
.changelog-entry:last-child{
  border-bottom:none;
}
.changelog-entry-head{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin-bottom:8px;
}
.changelog-ver{
  font-size:14px;
  font-weight:700;
  color:#1a1a2e;
  letter-spacing:.02em;
}
/* master 仕様 (2026-05-10): 最新版バッジは TORIAI indigo */
.changelog-entry.is-latest .changelog-ver{
  color:#4f46e5;
}
.changelog-date{
  font-size:11px;
  color:#8a8a9a;
  font-weight:500;
}
.changelog-list{
  list-style:none;
  padding:0;
  margin:0;
}
.changelog-list li{
  position:relative;
  padding:4px 0 4px 16px;
  font-size:12px;
  color:#3a3a4e;
  line-height:1.6;
}
.changelog-list li::before{
  content:'•';
  position:absolute;
  left:2px;
  top:4px;
  color:#b0b0bc;
  font-weight:700;
}

.onboarding-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.88);
  z-index:9600;
  align-items:center;
  justify-content:center;
  padding:24px 16px;
  box-sizing:border-box;
}
.onboarding-modal.show{
  display:flex;
}
.onboarding-card{
  position:relative;
  width:100%;
  max-width:680px;
  max-height:none;
  display:flex;
  flex-direction:column;
  background:#000;
  color:#fff;
  border-radius:0;
  border:2px solid #000;
  box-shadow:0 0 0 2px #fff, inset 0 0 0 2px #fff;
  overflow:hidden;
  font-family:'Press Start 2P','DotGothic16','Noto Sans JP',monospace;
}
#calcOnboardingModal,
#calcOnboardingModal *{
  font-family:'Press Start 2P','DotGothic16','Noto Sans JP',monospace;
}
.onboarding-body{
  position:relative;
  min-height:300px;
  padding:10px;
  background:#000;
}
.onboarding-page{
  display:none;
  height:100%;
  min-height:300px;
  border:2px solid #000;
  border-radius:0;
  background:#000;
  box-shadow:0 0 0 2px #fff, inset 0 0 0 2px #fff;
  padding:24px 24px 58px;
  box-sizing:border-box;
}
.onboarding-page.is-active{
  display:block;
}
.onboarding-page-no{
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  color:#fff;
  margin-bottom:14px;
  line-height:1.8;
}
.onboarding-page-kicker{
  font-size:11px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#fff;
  margin-bottom:10px;
  line-height:1.8;
}
.onboarding-page-title{
  margin:0 0 14px;
  font-size:26px;
  line-height:1.45;
  color:#fff;
  letter-spacing:.01em;
}
.onboarding-page-text{
  margin:0;
  max-width:560px;
  font-size:14px;
  line-height:2.05;
  color:#fff;
}
.onboarding-actions{
  display:none;
  position:absolute;
  right:24px;
  bottom:18px;
  z-index:4;
}
.onboarding-actions.is-complete{
  display:flex;
}
.onboarding-primary,
.onboarding-secondary{
  min-width:0;
  border-radius:0;
  padding:10px 14px;
  font-family:'Press Start 2P','DotGothic16','Noto Sans JP',monospace;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
  transition:all .15s;
  line-height:1.7;
}
.onboarding-primary{
  background:#fff;
  color:#000;
  border:2px solid #fff;
  box-shadow:inset 0 0 0 2px #000;
}
.onboarding-primary:hover{
  background:#000;
  color:#fff;
  box-shadow:inset 0 0 0 2px #fff;
}
.onboarding-body kbd{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  padding:2px 7px;
  border:2px solid #fff;
  border-radius:0;
  background:#000;
  color:#fff;
  font-family:'Press Start 2P','DotGothic16','Noto Sans JP',monospace;
  font-size:10px;
  font-weight:700;
  line-height:1.8;
}
.onboarding-nav{
  position:absolute;
  bottom:18px;
  z-index:5;
  width:42px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
  border-radius:0;
  background:#000;
  color:#fff;
  box-shadow:inset 0 0 0 2px #000, 0 0 0 2px #000;
  font-family:'Press Start 2P','DotGothic16','Noto Sans JP',monospace;
  font-size:14px;
  line-height:1;
  cursor:pointer;
}
.onboarding-nav[hidden]{
  display:none;
}
.onboarding-nav:hover{
  background:#fff;
  color:#000;
  box-shadow:inset 0 0 0 2px #000, 0 0 0 2px #fff;
}
.onboarding-nav-left{
  left:22px;
}
.onboarding-nav-right{
  right:22px;
}
@media (max-width: 720px){
  .onboarding-card{
    max-width:calc(100vw - 24px);
    border-radius:0;
  }
  .onboarding-page{
    min-height:280px;
    padding:20px 18px 62px;
  }
  .onboarding-page-title{
    font-size:18px;
  }
  .onboarding-page-text{
    font-size:12px;
    line-height:2.1;
  }
  .onboarding-actions{
    right:18px;
    bottom:18px;
  }
  .onboarding-primary,
  .onboarding-secondary{
    width:auto;
  }
  .onboarding-nav{
    width:38px;
    height:32px;
    bottom:18px;
  }
  .onboarding-nav-left{
    left:18px;
  }
  .onboarding-nav-right{
    right:18px;
  }
}

