/* 本番環境CSS */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

header {
    background-color: #333;
    color: white;
    padding: 10px;
}

.container {
    margin-top: 50px;
}

/* ボタンデザイン */
.btn,
.badge,
.bg-warning{
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin: 10px;
}

.login-btn{
    display: inline-block;
    padding: 5px 10px;
    font-size: 13px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    margin: 10px;
}
.btn:hover,
.login-btn:hover {
    background-color: #0056b3;
}

.hd-menu{
    text-decoration: none;
    color: white;
    margin:0 10px;
}

/* テーブルデザイン */
table {
    width: 100%; /* 画面幅いっぱいに広がる */
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    table-layout: fixed; /* カラム幅を均等に設定 */
}

table th, table td {
    padding: 8px 12px; /* 少し狭くしてコンパクトに */
    text-align: center;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
    word-wrap: break-word; /* 長いテキストが切れて表示されるようにする */
}

table th {
    background: linear-gradient(135deg, #007bff, #0069d9);
    color: white;
    font-weight: bold;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td:first-child {
    font-weight: bold;
}

/* ボタンの配置 */
.d-flex {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.d-flex a, .d-flex button {
    font-size: 0.9rem;
    padding: 6px 12px;
}

.d-flex a {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.d-flex a:hover {
    background-color: #5a6268;
}

.d-flex button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

.d-flex button:hover {
    background-color: #0056b3;
}

/* フルスクリーン表示用のテーブル */
.full-width-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: white;
    box-shadow: none;
    border-radius: 0;
}


.full-width-table th, .full-width-table td {
    padding: 2px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.full-width-table th {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.full-width-table tr:hover {
    background-color: #f1f1f1;
}

.site-group{
    position: relative;
}
.add-site{
    width: 50px;
    position: absolute;
    right: 35%;
    top: 0px;
    transform: scale(0.8);
}
.remove-site{
    width: 50px;
    position: absolute;
    right: 35%;
    top: 0px;
    transform: scale(0.8);
}
.site-group{
    margin-bottom: 5px;
}
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #007bff;
}

.pagination li a:hover {
    background-color: #e9ecef;
}

.pagination .disabled span {
    color: #6c757d;
    background-color: #fff;
    border-color: #ddd;
}
.inactive-tr{
    background:red;
}
.container {
    text-align: center;
    margin: 20px;
}

.card-container {
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    justify-content: left; /* 均等配置 */
    gap: 20px; /* カード間の余白 */
    max-width: 1200px; /* 横幅の最大値 */
    margin: 10px auto; /* 中央揃え */
}

/* カードのサイズを調整 */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: calc(25% - 20px); /* 4列レイアウト（余白を考慮） */
    text-align: left;
    box-sizing: border-box;
}

.card h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.card p {
    font-size: 14px;
    margin: 5px 0;
    color: #666;
}

.card_a{
    text-decoration: none;
}
.card_a:hover{
   opacity: 0.6;
}
.contact_area{
    text-align: left;
    line-height: 2;
    width: 20%;
    margin:0 auto;
}
.contact_area form textarea{
    width: 300px;
    height: 200px;
    margin-top: 10px;
}
.info-flex{
    width: 50%;
    margin:5% auto;
    text-align: left;
}
.info-flex h3{
    border-bottom: dotted 1px gray;
}
.info-flex p{
    padding: 10px;
    font-size: 16px;
}
.info-sub{
    color: gray;
    line-height: 0.5;
    text-align: left;
    border-top:dotted 1px;
    border-bottom:dotted 1px;
}
textarea.info-control{
    width: 20%;
}
.complete{
    margin: 50px auto;
}
.short-table{
    margin:0 20%;
}
.bold{
    font-weight: bold;
    border-bottom: solid 1px;
}
.surf-box {
    display: flex;
    justify-content: center;
    gap: 2rem; /* 各リンクの間隔 */
    padding: 1rem 0;
    background-color: #f3f4f6; /* 薄いグレー */
    border-radius: 0.5rem;
}

.surf-box a {
    color: #2563eb; /* 青 */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.surf-box a:hover {
    color: #1e40af; /* 濃い青（ホバー時） */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .btn {
        padding: 12px 25px;
        font-size: 18px;
    }

    header {
        font-size: 18px;
        padding: 15px;
    }

    .container {
        margin-top: 30px;
    }

    table {
        width: 100%;
    }

    table th, table td {
        padding: 10px;
    }
}
/* マイナスボタンの色を赤に設定 */
.remove-site {
    background-color: red !important;
    color: white !important;
    border: none !important;
}


@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .btn {
        width: 30%;
        padding: 15px;
        font-size: 20px;
    }

    header {
        font-size: 20px;
        padding: 20px;
    }

    .container {
        margin-top: 20px;
    }

    table {
        font-size: 14px;
    }

    table th, table td {
        padding: 8px;
    }
    .site-group{
        position: relative;
    }
    .add-site,
    .remove-site {
        width: 50px !important;
        height: 50px;
        position: absolute;
        right: 0%;
        top: 1px;
        transform: scale(0.4);
    }
    .btn {
        padding: 12px 25px;
        font-size: 16px;
        width: auto; /* 自動で幅を調整 */
    }

    .d-flex a, .d-flex button {
        font-size: 1rem;
        padding: 8px 16px;
    }
    select#company_info.form_control{
        width: 10px;
    }
    .big-btn{
        width: 60px!important;
        margin:20px auto;
    }
    #craft_name,
    #company_info{
        width: 90%;
        margin:0 auto;
    }
}

@media (max-width: 768px) {
    table {
        width: 100%;
        overflow-x: scroll; /* スクロール可能に */
        -webkit-overflow-scrolling: touch;
    }

    table th, table td {
        padding: 10px; /* 少し大きめに調整 */
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    table th, table td {
        padding: 8px; /* さらにコンパクトに */
        font-size: 12px;
    }

    /* 横スクロール対応のため、テーブル自体をスクロール可能に */
    table {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .btn {
        width: 40px; /* ボタンを全幅に広げる */
        padding: 2px;
        font-size: 13px;
    }
    .d-flex a, .d-flex button {
        font-size: 1rem;
        padding: 8px 4px;
    }
    .attendance-item{
        border-bottom: solid 1px black;
        padding: 20px 10px;
    }
    .card {
        width: 100%; /* 1列レイアウト */
    }
    .info-flex{
        width: 85%;
        margin:10% auto;
        text-align: left;
    }
    .info-flex h3{
        border-bottom: dotted 1px gray;
    }
    .info-flex p{
        padding: 5px;
        font-size: 12px;
    }
    .info-sub{
        color: gray;
        line-height: 0.5;
        text-align: left;
        border-top:dotted 1px;
        border-bottom:dotted 1px;
    }
    .contact_area{
        text-align: left;
        line-height: 2;
        width: 80%;
        margin:0 auto;
    }
    .contact_area form textarea{
        width:100%;
    }
    .short-table{
        margin:0 1%;
    }
    .short-table form select{
        width: 100px;
    }
}

@media (min-width: 769px) {
    .mobile-none{
        display: none;
    }
}
@media (max-width: 768px) {
    .pc-none{
        display: none;
    }
}
