body {
    background: #F8FFF8;
    -webkit-appearance: none;
    appearance: none;
}



@media (max-width: 1024px) {
    .sp\:col-12 {
        float: none;
        width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 1024px) {
    .sp\:fixed {
        position: fixed;
        top: 0;
        height: 100%;
        margin-top: 40px;
        overflow: scroll;
    }
}

.table-form td.icon-button-container {
    width: 40px;
}


@media (max-width: 1024px) {
    header h1 {
        width: auto;
    }

    header .primary-wrap::after {content:""; display: none; clear: both;}

    .view-report-header {
        color: #CCC;
    }

    .primary-wrap {
        display:flex;
        flex-wrap: nowrap;
        overflow: scroll;
        justify-content: space-between;
        justify-items: center;
        width: 100vw;
    }

    .pc-only-none.close-button-area {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: -12px -8px -4px -10px;
        padding: 20px 10px 0px 13px;
    }

    .pc-only-none.close-button-area button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 5px;
        padding: 4px 10px;
        color: #333333;
    }

    div#view {
        background: #F8FFF8;
    }

    .sp-nav {
        position: fixed;
        top: 40px;
        background: #F8FFF8;
        width: 100vw;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .sp-nav a {
        display: block;
        text-decoration: none;
        cursor: pointer;
    }

    .sp-nav.open {
        display: flex;
        flex-direction: column;
        max-height: 500px;
    }

    .sp-nav ul {
        font-size: 16px;
        font-weight: bold;
    }

    .sp-nav ul li > a {
        padding: 6px 20px;
    }

    .sp-nav ul ul {
        background-color: #FFF;
    }

    .sp-nav ul ul li > a {
        padding: 4px 40px;
        font-size: 14px;
        font-weight: normal;
    }

    .sp-nav > ul > li:last-child {
        display: flex;
        justify-content: end;
    }

    .sp-nav > ul > li:last-child > a {
        display: inline-block;
    }

    .sp-nav ul li a:hover {
        background-color: #666;
        opacity: 0.3;
        color: #fff;
    }

    .sp-nav ul li a.active {
        color: #096;
    }

    .hamburger-menu {
        width: 40px;
        height: 40px;
        position: relative;
        border: none;
        background: transparent;
        appearance: none;
        padding: 0;
        cursor: pointer;
      }

    .hamburger-menu__bar {
        display: inline-block;
        width: 60%;
        height: 2px;
        background: #242424;
        position: absolute;
        left: calc(100% - 50%);
        transform: translateX(-50%);
        transition: .05s;
    }
    .hamburger-menu__bar:nth-child(1) {
        top: calc(100% - 75%);
    }
    .hamburger-menu__bar:nth-child(2) {
        top: calc(100% - 50%);
    }
    .hamburger-menu__bar:nth-child(3) {
        top: calc(100% - 25%);
    }

    .hamburger-menu.open .hamburger-menu__bar {
        top: 50%;
    }
    .hamburger-menu.open .hamburger-menu__bar:first-child {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
    .hamburger-menu.open .hamburger-menu__bar:last-child {
        transform: translateX(-50%) translateY(-50%) rotate(-45deg);
    }
    .hamburger-menu.open .hamburger-menu__bar:nth-child(2) {
        display: none;
    }

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        overflow: hidden;
        opacity: 0;
        z-index: -100;
        transition: all .2s;
    }

    .overlay.active{
        top: 40px;
        height: 100svh;
        width: 100vw;
        background-color: #000;
        opacity: 0.5;
        z-index: 90;
    }

}

