body {
  background-color: #fffff5;
}

p {
  font-size: 1.2rem;
  line-height: 1.2;
  color: #333300;
  margin-bottom: 0;
}

.logo {
  width: 20.0rem;
  margin: 0;
}

img.thumbnail {
  width: 100%;
  margin: 0;
  object-fit: contain;
}

.linkpage_top_part {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.twitter_box {
  display: flex;
  align-items: center;
}
.twitter_icon {
  width: 3.2rem;
  height:3.2rem;
  border-radius:50%;
  vertical-align:middle;
  margin:0 5px 0 0;
}
.twitter_name_box {
  line-height: 1.0;
}
.twitter_name {
  font-size: 1.0rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  display: inline-block;
  vertical-align: middle;
}

a.logout_link {
  font-size: 1.0rem;
  color: #333333;
  text-decoration: underline #777777;
}

a.login_btn {
  font-size: 1.4rem;
  width: 9.0rem;
  height: 3.2rem;
  margin: auto 0;
  color: #00acee!important;
  border: solid 1px #00acee;
  border-radius: 0.5rem;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}
.login_btn_img {
  width: 2.0rem;
  height: 2.0rem;
  margin: 0;
}

/*----------謎解き----------*/
ul.nazo_box {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
li.nazo {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 360px;
  margin: 0.5rem;
  padding: 0.3rem;
  box-sizing: border-box;
  background-color: #ffffe3;
  border: 1.5px solid #eebb00;
  overflow: hidden;
}
.nazo_info {
  width: 100%;
}

.nazo form {
  width: 100%;
  display: flex;
  align-items: center;
}
.nazo form .nazo_info_box {
  width: 70%;
  font-size: 1.0rem;
  padding: 0.5rem;
}
.nazo_bun_box {
  margin-top: 0.2rem; 
}
.nazo_bun_box .input-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 4px;
}
.nazo_bun_box .input-row label {
  white-space: nowrap;
  flex-shrink: 0;
}
.nazo_bun_box .input-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: #f3f3f3;
}
.nazo.is-empty {
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
  background-color: transparent;
  border: none;
}
.nazo_gazo_box {
  width: 30%;
  max-width: 120px;
  aspect-ratio: 1/1;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nazo_gazo_box .nazo_thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.nazo_gazo_link {
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.nazo:hover {background-color: #ffffd6;}
.nazo.sp {background-color: #eeffee; border: 1.5px solid #66aa33;}
.nazo.sp:hover {background-color: #ddffdd;}
.nazo.sp p {color: #004400;}
.nazo.pc {background-color: #e6f9ff; border: 1.5px solid #33aadd;}
.nazo.pc:hover {background-color: #e3f3ff;}
.nazo.pc p {color: #000044;}
.nazo.na { background-color: #eeeeee ; border: 1.5px solid #999999;}
.nazo.na:hover {background-color: #e6e6e6;}
.nazo.na p {color: #333333}

.nazo_link_box {
  width: 100%;
}
.nazo_link_box a {
  width: 80%;
  height: auto;
  display: block;
  margin: 1.0rem auto;
  padding: 0.5rem;
  color: #ffffff;
  background-color: #333300;
  text-decoration: none;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50vh;
}
li.nazo.sp .nazo_link_box a {
  background-color: #004400;
}
li.nazo.pc .nazo_link_box a {
  background-color: #000044;
}
.nazo_info_box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 0.75rem;
}
.nazo_title {
  font-weight: bold;
  font-size: 1.6rem;
  word-break: break-all;
}
.nazo_title.long {
  font-size: 1.4rem;
}
.nazo_id_reg {
  display: flex;
  justify-content: space-between;
}
.nazo_id {
  font-size: 1.0rem;
  color: #999999;
}
.nazo_reg {
  display: flex;
  justify-content: right;
  position: relative;
}
.reg_level,
.reg_check,
.reg_heart,
.approval_state,
.nonapproval_state,
.unregistered_state {
  width: 4.8rem;
  margin: 1px 2px;
  padding: 3px 2px;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  background-color: inherit;
  border: 1px solid #999999;
  color: #999999;
  line-height: 1.0;
  padding-left: 1.6rem;
  background-size: 1.2rem 1.2rem;
  background-repeat: no-repeat;
  background-position: 0.2rem;
  text-align: end;
  position: relative;
}
.reg_level {
  background-image: url(/link/mutual/img/lv0.png);
}
.reg_level.v1 {
  background-image: url(/link/mutual/img/lv1.png);
  border: 1px solid #009900;
  color: #009900;
  background-color: #f6fff6;
}
.reg_level.v2 {
  background-image: url(/link/mutual/img/lv2.png);
  border: 1px solid #668800;
  color: #668800;
  background-color: #fcfff3;
}
.reg_level.v3 {
  background-image: url(/link/mutual/img/lv3.png);
  border: 1px solid #996600;
  color: #996600;
  background-color: #fffcee;
}
.reg_level.v4 {
  background-image: url(/link/mutual/img/lv4.png);
  border: 1px solid #cc5500;
  color: #cc5500;
  background-color: #fff9f6;
}
.reg_level.v5 {
  background-image: url(/link/mutual/img/lv5.png);
  border: 1px solid #cc0000;
  color: #cc0000;
  background-color: #fff3f3;
}
.reg_check {
  background-image: url(/link/mutual/img/check0.png);
}
.reg_check.v1 {
  background-image: url(/link/mutual/img/check1.png);
  background-color: #f3ffd6;
  border: 1px solid #007700;
  color: #007700;
}
.reg_check.v2 {
  background-image: url(/link/mutual/img/check2.png);
  background-color: #f3ffff;
  border: 1px solid #0084a4;
  color: #0084a4;
}
.reg_check.v3 {
  background-image: url(/link/mutual/img/check3.png);
  background-color: #fffff3;
  border: 1px solid #666600;
  color: #666600;
}
.reg_check.v4 {
  background-image: url(/link/mutual/img/check4.png);
  background-color: #fff6f6;
  border: 1px solid #cc0000;
  color: #cc0000;
}
.reg_check.v5 {
  background-image: url(/link/mutual/img/check5.png);
  background-color: #f9f3ff;
  border: 1px solid #bb55ff;
  color: #bb55ff;
}
.reg_heart {
  background-image: url(/link/mutual/img/heart0.png);
}
.reg_heart.v1 {
  background-image: url(/link/mutual/img/heart1.png);
  background-color: #fffcfc;
  border: 1px solid #ff6666;
  color: #ff6666;
}
.reg_heart.v2 {
  background-image: url(/link/mutual/img/heart2.png);
  background-color: #fff3f3;
  border: 1px solid #ff6666;
  color: #ff6666;
}
.reg_heart.v3 {
  background-image: url(/link/mutual/img/heart3.png);
  background-color: #f9f9ff;
  border: 1px solid #6666ff;
  color: #6666ff;
}
.edit_btn,
.approval_btn {
  padding-left: 2px;
  text-align: center;
}

.level_select_pulldown {
  width: 5.0rem;
  position: absolute;
  top: 2.4rem;
  left: 0;
}
.level_select_pulldown ul li {
  height: 2.0rem;
  background-color: #ffffff;
  border: solid 0.1rem #cccccc;
  background-size: 1.2rem 1.2rem;
  background-repeat: no-repeat;
}
.level_select_pulldown ul li#lv0 {background-image: url(/link/mutual/img/lv0.png)}
.level_select_pulldown ul li#lv1 {background-image: url(/link/mutual/img/lv1.png)}
.level_select_pulldown ul li#lv2 {background-image: url(/link/mutual/img/lv2.png)}
.level_select_pulldown ul li#lv3 {background-image: url(/link/mutual/img/lv3.png)}
.level_select_pulldown ul li#lv4 {background-image: url(/link/mutual/img/lv4.png)}
.level_select_pulldown ul li#lv5 {background-image: url(/link/mutual/img/lv5.png)}

.reg_check img,
.reg_heart img {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.2rem;
}
.nazo_tags {
  margin: 0.2rem 0;
}
.nazo_tags .tag {
  white-space: nowrap;
  line-height: 1.8;
  margin: 0 1px;
  padding: 1px 3px;
  border-radius: 0.5rem;
  background-color: inherit;
  border: 1px solid #666666;
  color: #666666;
  text-decoration: none;
}
.nazo_tags a.tag {
  cursor: pointer;
}
.nazo_tags .tag.author {
  border: 1px solid #006699;
  color: #006699;
}
.nazo_tags .tag.device {
  border: 1px solid #558800;
  color: #558800;
}
.nazo_tags .tag.distribute {
  border: 1px solid #994477;
  color: #995577;
}
.nazo_tags .tag.link {
  border: 1px solid #666600;
  color: #666600;
}
.rating_container {
  position: relative;
  display: inline-block;
}
.rating_container select {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.rating_container:not(.disabled) select {
  cursor: pointer;
}

/* filterbox */
.filter_box {
  width: calc(100% - 1.0rem);
  max-width: 360px;
  margin: 0.5rem auto;
  padding: 0.5rem;
  font-size: 1.2rem;
  background-color: #ffffff;
  border: solid 1px #666666;
  cursor: pointer;
}
.filter_btn_box label {
  display: block;
  width: auto;
  height: 2.4rem;
  margin: 0.2rem;
  position: relative;
  cursor: pointer;
}
.filter_btn_box label.reg_level:has(input:checked) {
  border: 1px solid #1155aa;
  color: #1155aa;
  background-color: #f3f9ff;
}
.filter_btn_box input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  top:0;
  left:0;
  cursor: pointer;
}
.filter_btn_box label span {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 1.0rem;
  line-height: 1.6;
  pointer-events: none;
}
.filter_btn_box label.reg_check.v0:has(input:checked),
.filter_btn_box label.reg_level.v0:has(input:checked),
.filter_btn_box label.reg_heart.v0:has(input:checked) {
  background-color: #ffffff;
  border: solid 1px #333333;
  color: #333333;
}
.filter_btn_box label:has(input:not(:checked)) {
  background-color: inherit;
  border: 1px solid #999999;
  color: #999999;
  filter: grayscale(100%);
}

.filter_box img {
  width: 1.2rem;
  margin: 0.1rem;
}
.filter_modal {
  width: 95%;
  max-width: 540px;
  padding: 0.8rem;
  background-color: #fffff5;
  border: solid 1px #666666;
  border-radius: 0.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  z-index: 5;
}
.filter_modal p {
  font-size: 1.6rem;
  color: #333333;
}
.filter_btn_box {
  display: flex;
  flex-wrap: wrap;
}
.filter_btn {
  line-height: 1.0;
  margin: 3px;
  padding: 3px;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  border: solid 1px #666666;
  color: #333333;
  background-color: #eeeeee;
  cursor: pointer;
}
.filter_btn.selected {
  background-color: #ecffec;
  border: 1px solid #66aa33;
}
.filter_btn img {
  width: 1.6rem;
  margin: 0.2rem;
}
.sort_btn {
  color: #333333;
  cursor: pointer;
  padding: 0.3rem;
}
.filter_enter_btn {
  width: 60%;
  max-width: 200px;
  margin: 2.0rem auto 1.0rem;
  line-height: 1.6;
  background-color: #e6f9ff;
  border: solid 0.2rem #33aadd;
  border-radius: 1.0rem;
  text-align: center;
  font-size: 2.0rem;
  cursor: pointer;
}
@media screen and (max-width: 640px) {/* 640px以下*/
  .filter_box {
  width: calc(100% - 1.0rem);
  }
}
.modal_overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center;
  z-index: 9999;
}
.modal_content {
  background: white; padding: 20px; border-radius: 10px; width: 90%; max-width: 500px;
}
.modal_details { margin-top: 10px; font-size: 14px; white-space: pre-wrap; }
.modal_buttons { margin-top: 20px; text-align: right; }
.modal_buttons button { margin-left: 10px; }
.modal_close_btn {
  position: absolute;
  top: 0;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 3.6rem;
  font-weight: bold;
  color: #999999;
  z-index: 10;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.filter_section {
  margin: 0.8rem 0;
}
.filter_section p {
  font-size: 1.2rem;
  font-weight: bold;
}
.modal_tag_input {
  font-size: 1.4rem;
}
.modal_tag_input::placeholder {
  font-size: 1.2rem;
  color: #999999;
}
select.modal_sort_select {
  min-width: 150px;
  height: 2.4rem;
  padding: 0.2rem;
  border: 1px solid #999999;
  background-color: #fff;
  color: #333333;
  font-size: 1.2rem;
  cursor: pointer;
}
button.modal_btn {
  height: 2.4rem;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0 2.0rem;
  margin-left: 0.6rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #333300;
  color: #ffffff;
  cursor: pointer;
}
button.modal_clear_btn {
  font-size: 0.8rem;
  padding: 0 0.5rem;
  background-color: #ffffff;
  color: #333300;
  border: solid 1px #333300;
}


/* ページャー */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.0rem 0;
  flex-wrap: wrap;
}
.pager a,
.pager span:not(.ellipsis) {
  margin: 0 0.2rem;
  padding: 0.5rem;
  min-width: 2.4rem;
  font-size: 1.4rem;
  border:1px solid #999999;
  border-radius: 0.4rem;
  text-align: center;
  text-decoration:none;
  color:#333300;
  background:#ffffff;
}
.pager span.current {
  background:#333300;
  color:#ffffff;
  border-color:#333300;
}
.pager .disabled {
  opacity:.4;
  border-style:dashed;
}


/* タブ切り替え */
.tab_wrap {
  width: 100%;
}
.tab_label {
  display: inline-block;
  margin: 1.0rem 0;
  padding: 0.3rem 1.2rem;
  color: #666666;
  background: #ffffff;
  border: dotted 1px #666666;
  order: -1;
  cursor: pointer;
}
.tab_switch {
  display: none;
}
#approval_tab:checked ~ .tab_switch_box label[for="approval_tab"],
#entry_tab:checked ~ .tab_switch_box label[for="entry_tab"],
#edit_tab:checked ~ .tab_switch_box label[for="edit_tab"] {
  color: #660000;
  background: #ffddee;
  border: solid 1px #660000;
}

/* 編集画面 */
.form_table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.form_table td:nth-child(1) {
  width: 7.5rem;
}
.form_table input[type="text"] {
  width: 100%;
  margin: 0.2rem auto;
  line-height: 2.0;
}
.form_table input[type="text"]#input_nazo_hashtag {
  width: calc(100% - 10px);
}
.form_table input[type="textarea"] {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  margin: 0.2rem auto;
  line-height: 2.0;
}
.form_table input[type="text"]::placeholder {
  color: #999999;
}
.form_table input[type="radio"] {
  display: none;
}
.form_table input[type="radio"]+label {
  display: inline-block;
  min-width: 5.0rem;
  margin: 0 0.3rem 0 0;
  line-height: 2.0;
  padding: 0.1rem 0.8rem;
  font-size: 1.4rem;
  border: dotted 1px #cccccc;
  background-color: #ffffff;
  color: #666666;
  text-align: center;
  cursor: pointer;
  border-radius: 0.5rem;
}
.form_table input[type="radio"]:checked+label {
  background-color: #ffffcc;
  font-weight: bold;
  color: #999933; 
  border: solid 1px #999933;
}
.form_table input[type="radio"]:hover+label {
  background-color: #ffffee;
}
@media screen and (min-width: 640px) {
  .form_table #input_nazo_created_at {
    font-size: 1.8rem;
    line-height: 1.6;
  }
}
.form_send_btn {
  display: block;
  width: 16.0rem;
  margin: 2.0rem auto;
  padding: 0.5rem 2rem;
  color: #ffffff;
  background-color: #00b500;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  border-radius: 50vh;
  cursor: pointer;
}
.form_send_btn:active {
  margin: 2.8rem auto 2.5rem;
}

label.q_label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
label.q_label::after {
  width: 2.8rem;
  height: 1.6rem;
  text-align: center;
  color: #ffffff;
  font-size: 1.0rem;
  display: block;
}
.admin_form_box label.q_label::after {
  width: 2.4rem;
  height: 1.4rem;
  font-size: 1.0rem;
}
label.q_label.require::after {
  background: #cc0033;
  content: "必須";
}
label.q_label.ok::after {
  background: #0033cc;
  content: "OK";
}
label.q_label.optional::after {
  background: #555555;
  content: "任意";
}
.form_table .error-message {
  color: #990000;
  font-size: 1.0rem;
}


/* 管理画面 */
.select_state_checkbox label {
  font-size: 1.6rem;
  margin: 0 0.5rem 0 0;
  cursor: pointer;
}
.select_state_checkbox input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 0.25rem;
  cursor: pointer;
}

ul.nazo_approval_ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
ul.nazo_approval_ul .nazo_tags span.tag {
  cursor: default;
}

.approval_state,
.nonapproval_state,
.unregistered_state {
  padding-left: 2px;
  text-align: center;
  cursor: default;
}
.approval_state {
  background-color: #f3fff3;
  border: 1px solid #009900;
  color: #009900;
}
.nonapproval_state {
  background-color: #fff3f3;
  border: 1px solid #990000;
  color: #990000;
}
.unregistered_state {
  background: #f6f6f6;
  border: 1px solid #666666;
  color: #666666;
}
details.state_change {
  margin-top: 0.25rem;
}
details.state_change summary {
  font-size: 1.2rem;
  cursor: pointer;
}
details.state_change .st_box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.st_btn {
  display: block;
  width: 6.0rem;
  margin: 0 0.5rem 0.25rem;
  padding: 0.25rem;
  color: #f3fff3;
  background-color: #009900;
  border: solid 1px #009900;
  font-size: 1.4rem;
  line-height: 1.5;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: bold;
  cursor: pointer;
}
.st_btn:active {
  margin: 0.25rem 0.5rem 0;
}
.st_approval_btn {
  width: 8.0rem;
}
.st_edit_btn {
  color: #f3f3ff;
  background-color: #000099;
  border: solid 1px #000099;
}
.st_nonapproval_btn {
  color: #fff3f3;
  background-color: #990000;
  border: solid 1px #990000;
}
.nazo_display_status {
  color: #ffffff;
  padding: 0 0.5rem;
  
}
.nazo_display_status.ok {
  color: #ffffff;
  background-color: #009900;
}
.nazo_display_status.ng {
  background-color: #990000;
}
.nazo_display_status.nan {
  background-color: #333333;
}

/* ページトップボタン */
#page_top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  background-color: rgba(120,120,0,0.6);
  border-radius: 50%;
}
#page_top a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '↑';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -5px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
@media screen and (max-width: 640px) {/* 640px以下*/
  #page_top a::before{
    top: -15px;
  }
}
#page_top:hover {
  text-decoration: none;
  opacity: 0.7;
}
