html, body {
  height: 100%;
  margin: 0;
}

body {
    font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header-wrapper{
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    max-width: 1286px;
    height: 100px;
    min-height:100px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: start;
    margin: auto 0;
    padding-left: 6px;
    flex-grow: 1;
    justify-content: space-between;
    max-width: 1286px;
}

.header-content small {
    margin: auto 0;
    font-size: 10px;
}

.header-content b {
    margin: auto 10px;
    font-size: 12px;
}

header {
    background-color: #f3f5ff;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px 0
}

h1 {
    margin: 0;
    padding: 4px 40px;
    font-size: 14px;
    color: #000064;
    flex-grow: 1;
    max-width: 1286px;
    font-weight: 700;
}
.h1, .h2, .h3 {
    font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
}
.nav-index {
    background-color: #1746ff;
}

main {
    flex-direction: column;
    flex: 1 1 auto;
}

.main-container {
    display: flex;
    flex-direction: column;
    margin: 0px auto;
    width: 100%;
}

.title-container {
    margin: 0px auto;
    flex-grow: 1;
    max-width: 1286px;
    padding: 32px 40px 0;
}

.title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.title-wrapper h2{
    margin: auto 0;
    padding: 2px 0 4px;
    font-size: 24px;
    font-weight: 700;
    color: #000064;
    font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
}

.title-bullet {
    width: 6px;
    height: 34px;
    border-radius: 16px;
}

.card-pf {
    background-color: none;
    border-radius: 0px;
    box-shadow: none;
    padding: 10px;
    width: 100%;
    max-width: 570px;
    margin: auto;
}

form.login {
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

form.password-change {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.input-label {
    width: 100%;
    font-weight: bold;
    margin: 10px 0 0px;
}

.password-change-container {
    display: flex;
    width: 100%;
    font-weight: bold;
    background-color: #b8860b;
}

.password-update-submit-container {
    display: flex;
    width: 100%;
    justify-content: space-between;

}

.password-change-submit-container {
    display: flex;
    width: 100%;
    justify-content: space-between;

}

label {
    font-size: 15px;
    font-weight: 400;
}

.common-input {
    padding: 8px 6px 6px;
    width: 100%;
    border: 1px solid #717784;
    border-radius: 8px;
    font-size: 12px;
    font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
}
.common-input:focus {
  outline: none;
  border: 1px solid #1746ff;
}

.links {
    margin: 30px auto;
    line-height: 25px;
}

.links a{
    color: #000064;
    text-decoration-line: underline;
    text-underline-offset: 4px;
}

.submit-container {
    display: flex;
    width: 100%;
    margin: auto;
    padding: 20px 0 20px;
    justify-content: space-between;
}

.primary-button {
    background-color:  #1746FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s;
}

button, html input[type=button], input[type=reset], input[type=submit] {
    font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
}

.primary-button:hover {
    opacity: 0.6;
}

.secondary-button {
    background-color: white;
    color: rgba(23, 70, 255);
    border: 1px solid rgba(23, 70, 255);
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.secondary-button:hover {
    opacity: 0.6;
}

.custom-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    width: 100%;
}

.login-pf-page-header {
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0 auto;
    width: 100%;
}

.message-container {
    display: flex;
}

.message-success {
    color: #00B48C; /* green for success */
}

.message-warning {
    color: #FAC800; /* dark goldenrod for warning */
}

.message-error {
    color: #E6465A; /* strong red for error */
}

.message-info {
    color: #1746FF; /* blue for info */
}

.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}

.text-lg {
    font-size: large;
}

.instruction {
    margin: 50px 0;
    font-size: 14px;
}

.login-logo {
    width: 250px;
    height: 121px;
    object-fit: contain;
}


.errorArea {
    width: 100%;
    background-color: rgb(255, 255, 255);
    margin:32px 0 16px 0;
    padding: 18px;
    border-width: 2px;
    border-style: solid;
    border-color: rgb(193, 39, 45);
    border-image: initial;
    border-radius: 5px;
}

.errorArea .error-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0;
  padding: 0;
  color: #c1272d;
  cursor: pointer;
  font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
  display: inline-block;
  line-height: 24px;
}

.errorArea .error-title:before {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 5px;
  content: "";
  vertical-align: middle;
  background: url(../images/ic_exclamation-triangle.svg) no-repeat;
  background-size: 19px auto;
}

.error-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.errorArea .error-messagebox {
  padding: 10px;
  color: #c1272d;
}


.error-messagebox, .illustration-message-item, .message-error {
    font-family: Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", Meiryo, "-Hiragino", sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #c1272d;
}

.message-error::before{
    content: "•";
    margin-right: 0.5em;
}

/* --- Viewport-height responsive adjustments --- */

@media (max-height: 750px) {

    .card-pf {
        background-color: none;
        border-radius: 0px;
        box-shadow: none;
        padding: 0 10px;
        width: 100%;
        max-width: 570px;
        margin: auto;
    }

    .input-label {
        width: 100%;
        font-weight: bold;
        margin: 0;
    }


    .title-container {
        padding-top: 16px;
    }

    .submit-container {
        padding: 10px 0;
    }

    .links {
        margin: auto;
    }
}
