/*
 * 北海道医療大学 共通ログインサイト
 * Responsive / legacy compatible design
 */


/* ============================================================
   SimpleSAMLphp 標準レイアウト解除
   ============================================================ */

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    background: #ffffff;
}


#layout,
main,
#content,
#content > .wrap {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   全体
   ============================================================ */

#hnnet-wrap {
    width: 950px;
    max-width: 100%;

    margin: 0 auto;

    box-sizing: border-box;

    border-left: 1px solid #243466;
    border-right: 1px solid #243466;
    border-bottom: 1px solid #243466;

    font-family:
        Arial,
        "Yu Gothic",
        "YuGothic",
        "Meiryo",
        sans-serif;

    color: #111111;
}


/* ============================================================
   ヘッダー
   ============================================================ */

#hnnet-header {
    position: relative;

    aspect-ratio: 950 / 205;

    min-height: 150px;

    padding:
        clamp(12px, 2.3vw, 22px)
        clamp(15px, 2.2vw, 20px);

    box-sizing: border-box;

    color: #ffffff;

    background-color: #202f63;
    background-image:
        url("/module.php/mymodule/images/hoku-iryo-logo.png");

    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}


#hnnet-header a {
    color: #ffffff;
    text-decoration: none;
}


#hnnet-header h1 {
    position: relative;
    z-index: 2;

    margin:
        0
        0
        clamp(8px, 1.7vw, 18px);

    color: #ffffff;

    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.3;
    font-weight: bold;
}


.hnnet-site-url {
    position: relative;
    z-index: 2;

    margin: 0;

    padding-left:
        clamp(0px, 1vw, 10px);

    color: #ffffff;

    font-size: clamp(11px, 1.5vw, 14px);
}


.hnnet-site-url a {
    color: #ffffff;
}


/* ============================================================
   本文
   ============================================================ */

#hnnet-content {
    padding:
        clamp(10px, 2vw, 20px)
        clamp(12px, 2.2vw, 20px)
        clamp(20px, 3vw, 30px);

    box-sizing: border-box;

    background: #bdb4ca;
    color: #111111;
}


.hnnet-logintext,
.hnnet-help {
    font-size: clamp(12px, 1.7vw, 14px);
    line-height: 1.55;
}


.hnnet-logintext {
    margin-top: 0;
}


/* ============================================================
   ログインフォーム
   ============================================================ */

.hnnet-login-table {
    margin-top:
        clamp(14px, 2.3vw, 18px);

    border-collapse: collapse;
}


.hnnet-login-table td {
    padding:
        clamp(3px, 0.8vw, 5px);
}


.hnnet-icon-cell {
    width: 30px;

    padding-left: 0 !important;

    text-align: center;
    vertical-align: middle;
}


/* ============================================================
   ユーザー／鍵アイコン
   ============================================================ */

.hnnet-user-icon,
.hnnet-lock-icon {
    display: block;

    width: clamp(22px, 3vw, 26px);
    height: clamp(26px, 3.4vw, 30px);

    margin: 0 auto;
}


/* ============================================================
   HNNET ID + 固定ドメイン
   ============================================================ */

.hnnet-username-wrap {
    display: flex;
    align-items: center;

    width: 280px;
    max-width: calc(100vw - 190px);

    height: 38px;

    box-sizing: border-box;

    border: 1px solid #cccccc;

    background: #ffffff;
}


.hnnet-username-wrap #username {
    flex: 1 1 auto;

    width: 1%;
    min-width: 0;
    height: 36px;

    margin: 0;
    padding: 6px 8px;

    box-sizing: border-box;

    border: 0 !important;
    outline: 0;

    background: transparent;
    color: #111111;

    font-size: 14px;
}


.hnnet-username-wrap:focus-within {
    outline: 2px solid #233467;
    outline-offset: 1px;
}


.hnnet-username-wrap #username:focus {
    outline: 0;
}


.hnnet-email-domain {
    flex: 0 0 auto;

    padding: 0 8px;

    box-sizing: border-box;

    color: #333333;
    background: transparent;

    white-space: nowrap;

    font-size: 13px;
    font-weight: 500;

    user-select: none;
}


/* ============================================================
   パスワード欄
   ============================================================ */

.hnnet-password-wrap {
    position: relative;

    display: inline-block;
}


#password {
    width: 280px;
    height: 38px;

    margin: 0;
    padding: 6px 38px 6px 8px;

    box-sizing: border-box;

    border: 1px solid #cccccc;

    background: #ffffff;
    color: #111111;

    font-size: 14px;
}


