@charset "utf-8";
:root {
  --curvage-navy: rgb(26, 36, 92);
  --curvage-green: rgb(141, 217, 25);
}
html {
  scrollbar-gutter: stable;
}
html, body {
  touch-action: manipulation;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  color: #333;
  background-color: #F8F9FA;
  font-family: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
#modal-login,
#modal-delete,
#modal-signup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* 半透明の黒 */
  align-items: center; /* 中身を上下中央に */
  justify-content: center; /* 中身を左右中央に */
  z-index: 9999;
  background: rgba(255, 255, 255, 0.2); /* 白の薄い膜にする */
  backdrop-filter: blur(10px); /* これ！iPhoneの背景みたいになります */
  -webkit-backdrop-filter: blur(10px); /* Safari用 */
  display: none;
}
#modal-login {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#modal-login.is-hidden {
  opacity: 0;
  visibility: hidden;
}
#modal-signup {
  display: flex;
}
#login-content,
#signup-content,
#delete-content {
  padding: 40px;
  background: #ffffff; 
  border-radius: 20px; /* 角をもっと丸く */
  width: 380px;
  height: auto; /* 高さを固定せず中身に合わせるのが今風 */
  box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* 影を大きく、薄く */
}
#login-content {
  padding: 120px 40px 40px 40px;
  background-image: url(../images/Curvagelogo.png);
  background-repeat: no-repeat;
  background-position: center top 25px;
  background-size: 200px auto;
}
#signup-content {
  padding: 120px 40px 40px 40px;
  background-image: url(../images/Curvagelogo.png);
  background-repeat: no-repeat;
  background-size: 130px auto;
  background-position: left 40px top 25px;
  position: relative;
}
/* ラベルの文字を小さくして、少しグレーにする */
#modal-login dt label,
#modal-signup dt label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  font-weight: bold;
  color: #475569;
  margin-bottom: 3px;
}

/* 入力欄をモダンに */
#modal-login input[type="text"], #modal-login input[type="password"],
#modal-signup input[type="text"], #modal-signup input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #f0f0f0;
  border-radius: 10px;
  background: #f9f9f9;
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
  margin-bottom: 20px;
}
#modal-login input[type="text"]::placeholder, #modal-login input[type="password"]::placeholder {
  font-size: 14px;
  font-weight: 300
}
#modal-signup input[type="text"]::placeholder, #modal-signup input[type="password"]::placeholder {
  font-size: 12px;
  font-weight: 300;
}
/* クリックした時に青く光らせる */
#modal-login input:focus,
#modal-signup input:focus {
  border-color: #3498db;
  background: #fff;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}
#modal-login input[type="text"].error,
#modal-login input[type="password"].error {
  border-color: #E57373;
}
#log-sub,
#signup-sub {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3498db, #2980b9); /* グラデーション */
  border: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 25px 0 20px;
  min-height: 48px;
  display: flex;
  justify-content: center;
}
#signup-sub {
  margin: 25px 0 40px;
}
#log-sub {
  font-weight: 900;
}
#log-sub #btntxt,
#signup-sub #btntxt {
  background: transparent;
  color: #fff;
}
#log-sub #spinner,
#signup-sub #spinner {
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3);
  border-top: 3px solid #fff;
  background: transparent;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#checkicon {
  background-image: url(../images/checkicon.svg);
  background-repeat: no-repeat;
  height: 24px;
  width: 24px;
  display: none;
  animation: scaleUp 0.3s ease-out forwards;
  background-color: transparent;
}
@keyframes scaleUp {
  0% { transform: scale(0); }
  100% { transform: scale(1.2); }
}
#log-sub:hover,
#signup-sub:hover {
  transform: translateY(-2px); /* 少し浮く */
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}
#login-content a {
  text-decoration: none; /* 下線を消す */
  display: inline-block;
  margin-top: 15px;
}

#login-content a p {
  font-size: 0.9rem;
  color: #3498db;
  transition: color 0.2s;
  background-color: #Fff;
}

