/* ----------------------------------------
  規格更新メニュー STYLES
  ----------------------------------------- */
:root {
    /* --color01: #f36c73;
	--color02: #2c6690;
	--color03: #7474a9;
	--color04: #2a835e; */
    --color01: #f24063;
    --color02: #0c5589;
    --color03: #3d3d8e;
    --color04: #005d36;

    --bg01: #ffeaee;
    --bg02: #e0eff8;
    --bg03: #f3f0fe;
    --bg04: #daf7ea;
}

.pg_kikaku #main {
    overflow: hidden;
}

.pg_kikaku .tabMenu {
    gap: 1em;
    margin: 1em 0 1.5em;
}

.pg_kikaku .tabMenu li {
    flex: 1;
}

.pg_kikaku .tabMenu label {
    position: relative;
    display: grid;
    place-items: center;
    padding: 0.8em 0.8em 0.8em 1.5em;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.04em;
    border-radius: 0.3em;
    cursor: pointer;
    opacity: 0.7;
    background: #eee;
    color: #2c6690;
    transition: all 0.3s ease-out;
}

.pg_kikaku .tabMenu label:hover {
    opacity: 1;
}

.pg_kikaku .tabMenu i {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
}

.pg_kikaku .tabMenu label:has(input:checked) {
    opacity: 1;
}

.pg_kikaku .tabMenu .tab_established label:has(input:checked) {
    background: var(--bg01);
    color: var(--color01);
}

.pg_kikaku .tabMenu .tab_revised label:has(.rdo_revised:checked) {
    background: var(--bg02);
    color: var(--color02);
}

.pg_kikaku .tabMenu .tab_withdrawn label:has(input:checked) {
    background: var(--bg03);
    color: var(--color03);
}

.pg_kikaku .tabMenu .tab_stabilized label:has(input:checked) {
    background: var(--bg04);
    color: var(--color04);
}

.pg_kikaku .tabMenu label input {
    display: none;
}

.pg_kikaku .tabContainer {
    position: relative;
    min-height: calc(100vh - 370px);
}

.pg_kikaku .tabContent {
    /* display: none; */
    display: block;
    /* position: absolute; */
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.5em);
    height: 0;
    transition:
        opacity 0.35s ease-out 0.05s,
        transform 0.35s ease-out 0.05s;
}

.pg_kikaku .tabMenu:has(.rdo_established:checked) + .tabContainer #established {
    visibility: visible;
    pointer-events: visible;
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

.pg_kikaku .tabMenu:has(.rdo_revised:checked) + .tabContainer #revised {
    visibility: visible;
    pointer-events: visible;
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

.pg_kikaku .tabMenu:has(.rdo_withdrawn:checked) + .tabContainer #withdrawn {
    visibility: visible;
    pointer-events: visible;
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

.pg_kikaku .tabMenu:has(.rdo_stabilized:checked) + .tabContainer #stabilized {
    visibility: visible;
    pointer-events: visible;
    opacity: 1;
    height: auto;
    transform: translateY(0);
}

@media print, screen and (min-width: 576px) and (max-width: 767px) {
    .pg_kikaku .tabMenu {
        font-size: 0.9em;
        gap: 0.5em;
    }

    .pg_kikaku .tabMenu label {
        padding: 0.65em 0.5em 0.65em 1.5em;
    }

    .pg_kikaku .tabMenu label {
        left: 0.5em;
    }
}

@media print, screen and (max-width: 575px) {
    .pg_kikaku .tabMenu {
        flex-wrap: wrap;
        gap: 0.5em;
        font-size: 0.9em;
    }

    .pg_kikaku .tabMenu li {
        flex: 1 1 calc(50% - 0.5em);
    }

    .pg_kikaku .tabMenu li label {
        padding-block: 0.45em;
    }
}

.pg_kikaku .item_tanto input[type="text"] {
    margin-left: 0.5em;
}

@media screen and (max-width: 575px) {
    .pg_kikaku .item_tanto input[type="text"] {
        max-width: calc(50% - 2.5em);
    }
}

/* input file */
.pg_kikaku .item_pdf .colWrap {
    gap: 1em;
}

.pg_kikaku .item_pdf .label_file {
    flex: 1;
    flex-wrap: nowrap;
}

@media print, screen and (max-width: 575px) {
    .pg_kikaku .item_date input[type="date"] {
        margin-bottom: 1em;
    }

    .pg_kikaku .item_pdf input[type="text"] {
        width: 100%;
        margin-bottom: 1em;
    }
}

/* category select */
.sel_subcategory {
    display: none;
}

.sel_subcategory.show {
    display: block;
}

/* cdr */
.pg_kikaku .has_cdr {
    position: relative;
    padding-right: 1.5em;
}

.pg_kikaku .row_cdr .hd {
    flex: 0 1 6em;
    font-size: 0.9em;
    font-weight: bold;
    color: #537383;
}

