:root {
  --header-bg: rgb(229, 239, 242);
  --text: #222;
  --link: #1a5f8a;
  --line: #ccc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

a { color: var(--link); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px;
  background: var(--header-bg);
  border-bottom: 2px solid #000;
}
.logo { color: var(--text); text-decoration: none; line-height: 1.4; }
.logo-sub { display: block; font-size: 12px; }
.logo-main { display: block; font-size: 22px; }

.account { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0; }
.account button {
  font: inherit;
  font-size: 13px;
  padding: 2px 10px;
  background: #fff;
  border: 1px solid #999;
  cursor: pointer;
}

.main { max-width: 720px; padding: 24px 20px 40px; margin: 0 auto; }

h1 {
  font-size: 22px;
  font-weight: normal;
  margin: 0 0 16px;
  padding: 2px 10px;
  border-left: 8px solid lightblue;
  background: #e3f2fd;
}

label { display: block; margin-top: 18px; font-weight: bold; }
.required { font-size: 12px; font-weight: normal; color: #b00; margin-left: 4px; }
input[type="text"], textarea {
  width: 100%;
  padding: 6px 8px;
  font: inherit;
  border: 1px solid #999;
}
input[type="file"] { margin-top: 4px; }
.hint { margin: 2px 0 0; font-size: 13px; color: #666; }

fieldset { margin: 18px 0 0; padding: 6px 12px 10px; border: 1px solid #999; }
legend { font-weight: bold; padding: 0 4px; }
label.check { display: inline-block; margin: 4px 14px 0 0; font-weight: normal; }

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 24px;
  font: inherit;
  color: #000;
  text-decoration: none;
  background: lightblue;
  border: 1px solid #6aa9bd;
  cursor: pointer;
}
.button:hover { background: #9fd3e3; }
.button:disabled { background: #ddd; border-color: #bbb; cursor: wait; }

.errors { margin: 0 0 8px; padding: 10px 10px 10px 30px; color: #900; background: #fdecec; border: 1px solid #e3a5a5; }
.notice { padding: 8px 12px; background: #fff7e0; border: 1px solid #e8d08a; }

table { border-collapse: collapse; margin: 12px 0 4px; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
th { background: #f5f7f8; font-weight: normal; }

.error-detail { white-space: pre-wrap; padding: 10px; background: #f5f5f5; border: 1px solid var(--line); font-size: 13px; }

.footer { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; text-align: center; }

fieldset label { font-weight: normal; margin-top: 10px; }
fieldset .hint { margin-bottom: 4px; }