#login-content a p:hover {
  color: #21618c;
  text-decoration: underline;
}
#log-status {
  color: #FF6B6B;
}
#modal-signup #SignUpTitle {
  color: #1A245C;
  font-size: 30px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  display: inline;
  position: absolute;
  right: 40px;
  top: 30px;
}
#modal-signup #SignUpTitle::before {
  content: "";
  width: 1px;
  border: var(--curvage-navy) 1px solid;
  height: 40px;
  margin-right: 30px;
}
#modal-signup a {
  text-decoration: none;
  display: inline-block;
}
#modal-signup a p {
  font-size: 0.9rem;
  color: #3498db;
  transition: color 0.2s;
  background-color: #Fff;
}
#modal-signup a p:hover {
  color: #21618c;
  text-decoration: underline;
}
header h1 {
  height: 100px;
  display: flex;
  align-content: center;
  justify-content: center;
}
header {
  margin: 0 auto;
}
header button {
  height: 25px;
  position: absolute;
  right: 50px;
  top: 40px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #1A237E;
  color: #fff;
}
main #apply {
  display: flex;
  gap: 40px;
  justify-content: center;
  background-color: #fff;
}
#addnewword {
  display: none;
}
main #apply input[type="text"] {
  height: 35px;
  width: 205px;
  border-radius: 7px;
  padding: 15px 27px;
  border: #888 1px solid;
  font-size: 16px;
  outline: none;
}
main #apply input[type="text"]::placeholder {
  font-size: 14px;
}
main #apply #add-words {
  background-image: url(../images/penicon.svg);
  background-repeat: no-repeat;
  background-position: left 5px center ;
  background-size: 20px;
  background-color: #fff;
} 
main #apply #add-meanings {
  background-image: url(../images/dictionaryicon.svg);
  background-repeat: no-repeat;
  background-position: left 5px center ;
  background-size: 20px;
  background-color: #fff;
} 
main #apply input[type="text"]:focus {
  box-shadow: inset 0 0 0 1px var(--curvage-green);
  border: var(--curvage-green) 1px solid;
}
body main #applyspace {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: center;
  width: 600px;
  margin: 10px auto;
  padding: 10px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  border: rgba(0, 0, 0, 0.1) 1px solid;
}
main div #register {
  border: none;
  border-radius: 5px;
  background-color: var(--curvage-navy);
  color: #fff;
  height: 35px;
  width: 80px;
  z-index: 10;
}
main #apply div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: #fff;
}
body main #applyspace #example {
  color: #888;
  font-size: 12px;
  background-color: #fff;
  display: inline;
}
main #applyspace > div {
  background-color: white;
}
body main #applyspace #applycancel {
  display: none;
}
body main #applyspace dt,
body main #applyspace label {
  background-color: #fff;
  font-weight: bold;
}
#log-form,
#log-form p,
#log-form dl,
#log-form dl label,
#log-form dl dd,
#log-form dl dd input[type=text],
#log-form dl dd input[type=password],
#signup-form,
#signup-form p,
#signup-form dl,
#signup-form dl label,
#signup-form dl dd,
#signup-form dl dd input[type=text],
#signup-form dl dd input[type=password] {
  background-color: #fff;
}
#log-form #log-status {
  color: #C62828;
  background-color: #FFEBEE;
  display: block;
  margin-top: 7px;
  background-image: url(../images/erroricon.svg);
  background-repeat: no-repeat;
  background-position: left 5px center;
  background-size: 15px 15px;
  padding-left: 25px;
  font-size: 12px;
  line-height: 25px;
}
.filter-content {
  width: 600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
#filter {
  width: 25%;
  text-align: center;
  position: relative;
}
.select-title {
  display: flex;
  align-items: center;
  background-color: var(--curvage-navy);
  border-radius: 12px;
  padding: 4px 8px;
  justify-content: space-between;
  cursor: pointer;
}
.currentvalue {
  color: #FFF;
  background-color: var(--curvage-navy);
  font-size: 14px;
  line-height: calc(24 / 14);
}
.select-title span:first-child {
  color: #FFF;
  background-color: var(--curvage-navy);
  font-size: 12px;
  line-height: 2;
}
.arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  background-color: transparent;
}
.arrow::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 8px;
  height: 2px;
  background: #fff;
  transform: rotate(-45deg);
  transform-origin: right center;
  transition: transform .2s;
}
.arrow::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 4px;
  width: 8px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
  transition: transform .2s;
}
.select-options {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  display: inline-block;
  position: absolute;
  list-style: none;
  border-radius: 8px;
  right: 26px;
  top: 32px;
  font-size: 14px;
  padding: 4px 0;
  border: var(--curvage-navy) 1px solid;
  transition: max-height .4s ease, opacity .3s ease , visivility .3s;
  z-index: 2;
}
div .select-options li {
  padding: 2px 10px;
  background-color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}