.pg_kikaku .has_cdr:before,
.pg_kikaku .has_cdr:after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    content: "";
    display: block;
    width: 0.8em;
    height: 2px;
    background: #2c5fa1;
    transition: transform 0.2s ease-in-out;
}

.pg_kikaku .has_cdr:after {
    transform: translateY(-50%) rotate(90deg);
}

.pg_kikaku .item_pdf .acc {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.2s ease-in-out;
}

.pg_kikaku .item_pdf .acc > * {
    overflow: hidden;
}

.pg_kikaku .item_pdf .acc.active {
    grid-template-rows: 1fr;
}

.pg_kikaku .has_cdr.active:after {
    transform: translateY(-50%) rotate(0deg);
}

/* ------------------------------------------
  kikaku list
 -------------------------------------------- */
.pg_kikaku .listSection table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1340px;
    margin: 0 auto;
}

.pg_kikaku .listSection th,
.pg_kikaku .listSection td {
    padding: 7px 5px;
    font-size: 0.94em;
    border: 1px solid #a3bdc9;
    line-height: 1.4;
    letter-spacing: 0;
}

.pg_kikaku .listSection thead th {
    font-size: 0.9em;
    background: #3686ac;
    color: #fff;
    white-space: nowrap;
}

.pg_kikaku .listSection thead th .cell,
.pg_kikaku .listSection thead td .cell {
    display: block;
}

.pg_kikaku .listSection tr:nth-child(even) {
    background: #fafafa;
}

.pg_kikaku .listSection table .link {
    text-decoration: underline;
}

.pg_kikaku .listSection table .link:hover {
    text-decoration: none;
}

.pg_kikaku .listSection table .col_num {
    width: 6em;
}

.pg_kikaku .listSection table .col_title,
.pg_kikaku .listSection table .col_subTitle {
    /* width: 15em; */
    width: 13em;
}

.pg_kikaku .listSection table .col_code {
    width: 16em;
}

.pg_kikaku .listSection table .col_title {
    width: auto;
}

.pg_kikaku .listSection table .col_lang {
    width: 3.5em;
}

.pg_kikaku .listSection table .col_date,
.pg_kikaku .listSection table .col_publish,
.pg_kikaku .listSection table .col_input {
    width: 7em;
}

.pg_kikaku .listSection table .col_price {
    width: 7em;
}

.pg_kikaku .listSection .col_tanto {
    width: 6em;
}

.pg_kikaku .listSection table .col_edit,
.pg_kikaku .listSection table .col_delete {
    width: 3.6em;
}

.pg_admin .listSection table .ico_withdrawn {
    display: block;
    margin-bottom: 0.5em;
    padding: 0.2em 0.2em 0.3em;
    width: 3.4em;
    font-size: 0.85em;
    background: #df647d;
    border-radius: 2px;
    color: #fff;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
}

.pg_kikaku .listSection .btn_edit,
.pg_kikaku .listSection .btn_delete {
    display: block;
    position: relative;
    font-size: 12px;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    color: #3686ac;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 0.5em;
    font-weight: normal;
    transition: background 0.4s ease-out;
    text-align: center;
}

.pg_kikaku .listSection .btn_edit:before,
.pg_kikaku .listSection .btn_delete:before {
    content: "";
    display: block;
    font-family: "Font Awesome 5 Free";
    margin: 0 auto 0.225em;
    font-size: 1.8em;
    font-weight: normal;
    letter-spacing: 0;
}

.pg_kikaku .listSection .btn_edit:before {
    content: "\f044";
}

.pg_kikaku .listSection .btn_delete:before {
    content: "\f2ed";
}

.pg_kikaku .listSection .btn_edit:hover {
    background: rgba(54, 134, 172, 0.15);
}

.pg_kikaku .listSection .btn_delete:hover {
    background: rgba(253, 197, 204, 0.6);
    color: #e04a4a;
}

.pg_kikaku .pagination {
    margin: 30px auto 0;
}

.pg_kikaku .pagination li {
    margin: 0 0.35em;
}

.pg_kikaku .pagination a {
    display: block;
    padding: 0.35em;
    line-height: 1;
    min-width: 1.85em;
    border: 1px solid #a3bdc9;
    border-radius: 2px;
    color: #444;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease-out;
}

.pg_kikaku .pagination .current a,
.pg_kikaku .pagination .current a:hover {
    background: #3686ac;
    color: #fff;
}

.pg_kikaku .pagination a:hover {
    background: rgba(146, 191, 212, 0.3);
}

.pg_kikaku .pagination .nav_first a,
.pg_kikaku .pagination .nav_last a,
.pg_kikaku .pagination .nav_prev a,
.pg_kikaku .pagination .nav_next a {
    position: relative;
    border: 0;
}

.pg_kikaku .pagination .nav_first a:hover,
.pg_kikaku .pagination .nav_last a:hover,
.pg_kikaku .pagination .nav_prev a:hover,
.pg_kikaku .pagination .nav_next a:hover {
    background: none;
    color: #3686ac;
}