#password:focus {
    outline: 2px solid #233467;
    outline-offset: 1px;
}


/* ============================================================
   パスワード表示／非表示ボタン
   ============================================================ */

.hnnet-password-eye {
    position: absolute;

    right: 4px;
    top: 50%;

    width: 30px;
    height: 30px;

    transform: translateY(-50%);

    margin: 0;
    padding: 5px;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.hnnet-password-eye img {
    display: block;

    width: 18px;
    height: 18px;

    margin: auto;
}


.hnnet-password-eye.password-visible::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 14px;

    width: 20px;
    height: 2px;

    background: #000000;

    transform: rotate(45deg);
    transform-origin: center;
}


.hnnet-password-eye:hover {
    background: #eeeeee;
}


.hnnet-password-eye:focus {
    outline: 1px solid #233467;
}


/* ============================================================
   ログインボタン
   ============================================================ */

#regularsubmit {
    width: 100px;
    height: 40px;

    border: 0;

    background: #233467;
    color: #ffffff;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}


#regularsubmit:hover {
    background: #18244c;
}


#regularsubmit:focus {
    outline: 2px solid #233467;
    outline-offset: 2px;
}


/* ============================================================
   Remember系
   ============================================================ */

.hnnet-option {
    margin: 5px 0 0 45px;

    font-size: 13px;
}


/* ============================================================
   ヘルプ
   ============================================================ */

#hnnet-content h2 {
    margin-top:
        clamp(22px, 4vw, 28px);

    margin-bottom: 5px;

    padding-bottom: 3px;

    border-bottom: 1px solid #ffffff;

    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 1.4;
}


.hnnet-help {
    margin-top: 10px;
    margin-bottom: 0;
}


/* ============================================================
   エラー
   ============================================================ */

.hnnet-error {
    margin: 10px 0 15px;

    padding: 10px 12px;

    border: 2px solid #a00000;

    background: #ffffff;
    color: #900000;
}


.hnnet-error strong {
    font-weight: bold;
}


.hnnet-error p {
    margin-bottom: 0;
}


/* ============================================================
   検証環境
   ============================================================ */

.hnnet-preproduction {
    margin-bottom: 10px;

    padding: 10px;

    border: 1px solid #d9a300;

    background: #fff3cd;
    color: #000000;

    font-size: 14px;
    font-weight: bold;
}


/* ============================================================
   フッター
   ============================================================ */

#hnnet-footer {
    padding:
        clamp(8px, 1.5vw, 10px)
        clamp(12px, 2.2vw, 20px);

    box-sizing: border-box;

    background: #ffffff;
    color: #111111;

    font-size: clamp(11px, 1.5vw, 13px);
    line-height: 1.5;
}


.hnnet-footer-warning {
    margin: 0 0 3px;

    color: #ff0000;

    font-weight: bold;
}


/* ============================================================
   タブレット
   ============================================================ */

@media screen and (max-width: 700px) {

    #hnnet-wrap {
        width: 100%;
        max-width: 100%;

        margin: 0;

        border-left: 0;
        border-right: 0;
    }


    #hnnet-header {
        aspect-ratio: 950 / 205;

        min-height: 130px;

        padding:
            14px
            15px;

        background-size: 100% 100%;
    }


    #hnnet-header h1 {
        font-size: clamp(17px, 4vw, 20px);
    }


    .hnnet-site-url {
        font-size: clamp(10px, 2.5vw, 13px);
    }


    #hnnet-content {
        padding:
            12px
            15px
            25px;
    }


    .hnnet-logintext,
    .hnnet-help {
        font-size: clamp(12px, 2.7vw, 14px);
    }


    .hnnet-username-wrap {
        width: min(280px, calc(100vw - 150px));
        max-width: none;
    }


    #password {
        width: min(280px, calc(100vw - 150px));
    }


    .hnnet-email-domain {
        padding: 0 6px;

        font-size: 12px;
    }


    #regularsubmit {
        width: 90px;

        font-size: 13px;
    }


    #hnnet-content h2 {
        font-size: clamp(16px, 3.5vw, 18px);
    }


    #hnnet-footer {
        padding:
            10px
            15px;

        font-size: clamp(10px, 2.4vw, 12px);
    }

}


/* ============================================================
   スマートフォン
   ============================================================ */