div .select-options li:hover {
  background-color: rgba(26, 36, 92, 0.2);
}
#filter.is-open .select-options {
  opacity: 1;
  visibility: visible;
  max-height: 120px;
}
#filter.is-open .select-title span::before {
  transform: rotate(45deg) translateY(3.5px) translateX(3.5px);
  transition: transform .2s;
}
#filter.is-open .select-title span::after {
  transform: rotate(-45deg) translateY(3.5px) translateX(-3.5px);
  transition: transform .2s;
}
#type {
  display: flex;
  gap: 5px;
  width: 25%;
  background-color: var(--curvage-navy);
  border-radius: 16px;
  padding: 2px ;
  align-items: center;
}
input[type="radio"] {
  display: none;
}
input[type="radio"]+label {
  font-size: 12px;
  width: calc(100% / 3);
  text-align: center;
  background-color: transparent;
  color: #fff;
  line-height: 2;
  padding: 2px;
  cursor: pointer;
}
input[type="radio"]:checked+label {
  background-color: #fff;
  color: var(--curvage-navy);
  border-radius: 14px;
}
#total {
  width: 9%;
}
.page {
  display: flex;
  align-items: center;
  gap: 10px;
}
#selectpage {
  display: none;
}
#pc-only {
  border: none;
  outline: none;
  width: 3ch;
  text-align: center;
  font-size: 16px;
  border-bottom: var(--curvage-navy) 1px solid;
}
.filter-content p {
  display: inline;
}
#prev-btn, #next-btn {
  border-radius: 12px;
  background-color: var(--curvage-navy);
  color: #FFF;
  border: none;
  outline: none;
  font-size: 14px;
  cursor: pointer;
}
#prev-btn {
  padding: 2px 8px 4px 20px;
  background-image: url(../images/left.svg);
  background-repeat: no-repeat;
  background-position: left top 1px;
}
#next-btn {
  padding: 2px 20px 4px 8px;
  background-image: url(../images/right.svg);
  background-repeat: no-repeat;
  background-position: right top 1px;
}
.delete-btn {
  width: 24px;
  height: 24px;
  border: none;
  outline: none;
  background-image: url(../images/deleteicon.svg);
  background-size: 22px auto;
  background-position: center center;
  background-color: #fff;
}
table {
  border-collapse: separate;
  width: 600px;
  margin: 0 auto 40px auto;
  text-align: center;
  border-spacing: 0 15px;
  table-layout: fixed;
  font-size: clamp(12px, 1.2vw, 16px);
  white-space: nowrap;
}
table, thead, tbody, tr, th, td {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
thead tr {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}
thead tr th {
  background-color: #E2E5EB;
  line-height: 2.5;
  font-size: 14px;
  font-weight: 800;
}
thead tr th:first-child {
  border-radius: 12px 0 0 12px;
}
thead tr th:last-child {
  border-radius: 0 12px 12px 0;
}
thead tr th button {
  border: none;
  background-color: transparent;
  outline: none;
  width: 100%;
  height: 28px;
  text-align: left;
  padding-left: 12px;
}
thead tr th button .th {
  font-weight: 800;
  background-color: transparent;
  position: relative;
}
thead tr th button .eye {
  display: inline-block;
  height: 1em;
  width: 1em;
  background-image: url(../images/visibility.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  position: absolute;
  right: -20px;
  bottom: 1px;
}
thead tr th button.visibilityoff .eye {
  background-image: url(../images/visibilityoff.svg);
}
tbody tr {
  background-color: transparent;
  width: 600px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(40px);
}
tbody tr.visible {
  opacity: 1;
  transform: translateY(0px);
  transition: opacity, transform .8s;
}
.words span, .meanings span {
  background-color: #fff;
}
.appwords, .appmeanings {
  height: 100%;
  width: 100%;
  padding: 12px;
  text-align: left;
  background-color: transparent;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}
.appwords .hidden, .appmeanings .hidden {
  transform: translateX(0);
  transition: transform 0.4s ease;
  display: inline-block;
  width: 100%;
}
.appwords.hide .hidden, .appmeanings.hide .hidden {
  transform: translateX(calc(100% + 12px));
  transition: none;
}
tr td:first-child {
  border-radius: 12px 0 0 12px;
  border-left: rgba(0, 0, 0, 0.1) 1px solid;
}
tr td:last-child {
  border-radius: 0 12px 12px 0;
  border-right: rgba(0, 0, 0, 0.1) 1px solid;
}
tbody tr td {
  background-color: #fff;
  vertical-align: middle;
  height: 48px;
  border-top: rgba(0, 0, 0, 0.1) 1px solid;
  border-bottom: rgba(0, 0, 0, 0.1) 1px solid;
}
tbody tr .appmeanings .reveal, tbody tr .appwords .reveal {
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background-color: transparent;
  position: absolute;
  transform: translateY(40px);
  transition: transform .4s ease, opacity 0s .4s, visibility 0s .4s;
  z-index: 2;
  color: var(--curvage-navy);
  width: 100%;
  background-image: url(../images/rightnavy.svg);
  background-repeat: no-repeat;
  background-position: left 25px center;
}
tbody.reveal-no-animation tr .appmeanings .reveal, tbody.reveal-no-animation tr .appwords .reveal {
  transition: none;
}
tbody tr .appmeanings.hide .reveal, tbody tr .appwords.hide .reveal {
  visibility: visible;
  transform: translateY(0);
  transition: none;
  opacity: 1;
}
.status {
  color: #fff;
  width: 70px;
  height: 24px;
  border-radius: 12px;
  border: none;
  outline: none;
}
.learning {
  background-color: var(--curvage-green);
}
.weak {
  background-color: #E57373;
}
.learned {
  background-color: var(--curvage-navy);
}
.date {
  font-size: 13px;
}
.delete {
  display: flex;
  justify-content: center;
  align-items: center;
}
#delete-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: rgba(0, 0, 0, 0.1) 1px solid;
}
#delete-content p {
  text-align: center;
  background-color: #FFF;
}
#delete-content p {
  font-size: 12px;
  color: #888;
}
#delete-content p:first-child {
  background-image: url(../images/warning.svg);
  background-repeat: no-repeat;
  background-position: left 30px top 15px;
  background-size: 30px 30px;
  font-size: 20px;
  font-weight: 500;
  padding: 15px 30px 10px 60px;
  display: inline;
  color: #333;
}
#delete-content .btns {
  display: flex; 
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  background-color: #FFF;
}
#del-btn {
  background-color: rgb(229, 115, 115);
  color: #FFf;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  padding: 10px 28px;
  outline: none;
  border: rgb(229, 115, 115) 2px solid;
  font-size: 16px;
  border-radius: 4px;
}
#cancel-btn {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  outline: none;
  border: rgba(0, 0, 0, 0.1) 2px solid;
  font-size: 16px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  #total {
    font-size: 12px;
  }
  #pc {
    display: none;
  }
  #selectpage {
    display: inline-block;
    cursor: pointer;
    font-size: 13px
  }
  #select {
    display: none;
    list-style-type: none;
    z-index: 2;
    position: absolute;
    top: 18px;
    right: 0;
    width: 3ch;
    text-align: center;
    border: none;
    border-radius: 8px;
    padding: 4px 0;
    border: var(--curvage-navy) 1px solid;
  }
  #select li {
    padding: 2px 6px;
    cursor: pointer;
  }
  #select li:hover {
    background-color: rgba(26, 36, 92, 0.2);
  }
  #selectpage.page-open #select {
    display: inline;
  }
  .currentpage {
    position: relative;
  }
  #selected {
    display: inline-block;
    width: 3ch;
    text-align: center;
    border-bottom: var(--curvage-navy) 1px solid;
  }
  #prev-btn {
  background-position: center center;
  display: inline-block;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  }
  #next-btn {
    background-position: center center;
    display: inline-block;
    height: 28px;
    width: 28px;
    border-radius: 50%;
  }
}
@media (max-width: 599px) {
  header button {
    right: 10px;
    top: 10px;
  }
  body main #applyspace, body main .filter-content, body main table {
    width: 98%;
    margin-right: auto;
    margin-left: auto;
  }
  main #apply {
    gap: 20px;
  }
  main #apply dl {
    width: 40%;
  }
  main #apply dd input[type='text'] {
    width: 100%;
  }
  #filter {
    width: 30%;
  }
  #type {
    width: 30%;
  }
  #total {
    width: 10%;
  }
}
@media (max-width:480px) {
  body main #applyspace {
    background-color: var(--curvage-navy);
    width: 40%;
    height: 40px;
    justify-content: center;
    transition: all .4s ease;
    overflow: hidden;
  }
  main #applyspace #addnewword {
    display: block;
    visibility: visible;
    opacity: 1;
    color: white;
    background-color: transparent;
    transition: all 0s ease .3s;
    line-height: 2;
  }
  main #applyspace #apply {
    visibility: hidden;
    max-height: 0;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0s ease .3s;
  }
  body main #applyspace #example {
    display: none;
  }
  main #applyspace > div {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0s ease .3s;
  }
  body main #applyspace.open-apply {
    background-color: white;
    width: 98%;
    height: 200px;
  }
  main #applyspace.open-apply #addnewword {
    visibility: hidden;
    opacity: 0;
    max-width: 0;
    max-height: 0;
  }
  body main #applyspace.open-apply #example {
    display: inline-block;
    width: 40%;
  }
  main #applyspace.open-apply #apply {
    visibility: visible;
    opacity: 1;
    flex-direction: column;
    gap: 5px;
    flex-wrap: wrap;
    max-height: 130px;
    justify-content: flex-end;
    max-width: 100%;
    width: 100%;
    align-content: space-between;
  }
  main #applyspace.open-apply #apply dl {
    height: calc((100% - 5px) / 2);
    width: 80%;
  }
  main #applyspace.open-apply > div {
    display: flex;
    justify-content: space-between;
    background-color: white;
    opacity: 1;
    visibility: visible;
  }
  main #applyspace.open-apply #applycancel {
    display: inline-block;
    width: 60px;
    height: 35px;
    border-radius: 5px;
    outline: none;
    border: var(--curvage-navy) 2px solid;
    margin-top: 10px;
  }
  main #apply input[type="text"]::placeholder {
    font-size: 12px;
  }
  .filter-content {
    flex-wrap: wrap;
    gap: 10px;
    max-height: 70px;
  }
  .select-title {
    flex-direction: row;
  }
  #filter {
    width: 45%;
  }
  #type {
    width: 45%;
  }
  #total {
    width: 15%;
    margin-left:  auto;
    font-size: 16px;
  }
  #selectpage {
    font-size: 16px;
  }
  main div #register {
    width: 60px;
    border: var(--curvage-navy) 2px solid;
  }
  .page {
    margin-right: auto;
  }
  .date {
    display: none;
  }
}