/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: "Noto Sans JP";
}

body {
    margin: 0;
}

input, textarea, select, button
{
    font-family: "Noto Sans JP";
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   jQuery UI override
   ========================================================================== */


.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button {
    font-family: "Noto Sans JP";
}

.ui-tabs .ui-tabs-nav li{
    font-size:14px;
}

.ui-button
{
    font-size:14px;
    padding: 4px;
}

.ui-widget-content
{
    background: #EDEDED;
}

.ui-tabs .ui-tabs-active {
    font-weight: bold;
}

.ui-tabs .ui-tabs-panel
{
    padding: 4px;
}

.ui-checkboxradio-icon
{
    display: none;
}

/* ==========================================================================
   全体定義
   ========================================================================== */

.container {
    width: 100%;
    margin: 0;
    padding:0;
}

header {
    background-color: #333;
    height: 24px;
    color: #FFF;
    padding: 4px;
}

header a, a:hover, a:link {
    text-decoration: none;
    color: #FFFFFF;

}

.layout-container
{
    width: 100%;
    max-width: 1620px;
}

.header-container-left
{
    float:left;
    margin:2px 0 2px 20px;
}

.header-container-right
{
    float:right;
}

.header-navi {
    width: 100%;
    margin-top: 8px;
    height: 28px;
    clear: both;
    border-bottom: 2px solid #0099CC;
}

.header-navi ul {
    list-style: none;
    max-width: 1140px;
    margin: 0 auto;
}

.header-navi ul li {
    font-size: 14px;
    text-align: center;
    width: 90px;
    height: 24px;
    line-height: 24px;
    float: left;
    margin-left: 4px;
    color: #FFFFFF;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: 2px solid #79C4D8;
    background-color: #79C4D8;
}

.header-navi ul li.active {
    background-color: #288CB0;
    border: 2px solid #288CB0;
}

.header-navi ul li.change  {
    width: 120px;
    height: 20px;
    line-height: 20px;
    color: #FFFFFF;
    font-size: 12px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    background-color: #ce8483;
    border: 2px solid #ce8483;
}

.header-navi a, a:hover, a:link {
    display: block;
    color: #FFF;
    text-decoration: none;
}

.content
{
    max-width: 1140px;
    margin: 16px auto;
    height: 80%;
}

footer {
    clear:both;
    height: 32px;
    line-height: 32px;
    padding-right: 16px;
    border-top: 2px solid #AAAAAA;
    text-align: right;
}

/* ==========================================================================
   ログイン
   ========================================================================== */
.login_form
{
    width: 400px;
    height: 200px;
    margin: 8px auto;
    padding: 4px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    /*DEBUG*/
}

.login_form table
{
    width: 350px;
    margin:16px auto;
}

.login_form table tr th
{
    width: 120px;
    text-align: right;
    padding: 4px;
}

.login_form input {
    width: 200px;
}

.login_form input:focus {
    background-color:#fffacd;
}


.login_form a, .login_form a:link {
    display: block;
    color: #333;
    text-decoration: none;
}

.login_form a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   素材管理検索条件ボックス
   ========================================================================== */

.photo_stock_search
{
    margin: 0 auto 0 0;
    padding: 4px;
    width: 900px;
    height: 440px;
    /*DEBUG*/
}
.photo_stock_search_by_category
{
    margin: 8px;
    width: 880px;
    height: 240px;
    font-size: 14px;
    /*DEBUG*/
}
.photo_stock_search_by_conditions
{
    margin: 8px;
    width: 887px;
    height: 160px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    /*DEBUG*/
}

.photo_stock_search_by_conditions table
{
    width: 900px;
}

.photo_stock_search_by_conditions table tr th
{
    width: 120px;
    text-align: right;
    padding: 4px;
}

.photo_stock_search_ctrl
{
    text-align: center;
}

.photo_stock_searcy_by_publisher
{
    margin-left: 8px;
    width: 140px;
    height: 170px;
    float:left;
}

.photo_stock_searcy_by_textbook
{
    margin-left: 8px;
    width: 200px;
    height: 170px;
    float:left;
}

.photo_stock_searcy_by_studyunit
{
    margin-left: 8px;
    width: 300px;
    height: 170px;
    float:left;
}

.photo_stock_searcy_by_category_parent
{
    margin-left: 8px;
    width: 140px;
    height: 170px;
    float:left;
}

.photo_stock_searcy_by_category_child
{
    margin-left: 8px;
    width: 140px;
    height: 170px;
    float:left;
}

/* ==========================================================================
   編集
   ========================================================================== */

#photo_edit_form
{
    margin:0;
    padding:0;
    border: 4px solid #288CB0;
}

.indicator
{
    width: 450px;
    height: 32px;
    margin: 0;
    padding: 0;

}

.indicator ul
{
    margin:0 0 0 8px;
    padding:0;
}

.indicator ul li
{
    display: inline-block;
    list-style: none;
    width: 140px;
    height: 32px;
    font-size: 11px;
    text-align: center;
    line-height: 32px;
    margin: 0 0 0 4px;
    padding:0;
    border: 2px solid #79C4D8;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    float: left;
    background-color: #79C4D8;
    color: #FFFFFF;
}

.indicator ul li.active {
    border: 2px solid #288CB0;
    background-color: #288CB0;
}

.indicator ul li.disabled {
    color: #696969;
    border: 2px solid #DDDDDD;
    background-color: #DDDDDD;
}

.indicator a, a:hover, a:link {
    display: block;
    color: #FFF;
    text-decoration: none;
}

table.editform tbody tr td
{
    background-color:#FFFFFF;
    padding:4px;
}

table.editform tbody tr th
{
    background-color: #EDEDED;
    padding:4px;
}

/* ==========================================================================
   素材一覧
   ========================================================================== */

table#photo_stock
{
    width: 1140px;
    border-collapse: collapse;
    font-size: 14px;
}

table#photo_stock tbody tr.odd td
{
    background-color:#FFFFFF;
    border: rgb(221, 221, 221) solid 1px;
    /*border-top: rgb(221, 221, 221) solid 1px;*/
    /*border-bottom: rgb(221, 221, 221) solid 1px;*/
    padding: 8px 4px;
}

table#photo_stock tbody tr.even td
{
    background-color:rgb(247, 247, 247) ;
    border: rgb(221, 221, 221) solid 1px;
    padding: 8px 4px;
}

table#photo_stock tbody tr td.filename
{
    width: 100px;
}

table#photo_stock tbody tr td.preview
{
    width: 280px;
}

table#photo_stock tbody tr td.publish
{
    width: 30px;
}

table#photo_stock tbody tr td.pubdate
{
    width: 200px;
}

table#photo_stock tbody tr td.ctrl
{
    width: 30px;
}

table#photo_stock thead tr th
{
    background-color:rgb(243, 243, 243) ;
    border: rgb(221, 221, 221) solid 1px;
    padding: 8px 4px;
}

.stock_note
{
    width: 400px;
    height:130px;
    font-size: 11px;
}

/* ==========================================================================
   カテゴリ管理
   ========================================================================== */

.category_management
{
    margin: 0 auto 0 0;
    padding: 4px;
    width: 900px;
    height: 300px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.category_management_list
{
    margin: 8px;
    width: 880px;
    height: 300px;
    font-size: 14px;
    /*DEBUG*/
}

/* ==========================================================================
   カテゴリ編集
   ========================================================================== */

#category_edit_form, #category_create_form
{
    margin:0;
    padding:0;
    border: 4px solid #288CB0;
}

#tabs-categories {
    width: 400px;
    height: 220px;
}

.category-tab {
    clear:both;
}

.category-tab ul {
    margin:0;
    padding:0;
}

.category-tab ul li {
    list-style: none;
    background-color: #79C4D8;
    border-color: #79C4D8;
    border-style: solid;
    border-width: 1px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    float: left;
    width: 110px;
    height: 24px;
    font-size: 14px;
    margin-left: 4px;
    text-align: center;
    color: #FFFFFF;
}

.category-tab ul li.active {
    background-color: #399DC1;
    border-color: #399DC1;
    color: #FFFFFF;
}

.category-tab ul li a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
}