@media screen and (max-width: 520px) {

    #hnnet-header {
        aspect-ratio: auto;

        height: clamp(135px, 34vw, 165px);
        min-height: 135px;

        background-size: cover;
        background-position: center center;
    }


    .hnnet-login-table {
        width: 100%;
    }


    .hnnet-submit-cell {
        padding-left: 10px !important;
    }


    .hnnet-username-wrap,
    #password {
        width: min(300px, calc(100vw - 145px));
    }


    .hnnet-email-domain {
        padding: 0 5px;

        font-size: 11px;
    }


    #regularsubmit {
        width: 80px;
    }

}


/* ============================================================
   非常に狭いスマートフォン
   ============================================================ */

@media screen and (max-width: 400px) {

    #hnnet-header {
        height: 145px;
    }


    #hnnet-header h1 {
        font-size: 17px;
    }


    .hnnet-username-wrap,
    #password {
        width: calc(100vw - 90px);
    }


    .hnnet-email-domain {
        padding: 0 4px;

        font-size: 10px;
    }


    .hnnet-submit-cell {
        display: block;

        padding-left: 40px !important;
        padding-top: 8px !important;
    }


    #regularsubmit {
        width: 100px;
    }

}


/* ============================================================
   同意画面
   ============================================================ */

.hnnet-consent-intro {
    margin: 0 0 18px 0;

    font-size: 14px;
    line-height: 1.7;
}


.hnnet-consent-intro p {
    margin: 5px 0;
}


.hnnet-consent-destination {
    margin: 10px 0;

    padding: 9px 12px;

    border-left: 4px solid #233467;

    background: rgba(255, 255, 255, 0.45);

    font-size: 15px;
    font-weight: bold;

    word-break: break-all;
}


.hnnet-consent-important {
    color: #ff0000;
}


.hnnet-consent-purpose {
    margin: 15px 0;

    padding: 10px 12px;

    background: rgba(255, 255, 255, 0.4);

    font-size: 14px;
    line-height: 1.6;
}


.hnnet-consent-purpose p {
    margin: 5px 0 0;
}


/* ------------------------------------------------------------
   「次回以降確認しない」
   ------------------------------------------------------------ */

.hnnet-consent-remember {
    margin: 15px 0 18px;

    font-size: 14px;
}


.hnnet-consent-remember label {
    cursor: pointer;
}


.hnnet-consent-remember input {
    margin-right: 5px;
}


.hnnet-consent-remember-warning {
    margin-top: 5px;

    color: #ff0000;

    font-size: 13px;
    font-weight: bold;
}


/* ------------------------------------------------------------
   承認・キャンセル
   ------------------------------------------------------------ */

.hnnet-consent-form {
    margin: 0;
}


.hnnet-consent-button {
    display: block;

    width: 500px;
    max-width: 100%;

    height: 42px;

    margin: 10px auto;

    padding: 0 15px;

    box-sizing: border-box;

    border: 0;

    background: #233467;
    color: #ffffff;

    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}


.hnnet-consent-button:hover {
    background: #18244c;
}


.hnnet-consent-button:focus {
    outline: 2px solid #233467;
    outline-offset: 2px;
}


.hnnet-consent-no {
    margin-top: 8px;
}


/* ------------------------------------------------------------
   プライバシーポリシー
   ------------------------------------------------------------ */

.hnnet-consent-privacy {
    margin: 15px 0;

    text-align: center;

    font-size: 13px;
}


.hnnet-consent-privacy a {
    color: #233467;
}


/* ------------------------------------------------------------
   属性タイトル
   ------------------------------------------------------------ */

#hnnet-content .hnnet-consent-attribute-title {
    margin-top: 26px;
    margin-bottom: 10px;

    padding-bottom: 6px;

    border-bottom: 1px solid #ffffff;

    font-size: 17px;
    line-height: 1.5;

    word-break: break-all;
}


/* ------------------------------------------------------------
   属性一覧
   ------------------------------------------------------------ */

.hnnet-consent-attributes {
    width: 100%;

    overflow-x: auto;
}


.hnnet-consent-attributes table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;
}


.hnnet-consent-attributes th,
.hnnet-consent-attributes td {
    padding: 9px 12px;

    border-bottom: 1px solid #dddddd;

    text-align: left;
    vertical-align: top;

    font-size: 14px;

    word-break: break-word;
}


.hnnet-consent-attributes .attrname {
    width: 200px;

    font-weight: bold;
}


