@charset "UTF-8";
#main_base, #login_base, #protected_base {
	margin-left: auto;
	margin-right: auto;
	padding-top: 150px;
    width: 1000px;
    min-height: 65vh;
	max-height: auto;
	position: relative;
    font-size:15px;
}
#main_base h2, #login_base h2, #protected_base h2{
    font-size:20px;
}
    .error-box, .reg-box {
      background: #fff;
      padding: 30px;
      max-width: 550px;
      margin: 0 auto;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    .error-box h2 {
	  font-size: 25px;
      color: #d9534f;
    }
    .reg-box  h2 {
	  font-size: 25px;
    }
    .error-box p, .reg-box p {
      margin-top: 10px;
      color: #555;
    }
    .login-link {
      display: inline-block;
      margin-top: 20px;
      padding: 10px 20px;
      background: #3C5798;
      color: white;
      text-decoration: none;
      border-radius: 5px;
    }
    .login-link:hover {
      background: #025aa5;
    }

/* ログインフォームの外枠 */
.login-container {
  max-width: 550px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}
.input-error {
  border: 2px solid red !important;
  background: #fff2f2;
}
.error-text {
  color: red;
  font-size: 13px;
  margin-left: 8px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
margin-bottom: 30px;
}
button[type="button"]{
  font-size:20px;
  width: 100%;
  padding: 10px;
  background-color: #D9D6C9;
  color: #000;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 20px;
}
button[type="submit"], input[type="submit"] {
  font-size:20px;
  width: 100%;
  padding: 10px;
  background-color: #3C5798;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 20px;
}
.main-btn2 {
  width: 100%;
  display: inline-block;
  padding: 10px 0;
  background: #CFCFC8;
  color: #000;
  border: none;
  border-radius: 3px;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background .2s;
}
.main-btn2:hover {
  background: #9DC4EA;
}
.materials-main {
  width: 1000px;
  margin: 0 auto;
  font-size: 16px;
  box-sizing: border-box;
}
@media (max-width: 1000px) {
  .materials-main {
    width: 100vw;
    min-width: 0;
    padding: 0 4vw;
  }
}

/* 1. ようこそ */
.welcome {
  font-size: 19px;
  font-weight: bold;
  margin-top: 24px;
}

/* 2. ライン */
.main-divider {
  border-bottom: 1px solid #888;
  margin: 12px 0 0 0;
  width: 100%;
  height: 1px;
}

/* 3. 会員情報・ログアウトボタン */
.main-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}
.main-btn {
  display: inline-block;
  background: #efefef;
  border: 1px solid #b3b3b3;
  border-radius: 3px;
  padding: 9px 24px;
  font-size: 16px;
  color: #222;
  text-decoration: none;
  transition: background 0.2s;
}
.main-btn.logout {
  background: #3C5798;
  color: #fff;
  border: none;
}
.main-btn:hover, .dl-btn:hover {
  background: #c3e2ff;
  color: #0a335d;
}

/* 5. ページタイトル */
.page-title {
  font-size: 30px;
  font-weight: bold;
  margin: 0 0 22px 0;
}

/* 6. 大タイトル（カテゴリ） */
.category-title {
  font-size: 25px;
  margin: 28px 0 18px 0;
}

/* 7. 資料グリッド */
.materials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-bottom: 36px;
}
@media (max-width: 900px) {
  .materials-grid { gap: 0 12px; }
}
@media (max-width: 700px) {
  .materials-grid { gap: 0 6px; }
}

/* 7.1 ブロック */
.materials-block {
  width: 300px;
  min-height: 450px;
  background: #F0EDE6;  /* ←色はお好みで！ */
  margin-bottom: 22px;
  border-radius: 7px;
  box-shadow: 0 3px 12px rgba(120,180,220,0.07);
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .materials-block { width: 47vw; min-width: 0; }
}
@media (max-width: 700px) {
  .materials-block { width: 98vw; }
}

/* 7.4 サムネイル画像 */
.materials-thumb {
  width: 150px; height: 150px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 5px;
}

/* 7.5 タイトル */
.materials-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
  text-align: center;
}

/* 7.6 説明文 */
.materials-desc {
  font-size: 14px;
  margin-bottom: auto;
  color: #444;
  padding: 0 2px;
  text-align: left;
  width: 100%;
}

/* 7.7 ダウンロードボタン */
.dl-btn {
  display: block;
  width: 95%;
  background: #3C5798;
  color: #fff;
  text-align: center;
  padding: 11px 0;
  border-radius: 3px;
  font-size: 16px;
  margin-top: 18px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(70,100,220,0.07);
  transition: background 0.18s;
}
.dl-btn:hover { background: #004baf; }
