.mag-wrap {
  width: 580px; 
  margin-left: 1em;
}
.mag-wrap h3 {
  margin-bottom: 1em;
}
.mag-desc {
  margin-top: 2em;
  margin-bottom: 4em;
}
.mag-desc > p {
  margin-bottom: 2em;
}
.mag-desc > table {
  margin-bottom: 1em;
}

.form-box {
  margin-bottom: 4em;
}
.form-box form {
  margin: 0 1em 2em;
}
.form-box p {
  margin: 0 1em 2em;
}
.form-box > h3 {
  padding: 7px 15px;      
  color: white;
  box-sizing: border-box;
  font-size: 16px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}
.bg-subscribe {
  background-color: #1374bb;
}
.bg-unsubscribe {
  background-color: gray;
}
.form-box .form-label {
  display: block;
  font-size: 16px;
}
.form-box input[type="email"] {
  width: 330px;
  height: 1.5em;
  padding: 0.5em;
  margin-top: 0.5em;
  margin-left: 1em;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.form-box button {
  margin-top: 1.5em;
  padding: 3px 10px;
  cursor: pointer;
  box-shadow: 0 2px 2px gray;
  border-radius: 5px;
  border-width: thin;
  font-size: 15px;
}
.mailmag-footer {
  /* メルマガ解除へのリンク時に表示がメルマガ解除の部分にあたるようにする */
  margin-top: 200px;
}

/*
スマホ時の表示（ヘッダー・ナビゲーション）
----------------------------------------
*/
@media screen and (max-width:575px) {
  /* 共通部分 */
  #container {
    width: 100%;
  }
  #header {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  #header .header_logo {
    margin-left: auto;
    height: 70px;
  }
  .header_logo img {
    height: 70px;
  }
  .header_title {
    margin-top: 0;
    margin-left: auto;
  }
  .header_title .f-14px {
    line-height: 3;
    font-size: 12px;
  }
  .header_title .f-36px {
    font-size: 8vw;
    line-height: 1;
  }
  #contents_area {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .main_menu {
    width: 100%;
  }
  .main_menu > ul {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 5px;
    margin: 0 3px;
  }
  .main_menu .items, .main_menu .items2, .main_menu .first_items {
    width: 100%;
    border-left: none;
  }
  .main_menu li > a {
    width: 100%;
    height: 20px;
    padding: 5px 0;
  }

  /* 
  mailmag_form.html専用（スマホ）
  ----------------------------------------
  */
  .mag-wrap {
    width: 100%;
    margin: 0;
  }
  .form-box form, .form-box p {
    margin-left: 1em;
  }
  .form-box input[type="email"] {
    width: 90%;
    margin-left: 0;
  }  
}


/* モーダル */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal-content {
  background: white; padding: 2em; border-radius: 10px; text-align: center;
  max-width: 400px; width: 90%;
}
.modal-content > #confirmText, .modal-content > #completeMessage {
  margin-bottom: 2em;
  font-size: 15px;
  letter-spacing: 1px;
}
.modal-content > button {
  line-height: 1.5;
  padding: 0.3em 1.5em;
  margin: 0 0.5em;
}