/* ==========================================================================
   団体一覧
   ========================================================================== */
.org_search_by_conditions
{
    margin: 8px;
    width: 887px;
    height: 120px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    /*DEBUG*/
}

.org_search_by_conditions table
{
    width: 900px;
}

.org_search_by_conditions table tr th
{
    width: 120px;
    text-align: right;
    padding: 4px;
}

.org_search_ctrl
{
    text-align: center;
}

table#org
{
    width: 1140px;
    border-collapse: collapse;
    font-size: 14px;
}

table#org tbody tr.odd td
{
    background-color:#FFFFFF;
    border: rgb(221, 221, 221) solid 1px;
    /*border-top: rgb(221, 221, 221) solid 1px;*/
    /*border-bottom: rgb(221, 221, 221) solid 1px;*/
    padding: 8px 4px;
}

table#org tbody tr.even td
{
    background-color:rgb(247, 247, 247) ;
    border: rgb(221, 221, 221) solid 1px;
    padding: 8px 4px;
}

table#org tbody tr td.filename
{
    width: 100px;
}

table#org tbody tr td.preview
{
    width: 280px;
}

table#org tbody tr td.publish
{
    width: 30px;
}

table#org tbody tr td.pubdate
{
    width: 200px;
}

table#org tbody tr td.ctrl
{
    width: 30px;
}

