body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f0f4f8;
}

.container {
  max-width: 400px;
  margin: 60px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  color: #2c3e50;
}

.error {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: bold;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

input[type="submit"]:hover {
  background: #218838;
}

.links {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.links--back {
  margin-top: 10px;
}

.legal {
  max-width: 860px;
  margin: 40px auto;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
}

.legal h3 {
  margin-top: 0;
  color: #2c3e50;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.legal td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: top;
}

.legal td:first-child {
  width: 220px;
  background: #f7f7f7;
  font-weight: bold;
}

/* =========================
   shopcart auth UI (new)
   既存 .container 系は残したまま、sc-* を追加
========================= */

.sc-auth{
  padding: 20px;
}

.sc-auth__box{
  max-width: 520px;
  margin: 40px auto;
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.10);
  box-sizing: border-box;
}

.sc-auth__box--wide{
  max-width: 720px;
}

.sc-auth__title{
  text-align: center;
  color: #2c3e50;
  margin: 0 0 16px;
  font-size: 22px;
}

.sc-auth__msg{
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.6;
}

.sc-auth__msg--ok{
  background: #e8f7ee;
  border: 1px solid #bfe8cf;
  color: #156b36;
}

.sc-auth__msg--ng{
  background: #fdecec;
  border: 1px solid #f5b9b9;
  color: #9b1c1c;
}

.sc-form .form-group{
  margin-bottom: 14px;
}

.sc-form label{
  display:block;
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: bold;
}

.sc-form input[type="text"],
.sc-form input[type="email"],
.sc-form input[type="tel"],
.sc-form input[type="password"],
.sc-form select{
  width: 100%;
  padding: 10px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.sc-form select{
  padding: 9px 10px;
}

.sc-form .radio-group{
  display:flex;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}

.sc-form .form-note{
  font-size: 12px;
  color: #666;
  margin: 6px 0 0;
}

.sc-auth__btn{
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.sc-auth__btn:hover{
  background: #218838;
}

.sc-auth__btn--sub{
  background: #ccc;
  color: #333;
}

.sc-auth__btn--sub:hover{
  background: #aaa;
}

.sc-auth__links{
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
}

.sc-auth__links a{
  color: #2c3e50;
  text-decoration: underline;
}

.form-actions{
  display:flex;
  gap: 10px;
  margin-top: 18px;
}

.form-actions .sc-auth__btn{
  width: auto;
  flex: 1 1 0;
}

/* ===== ここから追記：addmember2.tpl（sc-auth系）対応 ===== */

.sc-auth{
  padding: 28px 16px;
}

.sc-auth__box{
  max-width: 760px;
  margin: 40px auto;
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.sc-auth__box--wide{ max-width: 860px; }

.sc-auth__title{
  margin: 0 0 18px;
  text-align: left;
  font-size: 28px;
  color: #2c3e50;
}

.sc-auth__msg{
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  line-height: 1.6;
}

.sc-auth__msg--ng{
  background: #fff0f0;
  border: 1px solid #f2b6b6;
  color: #b40000;
}

.sc-auth__msg--ok{
  background: #eefaf1;
  border: 1px solid #bde7c6;
  color: #0f6b2e;
}

.sc-form .form-group{
  margin-bottom: 14px;
}

.sc-form label{
  display:block;
  font-weight: 700;
  margin-bottom: 6px;
}

.sc-note{
  font-weight: 400;
  color: #666;
  font-size: 12px;
}

.sc-form input[type="text"],
.sc-form input[type="email"],
.sc-form input[type="tel"],
.sc-form input[type="password"],
.sc-form select{
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
}

.form-note{
  margin: 6px 0 0;
  font-size: 12px;
  color: #666;
}

.form-note--ng{
  color: #b40000;
}

.radio-group{
  display:flex;
  gap: 18px;
  align-items: center;
}

.sc-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.sc-grid--addr{
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 720px){
  .sc-grid, .sc-grid--addr{ grid-template-columns: 1fr; }
  .sc-auth__box{ padding: 20px; margin: 18px auto; }
}

.form-actions{
  display:flex;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 18px;
}

.sc-auth__btn{
  background-color: #0078D4;
  color: #fff;
  padding: 10px 18px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.sc-auth__btn:hover{
  background-color: #005fa3;
}

.sc-auth__btn--sub{
  background: #e0e0e0;
  color:#333;
}

.sc-auth__btn--sub:hover{
  background:#bdbdbd;
}

.sc-auth__link{
  display:inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0078D4;
}

/* ===== 追記ここまで ===== */