@media (max-width: 768px) {
    .w50, .w60, .w70, .w80, .w90, .w100, .w110, .w120, .w130, .w140, .w150, .w200, .w250, .w300, .w350, .w400, .w500, .w600, .w700, .w800, .w7p, .w10p, .w15p, .w20p, .w25p, .w30p, .w35p, .w40p, .w45p, .w50p, .w60p, .w70p, .w80p, .w100p {
        max-width: 100%;
    }

    /* 既存の影響が怖かったので「width指定クラスに加えてsp:w-fullクラス」をつけた場合に幅を100%にしちゃう */
    .w50.sp\:w-full, .w60.sp\:w-full, .w70.sp\:w-full, .w80.sp\:w-full, .w90.sp\:w-full, .w100.sp\:w-full, .w110.sp\:w-full, .w120.sp\:w-full, .w130.sp\:w-full, .w140.sp\:w-full, .w150.sp\:w-full, .w200.sp\:w-full, .w250.sp\:w-full, .w300.sp\:w-full, .w350.sp\:w-full, .w400.sp\:w-full, .w500.sp\:w-full, .w600.sp\:w-full, .w700.sp\:w-full, .w800.sp\:w-full, .w7p.sp\:w-full, .w10p.sp\:w-full, .w15p.sp\:w-full, .w20p.sp\:w-full, .w25p.sp\:w-full, .w30p.sp\:w-full, .w35p.sp\:w-full, .w40p.sp\:w-full, .w45p.sp\:w-full, .w50p.sp\:w-full, .w60p.sp\:w-full, .w70p.sp\:w-full, .w80p.sp\:w-full, .w100p.sp\:w-full {
        width: 100% !important;
    }

    .table-form th {
        display: block;
        color: #096;
        padding-top: 5px;
        text-align: left;
        vertical-align: top;
    }

    .table-form td {
        display: block;
    }

    .table-form td.inline-block {
        display: inline-block;
    }

    .report-index-form1 tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .report-index-form1 th {
        padding-bottom: 0;
    }

    .report-index-form1 td {
        padding-bottom: 1px;
    }

    .report-index-form1 tr > :nth-child(1) { order: 1; flex: 1 1 100%; }
    .report-index-form1 tr > :nth-child(2) { order: 2; flex: 1 1 50%; }
    .report-index-form1 tr > :nth-child(3) { order: 4; flex: 1 1 50%; }
    .report-index-form1 tr > :nth-child(4) { order: 5; flex: 1 1 10%; }
    .report-index-form1 tr > :nth-child(5) { order: 3; flex: 1 1 45%; }
    .report-index-form1 tr > :nth-child(6) { order: 6; flex: 1 1 30%; }

    .report-index-form2 tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .report-index-form2 th {
        padding-bottom: 0;
    }

    .report-index-form2 td {
        padding-bottom: 1px;
    }

    .report-index-form2 tr > :nth-child(1) { flex: 1 1 100%; }
    .report-index-form2 tr > :nth-child(2) { flex: 0 1 80%; }
    .report-index-form2 tr > :nth-child(3) { flex: 1 1 100%; }
    .report-index-form2 tr > :nth-child(4) { flex: 1 1 60%; }
    .report-index-form2 tr > :nth-child(5) { flex: 1 1 40%; }

    .report-index-form3 {
        margin-bottom: 20px;
    }

    .report-index-form3 tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }

    .report-index-form3 th {
        padding-bottom: 0;
    }

    .report-index-form3 td {
        padding-bottom: 1px;
    }

    .report-index-form3 tr > :nth-child(1) { flex: 1 1 100%; }
    .report-index-form3 tr > :nth-child(2) { flex: 0 1 45%; }
    .report-index-form3 tr > :nth-child(3) { flex: 0; }
    .report-index-form3 tr > :nth-child(4) { flex: 0 1 45%; }
    .report-index-form3 tr > :nth-child(5) { flex: 1 1 40%; }
    .report-index-form3 tr > :nth-child(6) { flex: 1 1 40%; margin: 5px 0; text-align: end;}

    .report-button-wrap #__delete_report {
        min-width: 80px;
    }

}