.pg_kikaku .pagination .nav_first a i,
.pg_kikaku .pagination .nav_last a i,
.pg_kikaku .pagination .nav_prev a i,
.pg_kikaku .pagination .nav_next a i {
    color: #3686ac;
    margin: 0 0.25em;
}

span.ico_withdrawn {
    display: inline-block;
    margin-bottom: 0.5em;
    padding: 0.2em 0.2em 0.3em;
    font-size: 0.85em;
    background: #df647d;
    border-radius: 2px;
    color: #fff;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
}

span.ico_stabilized {
    display: inline-block;
    margin-bottom: 0.5em;
    padding: 0.2em 0.2em 0.3em;
    font-size: 0.85em;
    background: #b99038;
    border-radius: 2px;
    color: #fff;
    line-height: 1.1;
    text-align: center;
    letter-spacing: -0.05;
    text-indent: 0.25em;
}

.operation_guide {
    padding: 1rem 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.operate_confirm_info {
    padding: 3rem 1rem;
    border-radius: 6px;
    background-color: #eee;
    margin-top: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.error-message {
    color: red;
    font-weight: bold;
    margin-top: 1rem;
}

section.resultOperationSection table.commonTbl {
    min-width: 100% !important;
}

.btn_operate {
    display: inline-block;
    position: relative;
    background-color: #eee;
    color: #408cd3;
    letter-spacing: 0.1em;
    line-height: 1;
    padding: 0.5em 1.2em;
    font-weight: normal;
    border-radius: 3px;
    transition: background 0.4s ease-out;
    text-align: center;
}

.btn_set_date,
.btn_calculate_price {
    display: inline-block;
    line-height: 1;
    margin-left: 10px;
    padding: 0.4em 0.8em;
    border-radius: 0.6em;
    cursor: pointer;
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #bbb;

    &:hover {
        opacity: 0.7;
    }
}

/* フォームプレチェック時のエラー */
#disp_errors ul.error-messages {
    color: red;
    font-weight: bold;
    margin-bottom: 1em;
    border: 1px solid #f00;
    padding: 0.5em;
    background-color: #fee;
}

.selected_file_info {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #666;
    .file_type {
        display: none;
    }
}

.input_flex {
    display: flex;
    align-items: center;
}

.grid_file_box {
    display: grid;
    grid-template-columns: 36em 5em;
}

.grid_file_box_cdr {
    display: grid;
    grid-template-columns: 6em 30em 5em;
    align-items: center;
}

.additional_select {
    width: 12em;
    text-align: right;
}

.formTbl .hd {
    color: #537383;
    font-weight: bold;
}

.flow_file_box {
    margin-bottom: 1em;
}

.btn_precheck {
    background: #589dd0 !important;
    color: #fff !important;
}

span.lbl_addendum {
    color: #333;
    display: inline-block;
    border: 1px solid #555;
    background-color: #fff;
    margin: 0 0.2em;
    padding: 2px 6px 2px;
    font-size: 0.825em;
    line-height: 1;
    border-radius: 2px;
    text-align: center;
}

div.revision_status {
    margin: 0;
    line-height: 1;
}

span.lbl_revision_status {
    color: #333;
    display: inline-block;
    padding: 2px 6px 2px;
    font-size: 0.825em;
    line-height: 1;
    border-radius: 2px;
    text-align: center;
    &.current {
        background-color: #f66;
        color: #fff;
    }
    &.former {
        background-color: #eee;
        color: #555;
    }
    &.abolished {
        background-color: #999;
        color: #fff;
    }
}

/* リビジョンタブ */

.select_revision_tab_box {
    display: flex;
    flex-wrap: wrap;
    margin: 5rem 0 1rem;
    border-bottom: 2px solid #999;
}

.select_revision_tab {
    padding: 0.2rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 0.5rem;
    cursor: pointer;

    &.latest {
        margin-right: 5rem;
    }
}

div.revised_date {
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
}

.select_revision_tab.active {
    background-color: #007bff;
    color: white;
}

.tab {
    display: none;
}

span.required {
    color: red;
    margin-left: 0.25em;
    font-size: 0.9em;
}

ul.select_addendum_revision_anchor_box {
    display: flex;
    flex-wrap: wrap;
    margin: 2rem 0 2rem;
    border: 1px solid #aaa;
    padding: 0.5em 0.5em;
}

.top50 {
    margin-top: 50px !important;
}
.top100 {
    margin-top: 100px !important;
}

table.list_edit_target {
    border-collapse: collapse;
    margin: 1em 0 1em 3em;
    td {
        border: 1px solid #ccc;
        padding: 0.5em 2.5em;
    }
}

#login_target_select_btns {
    margin: 3rem 0;
    padding: 5rem 2rem;

    ul {
        display: flex;
        gap: 30px;
        li {
            margin-right: 1rem;

            a.btn_select_login_target {
                background: #064c7f;
                color: #fff;
            }
        }
    }
}

.back_btn_area {
    display: flex;
    justify-content: flex-end;
    margin: 1em 0;
}