.hnnet-consent-attributes samp {
    font-family:
        Arial,
        "Yu Gothic",
        "YuGothic",
        "Meiryo",
        sans-serif;

    font-size: 12px;
    font-weight: normal;

    color: #555555;
}


.hnnet-attribute-label {
    color: #111111;
}


/* ============================================================
   同意画面：スマートフォン
   ============================================================ */

@media screen and (max-width: 520px) {

    .hnnet-consent-intro {
        font-size: 13px;
    }


    .hnnet-consent-destination {
        font-size: 13px;
    }


    .hnnet-consent-button {
        width: 100%;
    }


    .hnnet-consent-attributes .attrname {
        width: 120px;
    }


    .hnnet-consent-attributes th,
    .hnnet-consent-attributes td {
        padding: 7px 8px;

        font-size: 12px;
    }


    .hnnet-consent-remember-warning {
        font-size: 12px;
    }

}


/* ============================================================
   属性送信キャンセル画面
   ============================================================ */

.hnnet-noconsent {
    padding: 5px 0 10px;

    font-size: 14px;
    line-height: 1.7;
}


#hnnet-content .hnnet-noconsent h2 {
    margin-top: 0;
    margin-bottom: 18px;

    padding-bottom: 6px;

    border-bottom: 1px solid #ffffff;

    font-size: 20px;
    line-height: 1.4;
}


.hnnet-noconsent p {
    margin: 10px 0;
}


.hnnet-noconsent-service {
    margin: 15px 0;

    padding: 10px 12px;

    border-left: 4px solid #233467;

    background: rgba(255, 255, 255, 0.45);

    font-size: 15px;
    font-weight: bold;

    word-break: break-all;
}


/* ============================================================
   ボタン領域
   ============================================================ */

.hnnet-noconsent-buttons {
    width: 420px;
    max-width: 100%;

    margin: 28px auto 5px;
}


/*
 * SimpleSAMLphp標準のaタグ装飾より優先させる
 */
#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-button {
    display: block;

    width: 100%;

    margin: 10px 0;
    padding: 11px 15px;

    box-sizing: border-box;

    border: 0;

    background: #233467;
    color: #ffffff !important;

    text-align: center;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;

    cursor: pointer;
}


#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-button:hover {
    background: #18244c;

    color: #ffffff !important;
    text-decoration: none !important;
}


#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-button:focus {
    outline: 2px solid #233467;
    outline-offset: 2px;
}


/* ------------------------------------------------------------
   ログイン中止ボタン
   ------------------------------------------------------------ */

#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-cancel {
    background: #555555;
}


#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-cancel:hover {
    background: #3f3f3f;
}


/* ------------------------------------------------------------
   サービス情報ページがある場合
   ------------------------------------------------------------ */

#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-secondary {
    background: #596586;
}


#hnnet-content .hnnet-noconsent-buttons a.hnnet-noconsent-secondary:hover {
    background: #46516f;
}


/* ============================================================
   属性送信キャンセル画面：スマートフォン
   ============================================================ */

@media screen and (max-width: 520px) {

    .hnnet-noconsent {
        font-size: 13px;
    }


    #hnnet-content .hnnet-noconsent h2 {
        font-size: 18px;
    }


    .hnnet-noconsent-service {
        font-size: 13px;
    }


    .hnnet-noconsent-buttons {
        width: 100%;
    }

}


/* ============================================================
   Welcome画面
   ============================================================ */

.hnnet-welcome {
    padding: 5px 0 10px;

    font-size: 14px;
    line-height: 1.7;
}


/* ------------------------------------------------------------
   見出し
   ------------------------------------------------------------ */

#hnnet-content .hnnet-welcome h2 {
    margin-top: 0;
    margin-bottom: 16px;

    padding-bottom: 6px;

    border-bottom: 1px solid #ffffff;

    font-size: 20px;
    line-height: 1.4;
}


.hnnet-welcome-description {
    margin: 0 0 25px 0;
}


/* ------------------------------------------------------------
   セクション
   ------------------------------------------------------------ */

.hnnet-welcome-section {
    margin-top: 25px;
}


#hnnet-content .hnnet-welcome-section h3 {
    margin: 0 0 10px 0;
    padding: 0;

    border: 0;

    font-size: 16px;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   サービス一覧
   ------------------------------------------------------------ */

.hnnet-service-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
}


/*
 * 各サービスをカード風リンクにする
 */
