body {
  margin: 0;
  background: linear-gradient(180deg, #e6ecee, #edf9ff);
  min-height: 100vh;
  font-family: 'Meiryo';
}

.title {
  margin-left: 140px;
  margin-right: 140px;
  width: auto;
  height: 100px;
  background: linear-gradient(180deg, #fff, #99e9ff);
  font-size: 30px;
  text-align: center;
}

.layout {
  display: flex;
  align-items: flex-start;
}

.main {
  width: 720px;
  min-height: 900px;
  padding: 40px;
  padding-bottom: 90px;
  background: #fff;
  margin-left: 140px;
  margin-right: 40px;
  margin-bottom: 140px;
  margin-top: 40px;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
  position: relative;
}

.main p, .main h1, .main h2, .main h3, .main h4, .main h5, .main label, .main a {
  margin-bottom: 64px;
}

.main a {
  color: dodgerblue;
  transition: color 0.25s;
}

.main a:hover {
  color: crimson;
  transition: color 0.25s;
}

.sidebar a {
  color: dodgerblue;
  transition: color 0.25s;
}

.sidebar a:hover {
  color: crimson;
  transition: color 0.25s;
}

.sidebar {
  width: 320px;
  min-height: 900px;
  padding: 40px;
  padding-bottom: 90px;
  background: #fff;
  margin-right: 140px;
  margin-bottom: 140px;
  margin-top: 40px;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
}


h6 {
  text-align: center;
  font-size: 15px;
}

.credit {
  max-height: 200px;
  overflow-y: auto;
  padding: 20px;
  background: #f0f0f0;
}

#downloadBtn {
  width: 150px;
  height: 60px;
  background: #fff;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid #ccc;
  transition: 0.2s;
}

#downloadBtn.enabled {
  background: rgb(194, 214, 221);
  border-radius: 12px;
  transition: 0.2s;
}

#downloadBtn.enabled:hover {
  border-color: #888;
  transition: 0.2s;
}

#downloadBtn.enabled:focus {
  background: lightblue;
  border-color: #4a90e2;
  transition: 0.2s;
}

.ireadcredit {
  opacity: 0.5;
  pointer-events: none;
  transition: 0.2s;
}

.ireadcredit.enabled {
  opacity: 1;
  pointer-events: auto;
  transition: 0.2s;
}

.ireadcredit input[type="checkbox"] {
  transform: scale(1.6);
}

#searchBox {
  width: 150px;
  height: 50px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

#searchBox:hover {
  background: #ffffff;
  border-radius: 12px;
  border-color: #888;
  transition: 0.2s;
}

#searchBox:focus {
  background: #ffffff;
  border-radius: 12px;
  border-color: #4a90e2;
  transition: 0.2s;
}

#sidebarSort {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 10px;
}

#sidebarSort:hover {
  border-color: #888;
  border-radius: 8px;
}

#sidebarSort:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
  outline: none;
}

#sortSelect {
  width: 190px;
  padding: 8px 10px;
  font-size: 14px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
  margin-bottom: 10px;
}

#sortSelect:hover {
  border-color: #888;
  border-radius: 8px;
}

#sortSelect:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
  outline: none;
}

#commentList {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment {
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #555;
  margin-bottom: 6px;
}

.comment-name {
  font-weight: bold;
}

.comment-text {
  font-size: 15px;
  line-height: 1.5;
  margin-right: 10px;
  margin-left: 10px;
}

.comment-delete {
  color: #c00;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

.comment-edit {
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

.cmtpost-name {
  width: 250px;
  height: 50px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.cmtpost-name:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.cmtpost-name:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.cmtpost-msg {
  width: 250px;
  height: 50px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.cmtpost-msg:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.cmtpost-msg:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.cmtpost-send {
  width: 100px;
  height: 30px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.cmtpost-send:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.cmtpost-send:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.header {
  position: relative;
  margin-left: 140px;
  margin-right: 140px;
  margin-top: 40px;
  width: auto;
  height: 55px;
  padding: 8px 12px;
  background: #99e9ff;
  color: #000;
  border-radius: 4px;
}

.login {
  margin-left: 20px;
  display: inline-block;
  padding: 8px 12px;
  background: #99e9ff;
  color: #000;
  font-size: 20px;
  cursor: pointer;
}

.register {
  margin-left: 20px;
  display: inline-block;
  padding: 8px 12px;
  background: #99e9ff;
  color: #000;
  font-size: 20px;
  cursor: pointer;
}

.loginbox {
  width: 200px;
  height: 255px;
  position: absolute;
  top: 40px;
  left: 0;
  background: #4a90e2;
  display: none;
  opacity: 1;
  z-index: 999;
  border-radius: 8px;
  transition: opacity 0.2s;
}

.loginbox {
  width: 200px;
  height: 255px;
  background: #4a90e2;
  border-radius: 8px;
  z-index: 999;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.2s;
}

.loginarea {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.userarea {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loginbox.show {
  opacity: 1;
  pointer-events: auto;
}

.loginuser {
  width: 150px;
  height: 20px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.loginuser:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.loginuser:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.loginpass {
  width: 150px;
  height: 20px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.loginpass:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.loginpass:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.loginbtn {
  width: 100px;
  height: 30px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.loginbtn:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.loginbtn:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}


.logoutbtn {
  width: 150px;
  height: 30px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.logoutbtn:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.logoutbtn:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.username {
  width: 100px;
  height: 40px;
  background: #ffffff;
  color: #000;
  font-size: 25px;
  text-align: center;
  align-items: center;
}

.reg-main {
  width: auto;
  min-height: 900px;
  padding: 40px;
  padding-bottom: 90px;
  background: #fff;
  margin-left: 140px;
  margin-right: 140px;
  margin-bottom: 140px;
  margin-top: 40px;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
}

.reg-name {
  width: 250px;
  height: 40px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.reg-name:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.reg-name:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.reg-pass {
  width: 250px;
  height: 40px;
  background: #ffffff;
  font-size: 20px;
  text-align: center;
  margin-top: 30px;
  border: 2px solid #ccc;
  outline: none;
  border-radius: 10px;
  transition: 0.2s;
}

.reg-pass:hover {
  border-color: #888;
  border-radius: 15px;
  transition: 0.2s;
}

.reg-pass:focus {
  border-color: #4a90e2;
  border-radius: 15px;
  transition: 0.2s;
}

.reg-agrch {
  transform: scale(1.6);
}

.regbtn {
  width: 150px;
  height: 60px;
  background: #fff;
  font-size: 20px;
  text-align: center;
  border-radius: 10px;
  border: 2px solid #ccc;
  transition: 0.2s;
}

.regbtn:hover {
  border-color: #888;
  transition: 0.2s;
}

.regbtn:focus {
  background: lightblue;
  border-color: #4a90e2;
  transition: 0.2s;
}

.bookmark-btn {
  font-size: 50px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  user-select: none;
  color: #ccc;
  transition: color 0.05s;
  z-index: 1000;
}

.bookmark-btn.active {
  color: gold;
}