@charset "utf-8";

/* フォント */
@font-face {
  font-family: "NicoMojiPlus";
  src: url("../fonts/nicomoji-plus_v2-5.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "LightNovelPOP";
  src: url("../fonts/LightNovelPOPv2.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* 共通 */
body{
  color: #1E293B;
  background-color: #FFFDF7;
  font-family: "Noto Sans JP", sans-serif;
  max-width: 390px;
  margin: 0 auto;
}
label{
  display: block;
  width: 100%;
  max-width: 390px;
  margin: 0 auto 4px;
}
input{
  width: 100%;
  max-width: 390px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #1E293B;
  border-radius: 5px;
  padding: 0 10px;
  margin: 0 auto;
  display: block;
}
.form-wrap.error input,
.register-form-wrap.error input,
.reset-form-wrap.error input{
  border: 2px solid #FF7043;
}
.error-label{
  display: none;
}
.form-wrap.error .error-label,
.register-form-wrap.error .error-label,
.reset-form-wrap.error .error-label{
  display: block;
  color: #FF7043;
  margin: 8px 0 0 8px;
  font-size: 14px;
}
.form-password,
.register-form-password,
.register-form-re-password,
.reset-form-password,
.reset-form-re-password{
  position: relative;
}
.pw-toggle{
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("../img/icon_invisible.png") no-repeat center;
  background-size: contain;
  border: none;
  padding: 0;
  margin: 0;
}
.form-password.visible .pw-toggle,
.register-form-password.visible .pw-toggle,
.register-form-re-password.visible .pw-toggle,
.reset-form-password.visible .pw-toggle,
.reset-form-re-password.visible .pw-toggle{
  background-image: url("../img/icon_visible.png");
}
.btn-primary{
  width: 212px;
  font-size: 28px;
  color: #fff;
  background-color: #F59E0B;
  height: 60px;
  border-radius: 100px;
  margin: 30% auto 0;
  display: block;
}
.toggle{
  width: 60px;
  height: 30px;
  background-color: #D9D9D9;
  border-radius: 50px;
  position: relative;
  transition: all .4s;
}
.toggle.on{
  background-color: #F59E0B;
}
.toggle-btn{
  background-color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  transition: all .4s;
}
.toggle.on .toggle-btn{
  left: 30px;
}
.hidden{
  opacity: 0;
  pointer-events: none;
}

/* モーダル */
.new-list-modal,
.change-list-modal{
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #333;
  z-index: 1000;
}
.new-list-modal.is-active,
.change-list-modal.is-active{
  opacity: 0.98;
  pointer-events: all;
}
.new-list-form,
.change-list-form{
  max-width: 342px;
  margin: 100px auto 0;
  padding: 0 16px;
}
.new-list-form label,
.change-list-form label{
  color: #fff;
}
.new-list-btn-wrap,
.new-list-btn-wrap,
.change-list-btn-wrap,
.change-list-btn-wrap{
  margin-top: calc(100dvh - 268px);
  display: flex;
  justify-content: space-between;
}
.new-list-close-btn,
.new-list-create-btn,
.change-list-close-btn,
.change-list-update-btn{
  display: block;
  width: 120px;
  height: 40px;
  color: #fff;
  background-color: #BDBDBD;
  border-radius: 5px;
}
.new-list-create-btn,
.change-list-update-btn{
  background-color: #F59E0B !important;
}
.new-list-form.error input,
.change-list-form.error input{
  border: 2px solid #FF7043;
}
.new-list-form.error label::after,
.change-list-form.error label::after{
  content: '*リスト名を入力してください';
  color: #FF7043;
  font-size: 14px;
  margin-left: 8px;
}

/* ローディング */
#loading-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  z-index: 9999;
  backdrop-filter: blur(2px);
}
#loading-overlay.is-active{
  display: flex;
}
.loading-dots{
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}
.loading-dots span{
  width: 10px;
  height: 10px;
  background: #fff;   /* ドットの色 */
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}
.loading-dots span:nth-child(2){
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3){
  animation-delay: 0.4s;
}
@keyframes bounce{
  from{
    transform: translateY(0);
    opacity: 0.6;
  }
  to{
    transform: translateY(-10px);
    opacity: 1;
  }
}



/* フォント */
.NicoMojiPlus{
  font-family: "NicoMojiPlus", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.LightNovelPOP{
  font-family: "LightNovelPOP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ヘッダー */
.header{
  display: none;
  justify-content: space-between;
  padding: 16px 20px;
}
.header.on{
  display: flex;
}
.header h1{
  font-size: 24px;
}
.tip-icon-wrap{
  width: 24px;
  height: 24px;
  display: none;
  z-index: 80;
}
.tip-icon-wrap.on{
  display: block;
}

/* シェイプ背景 */
.bg-shape{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -10;
  pointer-events: none;
}
.shape{
  position: absolute;
  width: auto;
}
.shape_1{
  top: 15%;
  left: -20%;
  width: 50%;
  transform: rotate(-40deg);
}
.shape_1.visible{
  top: -16%;
  left: -12%;
  width: auto;
  transform: rotate(0deg);
}
.shape_2{
  top: -3%;
  right: -4%;
  display: none;
}
.shape_2.visible{
  display: block;
}
.shape_3{
  top: 30%;
  right: -5%;
}
.shape_4{
  top: 60%;
  left: -30%;
}
.shape_5{
  bottom: -20%;
  right: -35%;
}

/* フッター */
.footer{
  /* position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%); */
  width: 100%;
  max-width: 342px;
  display: flex;
  justify-content: space-between;
  margin: 32px auto 24px;
}
.footer-icon{
  width: 24px;
  height: 24px;
  margin: 0 auto 4px;
  text-align: center;
}
.footer-icon img{
  object-fit: contain;
  width: auto;
}
.footer-txt{
  font-size: 12px;
  text-align: center;
}

/* TOPページ（ログイン） */
.app-title{
  max-width: 390px;
  position: relative;
  margin: 10vh auto 0;
  text-align: center;
}
.app-title h1{
  font-size: 48px;
}
.app-title p{
  position: absolute;
  top: -30px;
  left: 30px;
  font-size: 24px;
  transform: rotate(-6deg);
}
.login-form{
  margin: 5.5vh 42px 0;
}
.form-wrap{
  margin-bottom: 24px;
}
.login-form-links a{
  color: #6C6C6C;
  font-size: 14px;
  display: block;
  text-align: center;
}
.login-form-links a:not(:last-child){
  margin-bottom: 16px;
}

/* 登録ページ */
.register-form{
  margin: 2vh 42px 0;
}
.register-form-wrap{
  margin-bottom: 24px;
}
.nickname{
  position: relative;
}
.nickname label::after{
  content: "*あとで変更できません";
  font-size: 14px;
  color: #6C6C6C;
  padding-left: 12px;
}

/* リセットページ */
.reset-form{
  margin: 2vh 42px 0;
}
.reset-form-wrap{
  margin-bottom: 24px;
}

/* ダッシュボード */
.dashboard-inner{
  max-width: 342px;
  margin: 8px auto 0;
}
.mylist-wrap{
  margin-bottom: 24px;
}
.mylist-header{
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
  margin-bottom: 12px;
}
.mylist-header-title,
.mylist-add-wrap{
  display: flex;
  align-items: center;
}
.mylist-header-icon{
  width: 22px;
  margin-right: 4px;
}
.mylist-header-txt,
.mylist-add-txt{
  line-height: 24px;
}
.mylist-add-icon{
  width: 16px;
  margin-left: 4px;
}
.mylist-bg{
  background-color: #fff;
  border-radius: 5px;
  padding: 0 12px 12px;
}
.mylist-title-wrap{
  display: flex;
  justify-content: space-between;
  padding: 0 42px;
}
.mylist-title-listname,
.mylist-title-count{
  font-size: 14px;
  line-height: 32px;
}
.mylist-list{
  height: 145px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.mylist-list::-webkit-scrollbar{
  display: none;
}
.mylist-item{
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-radius: 5px;
  background-color: #FFF8E3;
}
.mylist-item.is-select{
  background-color: #FFDE72;
}
.mylist-item-icon,
.mylist-item-edit-icon{
  width: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mylist-item-icon img,
.mylist-item-edit-icon img{
  width: auto;
}
.mylist-item-txt{
  width: calc(100% - 24px - 48px - 56px);
  line-height: 24px;
}
.mylist-item-count{
  width: 56px;
  text-align: right;
  line-height: 24px;
}
.mylist-item-count span{
  font-size: 14px;
  margin-left: 2px;
}
.customize-wrap{
  margin-bottom: 24px;
}
.customize-header{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.customize-header-icon{
  width: 24px;
}
.customize-bg{
  background-color: #fff;
  border-radius: 5px;
  padding: 16px 0;
}
.customize-type-wrap,
.customize-pattern-wrap{
  display: flex;
  width: 260px;
  margin: 0 auto 24px;
}
.customize-title{
  width: 80px;
  height: auto;
  border: 1px solid #1E293B;
  border-radius: 5px;
  text-align: center;
  margin-right: 36px;
  line-height: 46px;
}
.toggle-wrap{
  width: 60px;
  text-align: center;
}
.toggle-wrap:not(:last-child){
  margin-right: 24px;
}
.toggle-title{
  font-size: 12px;
  margin-bottom: 4px;
}
.customize-count-wrap{
  display: flex;
  width: 260px;
  margin: 0 auto;
  align-items: center;
}
.input_count{
  width: 60px;
  margin: 0 8px 0 0;
  height: 36px;
  border: 0px;
  background-color: #F5F5F5;
  text-align: right;
}
.customize-count-wrap span{
  height: 14px;
  display: flex;
}
.btn-primary.start{
  margin: 15% auto 0;
}


/* リスト */
.list-inner{
  max-width: 342px;
  margin: 0 auto;
  padding: 0 16px;
}
.list-header{
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.list-header-title,
.list-add-wrap a{
  display: flex;
  gap: 8px;
  align-items: center;
}
.list-bg{
  margin: 12px 0;
  background-color: #fff;
  border-radius: 5px;
  padding: 42px 12px 8px;
  position: relative;
  height: 458px;
}
.list-filter-wrap{
  position: absolute;
  top: 0;
  right: 0;
  overflow: hidden;
}
.list-filter-icon{
  position: absolute;
  top: 12px;
  right: 16px;
  width: 16px;
  height: auto;
}
.list .footer{
  margin: 24px auto;
}
/* スライダー＆ページャー */
.word-viewport {
  overflow: hidden;
}
.word-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.word-page {
  min-width: 100%; /* 1ページ = 横幅100% */
}
.word-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* 1ページ内は縦並び */
  gap: 8px;
}
.word-item a {
  display: flex;
  align-items: center;
  border-radius: 5px;
  background-color: #FFF8E3;
  padding: 10px;
  text-decoration: none;
  color: #333;
}
.word-item-icon {
  margin-right: 8px;
}
.list-pager {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
  margin: 0 auto;
  width: fit-content;
}
.list-dots {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  display: inline-block;
  cursor: pointer;
}
.list-dots.is-active {
  background: #f59e0b;
}

/* フィルター機能 */
.list-filter-bg{
  background-color: #fff;
  padding: 12px;
  position: relative;
  z-index: 10;
  transform: translateY(-220px);
  transition: all 1s;
  border-radius: 5px;
  width: 288px;
}
.list-filter-wrap.is-active .list-filter-bg{
  transform: translateY(0);
}
.list-filter-title{
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.list-filter-txt{
  line-height: 24px;
}
.list-filter-content{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
  border-top: 1px solid #D9D9D9;
}
.list-filter-item{
  display: flex;
  padding-top: 12px;
}
.list-filter-item-txt{
  width: 100px;
  font-size: 14px;
  line-height: 30px;
  margin-right: 20px;
}
.list-filter-content .toggle-wrap{
  display: flex;
  width: auto;
}
.list-filter-content .toggle{
  margin-right: 12px;
}
.toggle-txt{
  line-height: 30px;
  font-size: 14px;
}
.list-filter-modal{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  background-color: #1E293B;
  pointer-events: none;
  transition: all 1s;
  z-index: 5;
}
.list-filter-modal.is-active{
  pointer-events: all;
  opacity: .5;
}

/* 詳細ページ */
.detail-inner{
  margin: 0 auto;
  max-width: 342px;
}
.detail-form-type,
.detail-form-en,
.detail-form-ja{
  margin-bottom: 12px;
}
.detail-form-type label{
  padding-left: 10px;
  font-size: 18px;
  line-height: 24px;
}
.detail-form-type-wrap{
  display: flex;
  align-items: center;
}
.detail-form-type-wrap input{
  margin-right: 24px;
}
.detail-form-ex-wrap{
  position: relative;
}
.detail-form-ai-wrap{
  position: absolute;
  right: 0;
}
.detail-form-ex-en{
  padding: 40px 0 12px;
}
.detail-form-ex-ja{
  margin-bottom: 24px;
}
.form-comp-wrap{
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
  gap: 12px;
}
.form-comp-wrap p{
  font-size: 14px;
  line-height: 24px;
}
.form-comp-checkbox{
  height: 24px;
  width: 24px;
  border: 1px solid #1E293B;
  text-align: center;
  line-height: 20px;
  color: #fff;
  background-color: #fff;
}
.form-comp-checkbox.is-check{
  background-color: #F59E0B;
}
.deitail-form-btn-wrap{
  text-align: center;
  margin-bottom: 32px;
}
.deitail-form-btn-wrap button{
  width: 120px;
  height: 40px;
  color: #fff;
  background-color: #BDBDBD;
  border-radius: 5px;
}
#saveAction{
  margin-left: 60px;
  background-color: #F59E0B;
}
.disable{
  background-color: #BDBDBD;
  color: #6C6C6C;
}
.detail-form-en.error input,
.detail-form-ja.error input,
.detail-form-ex-en.error input,
.detail-form-ex-ja.error input{
  border: 2px solid #FF7043;
}

/* メイン */
.main-inner{
  margin: 0 auto;
  max-width: 342px;
}
.q-count-txt span{
  display: inline-block;
  padding: 0 4px;
  line-height: 22px;
}
.q-bg{
  width: 100%;
  height: 140px;
  border-radius: 5px;
  background-color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.q-txt{
  text-align: center;
  font-size: 18px;
  line-height: 32px;
}
.a-txt{
  text-align: center;
  line-height: 24px;
}
.read-icon-wrap{
  position: absolute;
  bottom: 12px;
  left: 12px;
}
.read-icon-wrap p{
  display: none;
}
.ex-title,
.explanation-title{
  margin: 8px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: bold;
}
.explanation-bg{
  width: 100%;
  height: 80px;
  border-radius: 5px;
  background-color: #fff;
  padding: 10px;
  margin-bottom: 18px;
}
.explanation-txt{
  font-size: 14px;
  line-height: 18px;
  height: 60px;
  overflow: hidden;
}
.main-form .form-comp-wrap{
  margin-bottom: 24px;
}
.main-form-btn-wrap{
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 36px;
}
.prevBtn,
.nextBtn{
  width: 120px;
  height: 40px;
  color: #fff;
  border-radius: 5px;
  font-size: 18px;
}
.prevBtn{
  background-color: #BDBDBD;
  z-index: 80;
}
.nextBtn{
  background-color: #F59E0B;
}
/* モーダル */
.explanation-modal{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #333;
  opacity: 0;
  z-index: 100;
  pointer-events: none;
  transition: all .4s;
}
.explanation-modal.is-active{
  pointer-events: all;
  opacity: 1;
}
.modal-inner{
  margin: 16px auto 0;
  max-width: 342px;
}
.modal-bg{
  background-color: #fff;
  border-radius: 5px;
  width: 100%;
  height: 80dvh;
  margin-top: 36px;
  padding: 16px 20px;
}
.modal-title{
  font-size: 18px;
  font-weight: bold;
  line-height: 28px;
}
.modal-txt{
  line-height: 24px;
  margin-top: 12px;
  height: calc(80vh - 40px - 32px);
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.modal-txt::-webkit-scrollbar{
  display: none;
}
.modal-close-btn{
  width: 120px;
  height: 40px;
  background-color: #F59E0B;
  border-radius: 5px;
  text-align: center;
  line-height: 40px;
  color: #fff;
  margin: 30px auto 48px;
}
.screen-tap-modal{
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: 80%;
  height: 100vh;
}