#hnnet-content .hnnet-service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 48px;

    padding: 9px 12px;

    box-sizing: border-box;

    border: 1px solid rgba(35, 52, 103, 0.25);

    background: rgba(255, 255, 255, 0.55);
    color: #005b18;

    text-decoration: none;

    font-size: 14px;
    line-height: 1.45;
}


#hnnet-content .hnnet-service-item:hover {
    background: #ffffff;

    border-color: #233467;

    color: #233467;

    text-decoration: none;
}


#hnnet-content .hnnet-service-item:focus {
    outline: 2px solid #233467;
    outline-offset: 1px;
}


/* ------------------------------------------------------------
   サービス名
   ------------------------------------------------------------ */

.hnnet-service-name {
    display: block;

    font-weight: 500;
}


/* ------------------------------------------------------------
   補足
   ------------------------------------------------------------ */

.hnnet-service-note {
    display: inline-block;

    margin-left: 10px;

    padding: 2px 6px;

    flex: 0 0 auto;

    background: #233467;
    color: #ffffff;

    white-space: nowrap;

    font-size: 11px;
    line-height: 1.4;
}


/* ------------------------------------------------------------
   外部リンクマーク
   ------------------------------------------------------------ */

.hnnet-external-mark {
    margin-left: 10px;

    font-size: 16px;
    font-weight: bold;

    color: #233467;
}


/* ============================================================
   Welcome画面：タブレット
   ============================================================ */

@media screen and (max-width: 700px) {

    .hnnet-service-list {
        grid-template-columns: 1fr;
    }


    .hnnet-welcome {
        font-size: 13px;
    }


    #hnnet-content .hnnet-welcome h2 {
        font-size: 18px;
    }


    #hnnet-content .hnnet-welcome-section h3 {
        font-size: 15px;
    }

}


/* ============================================================
   Welcome画面：スマートフォン
   ============================================================ */

@media screen and (max-width: 520px) {

    #hnnet-content .hnnet-service-item {
        min-height: 44px;

        padding: 8px 10px;

        font-size: 13px;
    }


    /*
     * 学内限定表示はサービス名の下へ
     */
    #hnnet-content .hnnet-service-item {
        flex-wrap: wrap;
    }


    .hnnet-service-note {
        margin-left: 0;
        margin-top: 5px;
    }

}


/* ============================================================
   エラー画面
   ============================================================ */

.hnnet-error-page {
    padding: 5px 0 10px;

    font-size: 14px;
    line-height: 1.7;
}


#hnnet-content .hnnet-error-page h2 {
    margin-top: 0;
    margin-bottom: 18px;

    padding-bottom: 6px;

    border-bottom: 1px solid #ffffff;

    font-size: 20px;
    line-height: 1.4;
}


.hnnet-error-page p {
    margin: 8px 0;
}


/* ------------------------------------------------------------
   トラッキング番号
   ------------------------------------------------------------ */

.hnnet-error-track {
    margin: 22px 0;

    padding: 14px;

    box-sizing: border-box;

    border-left: 4px solid #233467;

    background: rgba(255, 255, 255, 0.55);
}


.hnnet-error-track-title {
    margin-bottom: 8px;

    font-size: 13px;
    line-height: 1.6;
}


.hnnet-error-track-id {
    display: inline-block;

    padding: 7px 14px;

    border: 1px solid #cccccc;

    background: #ffffff;
    color: #333333;

    font-family: monospace;
    font-size: 15px;
    font-weight: bold;

    letter-spacing: 1px;
}


/* ------------------------------------------------------------
   戻るボタン
   ------------------------------------------------------------ */

.hnnet-error-actions {
    width: 320px;
    max-width: 100%;

    margin: 25px auto 5px;
}


#hnnet-content .hnnet-error-button {
    display: block;

    width: 100%;

    padding: 11px 15px;

    box-sizing: border-box;

    background: #233467;
    color: #ffffff !important;

    text-align: center;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: bold;
}


#hnnet-content .hnnet-error-button:hover {
    background: #18244c;

    color: #ffffff !important;
    text-decoration: none !important;
}


#hnnet-content .hnnet-error-button:focus {
    outline: 2px solid #233467;
    outline-offset: 2px;
}


/* ============================================================
   エラー画面：スマートフォン
   ============================================================ */

@media screen and (max-width: 520px) {

    .hnnet-error-page {
        font-size: 13px;
    }


    #hnnet-content .hnnet-error-page h2 {
        font-size: 18px;
    }


    .hnnet-error-actions {
        width: 100%;
    }


    .hnnet-error-track-id {
        font-size: 13px;
    }

}