table#org thead tr th
{
    background-color:rgb(243, 243, 243) ;
    border: rgb(221, 221, 221) solid 1px;
    padding: 8px 4px;
}

/* ==========================================================================
   団体編集
   ========================================================================== */

#org_edit_form
{
    margin:0;
    padding:0;
    border: 4px solid #288CB0;
}

/* ==========================================================================
   ユーザー一覧
   ========================================================================== */
.user_search_by_conditions
{
    margin: 8px;
    width: 887px;
    height: 120px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    /*DEBUG*/
}

.user_search_by_conditions table
{
    width: 900px;
}

.user_search_by_conditions table tr th
{
    width: 120px;
    text-align: right;
    padding: 4px;
}

.user_search_ctrl
{
    text-align: center;
}

table#users
{
    width: 1140px;
    border-collapse: collapse;
    font-size: 14px;
}

table#users tbody tr.odd td
{
    background-color:#FFFFFF;
    border: rgb(221, 221, 221) solid 1px;
    /*border-top: rgb(221, 221, 221) solid 1px;*/
    /*border-bottom: rgb(221, 221, 221) solid 1px;*/
    padding: 8px 4px;
}

table#users tbody tr.even td
{
    background-color:rgb(247, 247, 247) ;
    border: rgb(221, 221, 221) solid 1px;
    padding: 8px 4px;
}

table#users tbody tr td.filename
{
    width: 100px;
}

table#users tbody tr td.ctrl
{
    width: 30px;
}

table#org thead tr th
{
    background-color:rgb(243, 243, 243) ;
    border: rgb(221, 221, 221) solid 1px;
    padding: 8px 4px;
}

/* ==========================================================================
   ユーザー編集
   ========================================================================== */

#user_edit_form
{
    margin:0;
    padding:0;
    border: 4px solid #288CB0;
}

/* ==========================================================================
   出荷
   ========================================================================== */
.ship_condition
{
    margin: 8px;
    width: 887px;
    height: 200px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    /*DEBUG*/
}

/* ==========================================================================
   オススメ素材
   ========================================================================== */
.recommend_condition
{
    margin: 8px;
    width: 887px;
    height: 500px;
    background-color: #EDEDED;
    border: 1px solid #DCDCDC;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    /*DEBUG*/
}

/* ==========================================================================
   ページネーション
   ========================================================================== */

div.pagination
{
    margin: 4px 0;
    /* DEBUG */
    height: 34px;
}

ul.pagination
{
    margin:0;
    padding:0;
}

ul.pagination li
{
    display: inline-block;
    list-style: none;
    width: 38px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    /*margin: 8px 0 8px 2px;*/
    margin: 0 0 0 2px;
    border: 1px solid #eaeaea;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    float: left;
    color: #000000;
}

ul.pagination li a
{
    color: #000000;
}

