﻿/*-------------------------------------------------------------------

サイト全体に反映させるスタイルシート

-------------------------------------------------------------------*/

body {
    padding-top: 50px;
    /*padding-bottom: 20px;*/
}

.login {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
    /*max-width: 170px;*/
}


/* My Web Fonts */
/* https://icomoon.io/app/#/select */

@font-face {
    font-family: 'icomoon';
    src: url('/fonts/icomoon.eot?pmygz7');
    src: url('/fonts/icomoon.eot?pmygz7#iefix') format('embedded-opentype'), url('/fonts/icomoon.ttf?pmygz7') format('truetype'), url('/fonts/icomoon.woff?pmygz7') format('woff'), url('/fonts/icomoon.svg?pmygz7#icomoon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"], [class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-market:before {
    content: "\e900";
    color: #1ab49c;
}

.icon-setting:before {
    content: "\e901";
    color: #1ab49c;
}

.icon-user:before {
    content: "\e902";
    color: #1ab49c;
}

.icon-mother-cow:before {
    content: "\e903";
    color: #1ab49c;
}

.icon-child-cow:before {
    content: "\e904";
    color: #1ab49c;
}

#loading {
    display: table;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff;
    opacity: 0.8;
    /*z-index: 9999;*/ /* 全画面ロックしたい場合は解除 */
}

    #loading .loadingMsg {
        display: table-cell;
        text-align: center;
        vertical-align: middle;
        /*padding-top: 140px;*/
        /*background: url("[LoadingイメージのURL]") center center no-repeat;*/
    }

.link-primary {
    color: #0d6efd;
    text-decoration: underline;
}

    .link-primary:hover, .link-primary:focus {
        color: #0a58ca;
    }

.link-secondary {
    color: #6c757d;
    text-decoration: underline;
}

    .link-secondary:hover, .link-secondary:focus {
        color: #565e64;
    }

.link-success {
    color: #198754;
    text-decoration: underline;
}

    .link-success:hover, .link-success:focus {
        color: #146c43;
    }

.link-info {
    color: #0dcaf0;
    text-decoration: underline;
}

    .link-info:hover, .link-info:focus {
        color: #3dd5f3;
    }

.link-warning {
    color: #ffc107;
    text-decoration: underline;
}

    .link-warning:hover, .link-warning:focus {
        color: #ffcd39;
    }

.link-danger {
    color: #dc3545;
    text-decoration: underline;
}

    .link-danger:hover, .link-danger:focus {
        color: #b02a37;
    }

.link-light {
    color: #f8f9fa;
    text-decoration: underline;
}

    .link-light:hover, .link-light:focus {
        color: #f9fafb;
    }

.link-dark {
    color: #212529;
    text-decoration: underline;
}

    .link-dark:hover, .link-dark:focus {
        color: #1a1e21;
    }

/*リンクの形状*/
#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1AB49C;
    border-radius: 5px;
    width: 65px;
    height: 65px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 4em;    /* 2025/06 h.nakajima mod 0.6em ⇒ 4em */
    transition: all 0.3s;
}

    #page-top a:hover {
        background: #777;
    }

/*リンクを右下に固定*/
#page-top {
    position: fixed;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    /*はじめは非表示*/
    opacity: 0;
    transform: translateY(100px);
}

    /*　上に上がる動き　*/

    #page-top.UpMove {
        animation: UpAnime 0.5s forwards;
    }

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*　下に下がる動き　*/

#page-top.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(100px);
    }
}

/* 左メニューの項目リストにスクロールバーを表示する */
/**
    2025/09 h.nakajima mod 300px⇒450px
    暫定措置： ブラウザ拡大率150%時にスクロールバーがあっても、左メニュー「その他」のサブメニューが最下部まで表示されない問題を解消 (確認ブラウザ: Chrome)
    ※全倍率対応はCSSのみでは困難なため、JavaScriptで動的に調整する必要あり
*/
.treeview-menu.add-scrollable {
    max-height: calc(100vh - 450px);
    overflow-y: auto;
}