@media (max-width: 480px) {
    /* iPhoneのフォームスタイル崩れ対策、全体で統一したいが崩れたためメディアクエリ内で */
    input[type="submit"] {
        appearance: none;
        -webkit-appearance: none;
    }

    /* iPhoneのフォームスタイル崩れ対策、全体で統一したいが崩れたためメディアクエリ内で */
    input, textarea, select {
        -webkit-appearance: none;
        appearance: none;
        color: #333333;
        font-size: 14px;
    }

    /* iPhoneのフォームスタイル崩れ対策、全体で統一したいが崩れたためメディアクエリ内で */
    input[type="date"]::-webkit-date-and-time-value {
        text-align: left;
    }
    
    /* iPhoneのフォームスタイル崩れ対策、全体で統一したいが崩れたためメディアクエリ内で */
    input[type=checkbox] {
        -webkit-appearance: none;
        appearance: auto;
    }

    .project-list.project-list-compact td {padding: 10px 6px;}

    #__select-customer-id .input-title.sp\:w-full, #__input-customer-name .input-title.sp\:w-full {
        display: inline-block;
        width: 100% !important;
    }

    .pager-prev, .pager-next {
        width: max-content;
        padding: 5px 10px;
    }

    .project-summary-card {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .project-sammary {
        border: 1px solid #DDD;
    }

    .project-sammary th, .project-sammary td {
        padding: 0;
    }

    .project-summary-card > :nth-child(4) {
        display: flex;
        flex-direction: column;
        margin: 5px 0;
    }

    .project-summary-card > :nth-child(4) > td:nth-child(4) { order: 1; padding: 0 8px; }
    .project-summary-card > :nth-child(4) > td:nth-child(2) { order: 2; padding: 0 8px; }


    .project-summary-card > :nth-child(4) > td:last-child {
        position: absolute;
        top: -4px;
        right: -2px;
        padding: 4px;
    }

    .project-summary-card tr:first-child td.tag {
        color: #999;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 0px 10px;
        display: inline-block;
        font-size: 14px;
    }

    .project-summary-card tr:first-child td.tag:empty {
        border: 0px solid #ccc;
    }

    .project-summary-card tr:nth-child(1){
        margin: 0 0 5px 0;
    }

    .project-summary-card tr:nth-child(2) td {
        font-size: 14px;
        text-decoration: underline;
        font-weight: bold;
        padding: 0 0 1px 8px;
    }

    .project-summary-card tr:nth-child(3) td {
        font-size: 16px;
        font-weight: bold;
        padding-left: 8px;
    }

    table.table-responsive.project-list {
        border: 0 solid #FFF;
        border-top: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
        margin: 0 -10px;
        width: 100vw;
    }

    table.table-responsive
    .table-responsive tbody,
    .table-responsive tr,
    .table-responsive th,
    .table-responsive td {
        display: block;
    }

    .table-responsive thead {
        display: none;
    }
    .table-responsive tbody {
        background: #FFF;
    }
    .table-responsive.project-list td {
        padding: 0;
        border: none;
    }
    .table-responsive td:last-child {
        text-align: right;
    }
    .table-responsive tr:not(:last-child) {
        border-bottom: 1px solid #ccc;
    }

    tr.project-list-item td.tag {
        color: #999;
        height: 15px;
        display: inline-block;
        margin: 5px 10px 0px 10px;
        font-size: 14px;
    }

    .project-list tr:hover {
        background: #EEE;
    }

    tr.project-list-item td.tag:not(:empty) {
        height: auto;
        padding: 0px 10px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    tr.project-list-item td:nth-child(2) {
        margin: 5px 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 87vw;
    }

    tr.project-list-item td:nth-child(3) {
        margin: 0px 20px;
    }

    tr.project-list-item td:nth-child(4) {
        margin: 0 20px 10px 20px;
    }

    tr.project-list-item {
        position: relative;
    }
    tr.project-list-item td:nth-child(5) {
        position: absolute;
        bottom: 12px;
        right: 15px;
    }
    tr.project-list-item td:nth-child(2) span {
        font-size: 16px;
        line-height: 1.5;
        font-weight: bold;
    }
    tr.project-list-item td:nth-child(2) span:first-child {
        font-size: 14px;
    }

    tr.project-list-item td:nth-child(2) span.under-line {
        text-decoration-line: underline;
    }

}
