﻿/*******各画面共通*******/
/*各ページのタイトルの設定*/
/*フィルターもあるのでflexで表示*/
.main-title {
    display: flex;
}

/*タイトルは画面中央に表示*/
/*上下に8px幅を開ける*/
.title {
    margin: auto;
    padding-top: 4px;
    padding-bottom: 7px;
}

/*サブタイトルは色を変える*/
/*中央に表示させ、下に8px幅を開ける*/
.subtitle {
    color: #808080;
    text-align: center;
    padding-bottom: 8px;
}

/*TOP画面と消耗品一覧画面のサムネイル表示*/
.thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    max-width: 100%;
    height: auto;
    text-align: center;
}

/*ルールの外側（囲い線、色、余白などの見た目）の設定*/
.rule {
    padding: 0.1em 1em;
    margin-bottom: 10px;
    color: #232323;
    background: #fff8e8;
    border-left: solid 10px #ffc06e;
    white-space: pre-line;
}

/*ルールの中身の設定*/
.rule_body {
    margin: 0;
    padding: 0;
}

.rule_color_red {
    color: red;
}

.text-danger {
    padding: 8px;
}

.textbox_number {
    width: 10em;
}

.center_textbox_number {
    width: 10em;
}

/*ローディング画面の設定↓*/
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}

#loading {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    z-index: 10000;
}

#spinner {
    display: none;
    color: #fff;
    z-index: 2;
}

#wrap {
    background: #fff;
    width: 100%;
}
/*↑ローディング画面の設定*/

/* ページTOPに戻る */
.pagetop {
    display: none;
    position: fixed;
    right: 60px;
    bottom: 15px;
}

.pagetop a {
    display: block;
    font-size: 0;
    width: 50px;
    height: 50px;
    text-align: center;
    background: rgba(132, 132, 132, 0.25);
    border-radius: 50%;
    line-height: 50px;
}

.pagetop a i {
    font-size: 20px;
    color: #fff;
    line-height: 50px;
}

/*戻るボタンの設定*/
.btn-back {
    margin-right: auto;
    margin-bottom: 1em;
}

/*ヘッダー部分のカートの設定*/
#cart {
    position: relative; /* 基準値とする */
}

#cart span {
    position: absolute; /* 相対位置に指定 */
    top: -5px; /* 表示位置を上から-10pxの位置にする */
    left: calc(100% - 15px); /* 表示位置を右から内側に10pxの位置 */
    color: #FFF; /* 文字色を白に指定 */
    font-weight: bold; /* 太文字にする */
    line-height: 20px; /* 行の高さを指定 */
    text-align: center; /* 文字を中央揃えにする */
    background: #E68031; /* 背景色をオレンジに指定 */
    border-radius: 10px; /* line-heightの半分の角丸を指定 */
    min-width: 20px; /* 最低幅を指定 */
    padding: 0 3px; /* 左右に少しだけ余白を設定 */
    box-sizing: border-box; /* 計算しやすいように */
}

/*ヘッダー部分のお知らせの設定*/
#news {
    position: relative; /* 基準値とする */
}

#news span {
    position: absolute; /* 相対位置に指定 */
    top: -5px; /* 表示位置を上から-10pxの位置にする */
    left: calc(100% - 15px); /* 表示位置を右から内側に10pxの位置 */
    color: #FFF; /* 文字色を白に指定 */
    font-weight: bold; /* 太文字にする */
    line-height: 20px; /* 行の高さを指定 */
    text-align: center; /* 文字を中央揃えにする */
    background: #F00; /* 背景色をオレンジに指定 */
    border-radius: 10px; /* line-heightの半分の角丸を指定 */
    min-width: 20px; /* 最低幅を指定 */
    padding: 0 3px; /* 左右に少しだけ余白を設定 */
    box-sizing: border-box; /* 計算しやすいように */
}

.alert {
    color: #F00;
}

.tooltip-inner {
    max-width: 100%;
    text-align: left;
    background-color: #FFFFFF;
    color: black;
    border: 0.8px solid black;
}

.required_item {
    color: #F00;
    font-size: 95%;
}

.remarks_pre {
    white-space: pre;
}

/*****テーブルのテキストを中央に設定*******/
#table_text {
    text-align: center;
}

.table_text {
    text-align: left;
}

/******TOP画面******/
/*メーカーロゴの設定*/
img.index_manufacturer_logo {
    width: 50%;
    height: 50%;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .5);/*影*/
}

/*メーカー名の上下に余白を入れる*/
.index_manufacturer_name {
    line-height: 260%;
}

/*カテゴリの文字色、フォントサイズ、上下の余白を設定*/
.index_category {
    color: #808080;
    font-size: 80%;
    line-height: 90%;
}

/******消耗品一覧画面*******/
/*消耗品写真の大きさ、囲い線を設定*/
img.productlist_product_img {
    width: 80%;
    height: 80%;
    border: 0.5px solid #dbd8d8;
}


/*******消耗品詳細画面*********/
/*詳細をflex表示*/
.detail_product {
    display: flex;
}

/*詳細写真を画面の左側6割りに表示*/
.detail_product_photo {
    width: 60%;
}

/*詳細内容を画面の右側4割りに表示*/
.detail_product_detai {
    width: 40%;
    margin-top: 30px;
    padding: 5% 8% 5% 5px;
}

