@charset "utf-8";
/* CSS Document */



*{ box-sizing: border-box ; }
body {
  font-family: sans-serif;
  padding: 1rem;
  background-color: #f9f9f9;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

input[type="file"] {
  display: block;
  margin: 0 auto 1rem auto;
  font-size: 1rem;
}
#previewWrapper {
  max-height: 70vh;
  overflow: hidden;
}
#previewWrapper img {
  /*object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 6px;*/
}

button {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  font-size: 1.1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

.cropper-container.cropper-bg,
.cropper-wrap-box,
.cropper-crop-box,
.cropper-view-box{
  max-width: 100%;
}

.cropper-drag-box.cropper-crop.cropper-modal{
 height:auto;
}


/*ガイド部分*/
.guide-box {
  background-color: #eaf6ff;
  border-left: 6px solid #3399ff;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.guide-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #007bff;
}

.guide-box ol {
  margin: 0.5rem 0 1rem 1.2rem;
  padding-left: 1rem;
}

.guide-box ol li {
  margin-bottom: 0.5rem;
}

.guide-box .hint {
  font-size: 0.95rem;
  color: #333;
  background: #fff8e1;
  padding: 0.8rem;
  border-radius: 4px;
  border: 1px solid #ffe082;
}

.guide-box .txt p{
	font-size: 14px;
	
}
.txt ul{}
.txt ul li{
  text-align: left;
  margin-right: 1em;
}

    @media screen and (max-width: 768px) {
      .container {
        padding: 1rem;
        width: 100%;
      }

      h2 {
        font-size: 1.2rem;
      }
      
     img {
        max-height: 45vh;  /* スマホで余白が目立たない程度に */
      }

    }




/* ここから、パスワード生成　*/
.password_tool{
  max-width: 800px;
  margin: 30px auto;
  padding: 30px 20px;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  text-align: center;
}

.result_box{
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  position: relative;
}

.result_box input{
  flex: 1;
  padding: 14px;
  border: 2px solid #2d7ff9;
  border-radius: 8px;
  font-size: 22px;
  font-weight: bold;
}


.btn_generate{
  padding: 12px 24px;
  border: none;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #2d7ff9;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}


.setting_list{
    background: #FFF;
  padding: 15px;
} 
.setting_list dl{
  text-align: left;
  display: grid;
  gap:20px;
  grid-template-columns: 20% 1fr;
  align-items: center;
  align-content: center;
  border-bottom: 1px solid #DDD;
}

.setting_list dt,
.setting_list dd{
  padding: 10px;
  }
    
.setting_list dt{
  font-weight: bold;
  
}

.setting_list dd{}

.setting_list label{
  display: inline-block;
  margin: 0 0 0 0;
}

.copy_popup{
  position: fixed;
  left: 50%;
  top: 30%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.copy_popup.show{
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px){
  .result_box{
    display: block;
  }

  .result_box input{
    width: 100%;
    box-sizing: border-box;
    font-size: 18px;
  }

  .result_box button{
    margin-top: 10px;
    width: 100%;
  }
}

.bulk_box{
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #dbe3ea;
  text-align: left;
}

.bulk_box h3{
  margin: 0 0 15px;
  font-size: 20px;
}

.bulk_buttons{
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 10px;
  margin-bottom: 15px;
}
  
  

.btn_bulk,
.btn_copy_bulk{
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  background: #2d7ff9;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
}

#bulkPasswordResult{
  width: 100%;
  min-height: 40em;
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
  font-family: monospace;
  resize: vertical;
}
#passwordResult,
#bulkPasswordResult{
    cursor:pointer;
}  

.btn_copy_bulk{
  margin-top: 12px;
}

@media (max-width: 767px){
  .bulk_buttons{
    display: block;
  }

  .btn_bulk{
    width: 100%;
    margin-bottom: 8px;
  }

  .btn_copy_bulk{
    width: 100%;
  }
}  
  
.btn_icon_copy{
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #2d7ff9;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn_icon_copy:hover{
  opacity: .85;
}

.btn_icon_copy2{
  display: inline-block;
  width: auto;
  padding: 0.7em 1em;
  border: none;
  border-radius: 8px;
  background: #333;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
 /* display: flex;
  align-items: center;
  justify-content: center;*/
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}

.btn_icon_copy2:hover{
  opacity: .85;
}
  .btn_icon_copy3{
    right: 20px;
  }

  
.select_cm{
  min-width: 120px;
  padding: 10px 42px 10px 14px;

  font-size: 16px;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #cfd8e3;
  border-radius: 6px;

  cursor: pointer;
  transition: .2s;
}

.select_cm:hover{
  border-color: #2d7ff9;
}

.select_cm:focus{
  outline: none;
  border-color: #2d7ff9;
  box-shadow: 0 0 0 3px rgba(45,127,249,.15);
}
  
