body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:#f5f7fa;
  color:#333;
}

.wrap{
  width:360px;
  margin:60px auto;
  padding:30px;
  background:#fff;
  border-radius:8px;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
}

h3,h4{margin:0 0 15px;font-weight:600;}
h3{font-size:22px;text-align:center;}
h4{font-size:18px;margin-top:25px;}

p{
  color:#d33;
  font-size:14px;
  margin-bottom:15px;
}

form{margin-bottom:25px;}

input,select,button{
  width:100%;
  box-sizing:border-box;
  margin:8px 0;
  padding:10px 12px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:15px;
}

input:focus,select:focus{
  border-color:#3a7afe;
  outline:none;
  box-shadow:0 0 0 2px rgba(58,122,254,0.2);
}

button{
  background:#3a7afe;
  color:#fff;
  border:none;
  cursor:pointer;
  padding:12px;
  font-size:15px;
  border-radius:6px;
  font-weight:600;
  transition:0.15s;
}

button:hover{
  background:#2f6af0;
}

#cropwrap{
  border:1px solid #ddd;
  border-radius:6px;
  padding:6px;
  background:#fafafa;
  overflow:hidden;          /* はみ出し防止 */
  max-height:300px;         /* 画像無限伸長の防止 */
}

#cropimg{
  width:100%;               /* 幅基準で安定 */
  height:auto;              /* 高さは自動 */
  display:block;
  border-radius:6px;
}

/* ===========================
   スマホ対応（レスポンシブ）
   =========================== */
@media (max-width:480px){
  .wrap{
    width:100%;
    margin:20px auto;
    padding:20px 16px;
    border-radius:0;        /* 端末に馴染むようにフラット化 */
    box-shadow:none;        /* スマホでは影を弱める */
  }

  h3{font-size:20px;}
  h4{font-size:16px;}

  input,select,button{
    font-size:14px;
    padding:10px;
  }

  button{
    padding:11px;
  }

  p{
    font-size:13px;
  }
}