/*写真の大きさ、余白、囲い線の設定*/
.img_detail_product_photo {
    width: 60%;
    margin: 5% 10% 5% 20%;
    border: 0.5px solid #dbd8d8;
}

.img_detail_product_photo2 {
    width: 60%;
    height: 400px;
    object-fit: contain;
    background-color: white;
    margin: 5% 10% 5% 20%;
}

/*消耗品IDの色を変更*/
.detail_product_id {
    color: #808080;
    white-space: pre;
}

.detail_parts_name {
    white-space: pre;
}

/********カート画面************/
.cart_detail {
    display: flex;
}

.cart_postage {
    color: #808080;
    font-size: 80%;
}

.cart_product_photo {
    width: 60%;
}

.cart_question_icon {
    
    display: flex;
}

#cart_table {
    margin: auto 5%;
}

.img_cart_product_photo {
    width: 50%;
    margin: 5% 20%;
    border: 0.5px solid #dbd8d8;
}

.img_cart_product_photo2 {
    width: 50%;
    height: 300px;
    object-fit: contain;
    background-color: white;
    margin: 5% 20%;
}

.cart_product_detai {
    width: 40%;
    margin-top: 30px;
    padding-right: 10%;
    padding-right: 5%;
}

.cart_teble_total {
    text-align: right;
}

.cart_shipping_method > label {
    display: block;
    padding: 5px;
}

.cart_shipping_method > label > input {
    margin-right: 5px;
}

.cart_shipping_method_common_rule {
    color: #808080;
    white-space: pre-line;
    padding-bottom: 8px;
}

.cart_shipping_method_rule {
    color: #808080;
    padding-bottom: 8px;
}

.cart_tag_photo {
    width: 60%;
    height: 60%;
    position: relative;
}

.cart_tag_photo img {
    width: 50%;
    margin: 5% 20%;
    border: 0.5px solid #dbd8d8;
    position: absolute;
}

.cart_tag_photo .img_cart_tag_photo {
    top: 0;
    left: 0;
}

.cart_tag_photo .img_cart_tag_qrcode_icon {
    width: 10%;
    top: 0;
    right: 10%;
}

.cart_parts_tablearea {
    width: 90%;
}

.cart_frame_tablearea {
    width: 90%;
}

.cart_price_tag_tablearea {
    width: 90%;
}

.cart_fixture_tablearea {
    width: 90%;
}

.cart_fixture_for_manufacturer_tablearea {
    width: 90%;
}

#shipping_method_radio_btn {
    margin-left: 1rem;
}

/********発注依頼内容詳細画面*********/
.img_requested_order_detail_photo {
    width: 50%;
}

.img_requested_order_detail_photo2 {
    width: 50%;
    height: 300px;
    object-fit: contain;
    background-color: white;
}

.td_requested_order_detail {
    width: 500px;
}

/*********お知らせ詳細画面**********/
.news_detail_body {
    white-space: pre-line;
}

/******フレーム*******/
/*フレーム写真の大きさ、囲い線を設定*/
img.framelist_frame_img {
    width: 100%;
}

.is_outlet_product {
    color: red;
}

/************パーツ************/
#parts_serch_result_part_grayscale {
    color: #c4c3c3;
}

.parts_product_no_pre {
    white-space: pre;
}

img.serch_result_list_img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: white;
}

.parts_product_no_pre {
    white-space: pre;
}

.parts_parts_name_pre {
    white-space: pre;
}

/****************発注履歴******************/
.history_filtre_totaltext_frex {
    display: flex;
}

.history_filtre_btn {
    margin-bottom: 10px
}

/***************在庫切れ****************/
.out_of_stock {
    color: red;
}

.ready_to_ship_changed {
    color: red;
}

/*************フィルタ共通******************/
.modal-item {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 100;
}

.modal-inner {
    width: 90%;
    max-width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-contents {
    overflow-x: auto;
    background: #fff;
    padding: 20px;
}

.modal-item.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-btn {
    display: block;
    position: relative;
    border: none;
    outline: none;
    appearance: none;
    cursor: pointer;
    width: 200px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background: #333;
    padding: 10px;
    margin: 50px auto 0;
}

/*******************************/
details {
    font-size: 1rem;
}

summary {
    cursor: pointer;
    outline: none;
}

    summary::-webkit-details-marker {
        display: none;
    }

summary {
    background-color: #EBEBEB;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 22px 25px;
    margin-bottom: 1px;
}

    summary span {
        font-size: 1.5rem;
        width: 35px;
        line-height: 35px;
        text-align: center;
        border-radius: 18px;
        background: #fff;
        margin-right: 12px;
    }

details[open] {
    /* オープン時にアニメーションを設定 */
}

    details[open] .summary span {
        color: #fff;
        background-color: #E5811E;
    }

    details[open] .answer-box {
        -webkit-animation: fadeIn 0.5s ease;
        animation: fadeIn 0.5s ease;
        border-left: 1px solid rgba(132, 132, 132, 0.25);
        border-right: 1px solid rgba(132, 132, 132, 0.25);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        padding: 22px 25px;
        line-height: 2;
    }

        details[open] .answer-box p span {
            display: inline-block;
            font-size: 1.5rem;
            font-family: "HelveticaNeue";
            width: 35px;
            line-height: 35px;
            text-align: center;
            border-radius: 18px;
            background: #282828;
            color: #fff;
            margin-right: 12px;
        }

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
        /* 透明 */
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
        /* 上から表示 */
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        /* 透明 */
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
        /* 上から表示 */
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}