ul.pagination li a:hover
{
    background-color: #999999;
    border: 1px solid #000000;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    width: 38px;
    height: 32px;
    line-height: 32px;
    color: #FFFFFF;
}

ul.pagination li.disabled
{
    color: #999999;
    background-color:#EDEDED;
}

ul.pagination li.active
{
    color: #FFFFFF;
    width: 38px;
    height: 32px;
    background-color: #2a88bd;;
    border:1px solid #1f648b;;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

/* ==========================================================================
   カラーリング，フォント，ボタン
   ========================================================================== */
.icon-home
{
    color: #FFF;
}

.icon-submit
{
    color: #288CB0;
}

.icon-valid
{
    color: #2a88bd;;
}

.icon-invalid
{
    color: #999999;
}

.icon-white
{
    color: #FFFFFF;
}

.icon-black
{
    color: #454545;
}

.text-type-success
{
    color: #288CB0;
}

.text-type-error
{
    color: #a44682;
}

.text-grey
{
    font-size: 12px;
    color: #666666;
}

.text-small-grey
{
    font-size: 9px;
    color: #999999;
}

.alert
{
    font-size: 12px;
    color: #EF454A;
}

.tag-cloud
{
    /*width: 800px;*/
    /*border-bottom: 2px dotted #AAAAAA;*/
    background-color: #EDEDED;
    padding: 4px;
    margin-bottom:8px;
    border: 1px solid #CBCBCB;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.tag-cloud input
{
    display:none;
}

.tag-category
{
    display:inline-block;
    font-size:11px;
    color: #FFFFFF;
    border-radius: 4px;
    border: 1px solid #487ca3;
    background-color: #487ca3;
    padding:2px;
    cursor:pointer;
}

.tag-category-active
{
    background-color: #67b168;
    border: 1px solid #265b81;
}

.tag-studyunits
{
    display:inline-block;
    font-size:11px;
    padding:2px;
    color: #FFFFFF;
    border-radius: 4px;
    border: 1px solid #499475;
    background-color: #499475;
    cursor:pointer;
}

.tag-oem
{
    font-size:9px;
    font-weight: bold;
    color: #FFFFFF;
    border-radius: 4px;
    border: 1px solid #a44682;
    background-color: #a44682;
}

.marker{
    background: linear-gradient(transparent 0%, #fff799 0%);
    font-weight: bold;
    border-radius:6px;
}

.button-submit
{
    border: 1px solid #288CB0;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    background-color: #288CB0;
    padding: 2px 12px;
    color: #FFFFFF;
    font-weight: normal;
    cursor: pointer;
}

.button-submit:hover {
    background-color: #399DC1;
}

.button-reset
{
    border: 1px solid #666666;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    background-color: #ffffff;
    padding: 2px 12px;
    color: #666666;
    font-weight: normal;
    cursor: pointer;
}

.button-reset:hover {
    color: #999999;
}

.button-small
{
    border: 1px solid #288CB0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #288CB0;
    padding: 2px 12px;
    color: #FFFFFF;
    margin: 4px;
    font-size:12px;
    font-weight: normal;
    cursor: pointer;

    float: left;
}

.button-small:disabled
{
    border: 1px solid #999999;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background-color: #999999;
    padding: 2px 12px;
    color: #333333;
    margin: 4px;
    font-size:12px;
    font-weight: normal;
    cursor: not-allowed;
}

.image-note
{
    font-size: 9px;

}

ul#photo_stock_thumbnail
{
    width: 1250px;
    margin:0;
    padding:0;
    list-style-type: none;
}

ul#photo_stock_thumbnail li
{
    float:left;
}

ul#photo_stock_thumbnail li.thumb-horizontal
{
    width: 280px;
    height: 180px;
    margin:2px;
}

ul#photo_stock_thumbnail li.thumb-vertical
{
    width: 116px;
    height: 180px;
    margin:2px;
}

.image-thumb-horizontal
{
    width: 280px;
    margin: auto;
    border:1px solid #EDEDED;
}

.image-thumb-vertical
{
    height: 180px;
    margin: auto;
    border:1px solid #EDEDED;
}

/* ==========================================================================
   管理画面テンプレート
   ========================================================================== */














/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
