@media (max-width: 600px) {
    .footer {
        height: auto;
        display: flex;
    }

    .footer nav {
        border: none;
        padding: 10px;
    }

    .footer nav ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }

    .footer nav ul li {
        border-radius: 10px;
        height: auto;
        width: 85%;
        border: 1px solid #d9d9d9;
        background-color: white;
        padding: 5px;
        padding-bottom: 10px;
    }

    .footer nav ul:nth-of-type(2) li:first-child {
        width: 95%;
        grid-column: span 3;
    }

    .footer nav ul:nth-of-type(2) li:last-child {
        grid-column: span 1;
    }

    .container {
        flex: 1;
        overflow-y: auto;
        padding: 10px;
    }

    .scan-button a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 45px;
    }

    .mainmenu {
        height: auto;
        margin-top: 0;
    }

    #slide {
        border-top-right-radius: 0px;
        border-top-left-radius: 0px;
    }

    #slide.panelactive {
        top: 0%;
    }

    .header-nav {
        margin-top: 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .header-nav img {
        width: 50px;
        height: 50px;
        vertical-align: -4px;
        margin: 0 5px 0 10px;
    }

    .logout {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 9px;
    }

    .logout img {
        margin-bottom: 5px;
        width: 40px;
        height: 40px;
    }

    .header-nav h1 {
        color: #0097b2;
        display: flex;
        justify-content: center;
        font-size: 1.6em;
    }
    li.title-menu {
        display: block;
        padding: 5px 10px;
        background-color: #56d9e1;
        color: white;
        font-weight: bold;
        font-size: large;
    }

    .menu1 li {
        padding-left: 10px;
        border-bottom: 1px solid #e6e6e6;
    }

}

.menu1 li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-home {
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 20px;
}

.panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px;
    background: #ffffff;
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: #0b3940;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-left: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.section-header img {
    width: 2em;
    height: 2em;
}

.header-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 14px 18px;
}

.card {
    border: 3px solid #0c98b3;
    border-radius: 14px;
    padding: 10px 10px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    background: #ffffff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
    cursor: pointer;
    user-select: none;
    transition: transform 160ms ease;
}

.card.small {
    font-size: 13px;
    padding: 14px 8px;
}

.card:hover {
    transform: translateY(-3px);
}

.tab-header {
    display: flex;
    width: 100%;
}

.tab-btn {
    flex: 1;
    padding: 8px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    color: #666;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #fff;
    color: #00bcd4;
    border: 2px solid #00bcd4;
    border-bottom: 2px solid #fff;
    font-weight: bold;
}
.tab-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid #00bcd4;
    border-radius: 6px 6px 0 0;
}

.tab-content {
    background: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    padding: 15px 0px;
}

.tab-pane table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tab-pane table td {
    padding: 8px;
    border-bottom: 1px solid #e0f7fa;
    text-align: center;
}

@media (max-width: 600px) {
    .panel {
        max-width: 360px;
        padding: 16px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px 16px;
    }

    .header-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 320px) {
    .panel {
        max-width: 100%;
        padding: 12px;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .header-icon {
        width: 22px;
        height: 22px;
    }
}

.title-menu {
    display: none;
}

.title-screen {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
}

.title-screen img {
    position: absolute;
    left: 0;
    cursor: pointer;
    height: 40px;
}


.btn-back-screen {
    display: none;
}

@media (max-width: 768px) {
.btn-back-screen {
    position: fixed;
    bottom: 16px;
    left: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    z-index: 9999;
    font-size: 14px;
    padding-left: 0px;
}

.btn-back-screen .arrow {
    position: relative;
    width: 12px;
    height: 12px;
}

.btn-back-screen .arrow span {
    position: absolute;
    width: 12px;
    height: 2px;
    background: #888888;
    border-radius: 2px;
}

.btn-back-screen .arrow span:first-child {
    transform: rotate(-45deg);
    top: 1px;
}

.btn-back-screen .arrow span:last-child {
    transform: rotate(45deg);
    top: 9px;
}

.btn-back-screen .text {
    color: #888888;
    text-decoration: underline;
}
}


.title-screen {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 20px;
}

.title-screen img {
    position: absolute;
    left: 0;
    cursor: pointer;
    height: 40px;
}

.title-screen .title-text {
    text-align: center;
}



    .with-icon {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
        padding-right: 8px;
    }

    .with-icon div {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .with-icon a img {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        cursor: pointer;
    }

    .checkmark-icon-extended {
        position: relative;
        display: inline-block;
        width: 70px;
        height: 70px;

    }

    .checkmark-icon-extended::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid #4EE0CC;
        border-radius: 50%;
        box-sizing: border-box;
    }

    .checkmark-icon-extended::after {
        content: '';
        position: absolute;
        border: solid #4EE0CC;
        border-width: 0 4px 4px 0;
        width: 10px;
        height: 32px;
        top: 8px;
        left: 35px;
        transform: rotate(45deg);
    }

    body {
        background: #F7FDFD;
    }


.search-header {
    text-align: left;
    padding: 10px 20px;
    background-color: #56d9e1;
    color: #333;
}

.search-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: left;
  margin-top: 5px;
}

.search-section {
  margin-bottom: 12px;
}

.search-block {
  margin-bottom: 10px;
}

.search-block .label {
  font-size: 12px;
  color: #000;
  margin-bottom: 2px;
}

.search-block .value {
  font-size: 15px;
  font-weight: bold;
  color: #000;
}

.search-block .value input{
  width: 90%;
}

.search-section.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.search-block-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}


.spinner {
    align-items: center;
    border: 1px solid #c4c4c4;
    padding: 0 !important;
    border-radius: 4px;
}

.spi-count{
    border: none !important;
    text-align: center;
    width: 40px;
}

.spi-up::before,
.spi-down::before {
    content: none;
}

.spi-up,
.spi-down {
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    width: 28px;
    height: 25px;
    cursor: pointer;
    background: #fff;
    filter: none !important;
}

.spi-up::after {
    content: "+";
}

.spi-down::after {
    content: "−";
}

.search-card.chui .value {
    color: #E32929;
}

.search-card .spinner .spinnerbtn {
    color: black;
}

.spinner {
    display: flex;
    align-items: center;
    width: 140px !important;
}

.spi-down { order: 1; }
.spi-count { order: 2; }
.spi-up   { order: 3; }

.spinnerbtn {
    display: contents;
}
.menu1 li:last-child{ border: none}

.circle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0c98b3;
    font-size: 20px;
    cursor: pointer;
    float: right;
    margin-top: 20px;
}

.circle-btn .icon {
    position: relative;
    width: 25px;
    height: 25px;
    border: 2px solid #0c98b3;
    border-radius: 50%;
}

.circle-btn .icon::before,
.circle-btn .icon::after {
    content: "";
    position: absolute;
    background: #0c98b3;
}

.circle-btn .icon::before {
    top: 50%;
    left: 25%;
    width: 50%;
    height: 2px;
    transform: translateY(-50%);
}

.circle-btn .icon::after {
    left: 50%;
    top: 25%;
    width: 2px;
    height: 50%;
    transform: translateX(-50%);
}

.icon-wrapper {
  position: relative;
  display: inline-block;
}

.icon-wrapper .badge {
  position: absolute;
  top: -24px;
  right: -27px;
  background: #ff3b30;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
}