/*
Theme Name: Kyogyo
Theme URI: 
Author: 
Author URI: 
Description: 軽量で高速なカスタムWordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyogyo

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
/* 方法1: thとtdの両方を非表示 */
.reservation-table th:first-child,
.reservation-table td:first-child {
    display: none;
}

input#swpm_password,
input#swpm_user_name {
    font-size: large;
    margin: 10px auto 20px;
}
input.swpm-login-form-submit.swpm-submit-btn-default-style {
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    width: 150px;
    margin: 20px auto;
    padding: 10px 20px;
    font-weight: bold;
    font-size: larger;
    border: 1px solid #2943b5;
    background: #0087ff;
    color: #fff;
    
    border-radius: 100vh;
    transition: 0.5s;
}
.swpm-registration-widget-form,
.swpm-login-widget-logged,
.swpm-login-widget-form,
.swpm-post-not-logged-in-msg {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: aliceblue;
    text-align: center;
}
.swpm-login-link{
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    width: 150px;
    margin: 20px auto;
    padding: 10px 20px;
    font-weight: bold;
    font-size: larger;
    border: 1px solid #3e869f;
    background: #58a2bb;
    color: #fff;
    
    border-radius: 100vh;
    transition: 0.5s;
}

.user-quota-row {
    background: #09618b!important;
    
}
#footer-menu li {
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    width: 180px;
    margin: 0 20px;
    padding: 3px 0; /* 上下のpaddingを増やす */
    font-weight: bold;
    background: #28426c;
    border: 2px solid #96acd1;
    color: #ffffff;
    font-size: small;
    transition: 0.5s;
}

#footer-menu li a {
    display: block; /* aタグをブロック要素にする */
    padding: 0px 0; /* クリック領域を拡大 */
    color: inherit; /* 親要素の色を継承 */
    text-decoration: none; /* 下線を消す */
}

#footer-menu li:hover {
    color: #fff;
    background: #27acd9;
}




/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Main Content Padding */
main {
    padding-top: 80px;
}

@media screen and (max-width: 768px) {
    main {
        padding-top: 60px;
    }
}

/* Responsive Container */
.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 2rem;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .site-branding {
    flex: 1;
    min-width: 0;
}

header .main-navigation {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

/* Header Styles */
.site-header {
    width: 100%;
    background-color: #32405c !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Adjust for admin bar */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Navigation Styles */
.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    height: 60px;
}

.site-title {
    display: flex;
    align-items: center;
    height: 100%;
    margin: auto;
}

#primary-menu {
    display: flex;
    align-items: center;
    height: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
}

#primary-menu a {
    text-decoration: none;
}

#primary-menu a:hover {
    text-decoration: none;
}

.site-title a {
    text-decoration: none;
}

.site-title a:hover {
    text-decoration: none;
}

/* Category Styles */
.category {
    width: 100%;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    background-color: #333;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: inline-block;
}
.top-page{
    max-width:900px;
}
.date {
    text-align: end;
}
.catname {
    float: left;
}
.top-page article {
    margin: 40px 0 60px;
}
h2.entry-title {
    font-size: 2em;
    color: #555;
    font-weight: 500;
}
/* Category Colors */
.category.category-1 { background-color: #ff4757; }
.category.category-2 { background-color: #2ed573; }
.category.category-3 { background-color: #1e90ff; }
.category.category-4 { background-color: #ffa502; }
.category.category-5 { background-color: #7bed9f; }
.category.category-6 { background-color: #70a1ff; }
.category.category-7 { background-color: #ff6348; }
.category.category-8 { background-color: #5352ed; }
.category.category-9 { background-color: #ff7f50; }
.category.category-10 { background-color: #2f3542; }

/* Footer Styles */
.site-footer {
    background-color: #32405c !important;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Add padding to main content to prevent footer overlap */
main {
    padding-bottom: 150px; /* Adjust this value based on your footer height */
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-navigation a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.footer-navigation a:hover {
    text-decoration: underline;
}

/* Responsive Table */
/* Responsive Table */
.reservation-table {
    width: 100%;
    border-collapse: collapse;
}

@media screen and (max-width: 768px) {
    .reservation-table {
        display: block;
        width: 100%;
    }

    .reservation-table thead {
        display: none;
    }

    .reservation-table tbody {
        display: block;
        width: 100%;
    }

    .reservation-table tr {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        padding: 0.5rem;
    }

    .reservation-table td {
        display: block;
        width: 100%;
        text-align: right;
        padding: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .reservation-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .reservation-table td:last-child {
        border-bottom: 0;
    }
}

@media screen and (max-width: 768px) {
    .quota-info .quota-row:nth-child(1) {
  /* ここに適用したいスタイルを記述 */
  font-size: 1.2em;
  font-weight: bold; /* 文字を太字に */
}
    .quota-info .quota-row {
  display: contents;
}
        .quota-info {
        font-size: 0.7em !important;
    }

    .cell-header {
    margin-bottom: 12px !important;
}
    .show-reservations-btn {
        padding: 0px 0px !important;
        display: block !important;
        position: absolute !important;
        right: 3px !important;
        background: #afdeff45 !important;
        width: 100% !important;
        top: 28px;
    }
    .reservation-table thead {
        display: none;
    }

    .reservation-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        padding: 0.5rem;
    }

    .reservation-table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border-bottom: 1px solid #eee;
    }

    .reservation-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .reservation-table td:last-child {
        border-bottom: 0;
    }
}

/* Responsive Breakpoints */

@media screen and (min-width: 769px) {
    /* 予約システム */
.user-quota-info {
    max-width: 250px;
}

button.menu-toggle {
    display: none;
}

#primary-menu li{
    display: block;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    width: 80px;
    margin: 3px;
    padding: 0px;
    font-weight: bold;
    border: 1px solid #3e869f;
    background: #29bff2;
    color: #fff;
    font-size: small;
    border-radius: 100vh;
    transition: 0.5s;
}

}



@media screen and (max-width: 768px) {
    #footer-menu li {
        
        margin: auto !important;
        
    }
    .main-navigation {
        position: relative;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 1rem;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1000;
    }

    .menu-toggle .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        position: relative;
    }

    .menu-toggle .hamburger::before,
    .menu-toggle .hamburger::after {
        content: '';
        width: 24px;
        height: 2px;
        background: #fff;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .menu-toggle .hamburger::before {
        top: -6px;
    }

    .menu-toggle .hamburger::after {
        top: 6px;
    }

    .menu-toggle.is-active .hamburger {
        background: transparent;
    }

    .menu-toggle.is-active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.is-active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    #primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #58a2bb;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        z-index: 999;
        height: auto;
        padding: 10px 0;
    }

    #primary-menu.is-visible {
        display: block;
    }

    #primary-menu li {
        display: block;
        text-align: center;
        margin: 5px 0;
    }

    #primary-menu a {
        display: block;
        padding: 12px;
        color: #fff;
        font-weight: bold;
        text-decoration: none;
        transition: background 0.3s ease;
    }

    #primary-menu a:hover {
        background: rgba(255,255,255,0.1);
    }

    .footer-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}