@charset "UTF-8";
/* 共通処理 */
body{
    font-family: "Zen Kaku Gothic New", "游ゴシック", "YuGothic", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", Helvetica, Arial, Verdana, sans-serif;
    color: #333;
    font-weight: 500;
    overflow-x: hidden;
}
ul{
	list-style: none;
    margin: 0;
    padding: 0;
}
h3{
    border-bottom: 1px solid #dbdbdb;
    font-size: 24px;
    color: #e59139;
    margin-top: 44px;
}
/* ヘッダー */
.header{
    position: relative;
    background-color: #ffffff;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    z-index: 10;
    top: 0;
    left: 0;
}
.header-contents{
    padding: 0 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
@media screen and (max-width: 768px){
    .header-contents{
        display: block;
        text-align: center;
        padding: 0;
    }
    .title_name{
        margin: 0 auto;
    }
    .title_name a {
        display: inline;
    }
    .pcmenu{
        display: none;
    }
}

.userinfo{
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    margin-bottom: 15px;
}
.logoutbutton{
    position: absolute;
    top: -62px;
    right: 2%;
    z-index: 10;
}
.logoutbutton a{
    text-decoration: none;
    border: 1px solid;
    padding: 13px;
    border-radius: 10px;
    transition: 0.3s;
    color: #c52946;
}
.logoutbutton a:hover{
    color: #ffffff;
    background-color: #c52946;
}
/* ログイン画面 */
#wpmem_login legend, #wpmem_reg legend {
    margin-bottom: 45px !important;
}
#wpmem_login {
    margin: 0 auto;
}
#wpmem_restricted_msg {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}
#wpmem_login_form .div_text{
	margin: 0 0 40px 0 !important;
}
#wpmem_login .form, #wpmem_reg .form {
    margin: 0 auto;
}
.wpmem_msg {
    width: 100% !important;
    margin: 0 auto;
    padding: 20px 10px !important;
}
#rememberme{
	display: none;
}
#wpmem_login_form .button_div label{
	display: none;
}
#wpmem_login .button_div {
    padding: 6px 0;
    text-align: center !important;
}
#wpmem_login .button_div .buttons{
    padding: 10px 20px;
    
}
/* 固定ページ */
.pagetop {
    width: 100%; /* 横幅を画面幅に合わせる */
    object-fit: cover;
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; スクロール時に背景を固定 */
    position: relative;
    z-index: 1;
    height: 180px;
}
.pagetop:before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 黒みがかった背景色 */
    z-index: -1;
}
.page-title{
    font-size: 38px;
    padding: 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.page-sec{
    background-color: #eeeeee;
    padding: 20px;
    width: 100%;
    /* height: calc(100vh - 110px); */
}
.page-sec section{
    background-color: #ffffff;
    padding: 35px;
    margin: 0 auto;
    box-shadow: 10px 5px 5px #bcbcbcde;
    text-align: left;
}
.page-sec .side{
    max-width: 250px;
    width: 80%;
    padding: 16px;
    background-color: #ffffff;
    margin: 50px 0;
}
.side .detail_cart{
    width: 100%;
    height: auto;
}
.side table{
    width: 100% !important;
}
@media screen and (max-width: 768px){
    .page-sec section {
        width: 100%;
        padding: 30px;
        margin: 0;
    }
    .page-sec{
        display: block;
    }
    .page-sec .side {
        max-width: 100%;
        width: 100%;
        padding: 30px;
        margin: 50px 0;
    }
    .sidebar{
        width: 375px;
        margin: 0 auto;
    }
}


/* 問い合わせフォームCSS */
.contact-input input{
    width: 100%;
    height: 36px;
    font-size: 18px;
}
.con-message,textarea{
    width: 100% !important;
    /* font-size: 18px;  */
}
.con-submit input{
    background-color: rgb(235, 235, 235);
    transition: 0.2s;
    border: 1px solid;
    padding: 5px 0;
    cursor: pointer;
    width: 100%;
    height: 60px;
    font-size: 18px;
}
.con-submit input:hover{
    background-color: white;
}
.wpcf7 form.sent .wpcf7-response-output {
    max-width: 700px;
    font-size: 20px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 30px;
}

/******************************/
/** コンタクトフォームの装飾 **/
/******************************/
/*　フォーム全体　*/
#cf7-area {
    width:100%;
    margin: 0 auto;
    font-family: "遊ゴシック","ヒラギノ角ゴ","メイリオ","MS Pゴシック",sans-serif;
}
.cf7-item {
    /* display: flex; */
    /* align-items: flex-start;
    justify-content: space-between; */
    margin: 0 0 1.75em;
}
.cf7-q {
    width: 30%;
    margin: 0 0 0 10px;
}
.cf7-a {
    width: 100%;
}

/* 各項目共通 */
#cf7-area label{
    font-weight:bold;
}
#cf7-area input[type="text"],#cf7-area input[type="email"],#cf7-area input[type="tel"],#cf7-area textarea {
    background: #F0F8FF;
    width: 90%;
    margin-left:10px;
    font-size: 18px;
    height: 30px;
    border: 1px solid;
}
#cf7-area input[type="text"]:focus,#cf7-area input[type="email"]:focus,#cf7-area input[type="tel"]:focus,#cf7-area textarea:focus {
    background: #FFE4E1;
    border: 1px solid #FF1493;
    outline: 0;
}
#cf7-area input[type="checkbox"], #cf7-area input[type="radio"]{
    appearance: auto;
}
#cf7-area .wpcf7-list-item {
    display: block;
    flex-basis: 33%;
}
.cf7-accept-check{
    text-align: center;
    margin: 50px auto;
}
.cf7-submit{
    margin: 18px 0;
}
.wpcf7-radio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
#cf7-area input[type="submit"]{
    width: 120px;
    background-color: #191970;
    color: #ffffff;
    border-radius: 5px;
    font-size: 1.2em;
    padding: 14px 10px;
    border: 1px solid;
}
#cf7-area input[type="submit"]:hover{
    background-color:#ffffff;
    border: 1px solid #191970;
    color:#191970;
}

#cf7-area input[type="button"]{
    width: 200px;
    background-color: #949494;
    color: #ffffff;
    border-radius: 5px;
    font-size: 1em;
    padding: 14px 10px;
    border: 1px solid;
}
#cf7-area input[type="button"]:hover{
    background-color:#ffffff;
    border: 1px solid #191970;
    color:#191970;
}

.cf7-btn{
    width: 40%;
    margin: 0 auto;
    text-align: center;
}
    
/*　必須ラベル　*/
.cf7-req{
    font-size:.8em;
    padding: 4px 6px;
    background: #eb2a2a;
    color: #ffffff;
    margin-left: 10px;
    display:inline-block;
}
@media screen and (max-width:768px){
    .cf7-item {
        display: block;
    }
    #cf7-area label{
        display: block;
        margin-bottom: 10px;
    }
    .cf7-q {
        width: 100%;
        margin: 0;
    }
    .cf7-a {
        width: 100%;
    }
    #cf7-area input[type="text"], #cf7-area input[type="email"], #cf7-area input[type="tel"], #cf7-area textarea{
        margin-left: 0;
    }
    #cf7-area .wpcf7-list-item {
        flex-basis: 100%;
    }
}

#wpmem_login {
    max-width: 650px !important;
}
.nodisplay{
    display: none;
}



.students-list{
    margin:0 30px;
}
/* ================= ヘッダーメニューCSS ================= */
nav.top-menu {
    display: flex;
    justify-content: center;
    text-align: center;
    min-width: 540px;
    max-width: 1400px;
    margin: 0 auto;
}

nav.top-menu .menu-item-nav {
    position: relative;
    width: 100%;
    border: 1px solid #eeeeee;
    max-width: 300px;
}

nav.top-menu .menu-title-nav {
    cursor: pointer;
    font-weight: 600;
    padding: 8px 12px;
    display: block;
    background: #fcb90017;
}

nav.top-menu .menu-title-nav:hover {
    background: #ffe18f;
}

/* submenu は最初非表示 */
nav.top-menu .submenu-nav {
    display: none;
    position: absolute;
    top: 100%; /* メニューの下 */
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    z-index: 10;
    width: 100%;
    text-align: left;
}

nav.top-menu .submenu-nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

nav.top-menu .submenu-nav a:hover {
    background: #ffe18f;
}

/* ================= トップページ画面CSS ================= */
.layout {
    display: flex;
    min-height: 100vh;
}

/* サイドバー */
.sidebar {
    width: 260px;
    background: #c52946;
    padding: 20px 15px;
}

.logo {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-align: center;
}

.user-box {
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

.user-box .logout {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    text-decoration: none;
}

/* メニュー */
.menu-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #6d6464;
}

.menu-toggle {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    border-radius: 6px;
}

.menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.submenu {
    display: none;
    padding-left: 40px;
}

.submenu a {
    display: block;
    padding: 6px 0;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.submenu a:hover {
    color: #71fbe9;
}

.menu-toggle {
    cursor: pointer;
}

/* 単独リンク */
.single-link {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

.single-link:hover {
    background: rgba(255,255,255,0.1);
}

/* メイン */
.content {
    margin-left: 260px;
    padding: 30px;
    width: 100%;
}

/* SP */
@media (max-width: 768px) {
    .layout {
        display: block;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    .content {
        margin-left: 0;
    }
}




/* ================= 追加画面CSS ================= */
.form-section {
    background: #fff4e6; /* 薄いオレンジ */
    padding: 40px 20px;
}

.section-div {
    max-width: 720px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section-div h2 {
    margin-bottom: 20px;
    border-left: 6px solid #ff9f43;
    padding-left: 12px;
    font-size: 20px;
    color: #333;
}

.success-message {
    background: #e9fbe9;
    color: #1b7a1b;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}
.fatal-message {
    background: #e9fbe9;
    color: red;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}

.form-block {
    margin-bottom: 30px;
}

.form-row {
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row label {
    font-weight: 600;
    color: #444;
}

.form-row-ng {
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input[type="text"],
.form-row input[type="file"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row textarea,
.form-row select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: 100%;
    background: #fcb90017;
}

.select-with-button {
    display: flex;
    gap: 8px;
}

.select-with-button select {
    flex: 1;           /* selectを横いっぱいに */
}

.select-with-button button {
    white-space: nowrap; /* 改行防止 */
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}


.mod-ng  input[type="text"],
.mod-ng input[type="file"] {
    background: #2b2b2b17 !important;
}

.form-row input[type="text"]:focus,
.form-row input[type="file"]:focus {
    outline: none;
    border-color: #ff9f43;
    box-shadow: 0 0 0 2px rgba(255,159,67,0.2);
}

.submit-btn {
    grid-column: 2 / 3;
    background: #ff9f43;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.submit-btn:hover {
    background: #ff8c1a;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}



/* ================= 一覧画面CSS ================= */
.list{
    padding-left: 20px;
    min-width: 850px;
}
.list h2{
    margin-bottom: 20px;
    border-left: 6px solid #ff9f43;
    padding-left: 12px;
    font-size: 20px;
    color: #333;
}

.table-wrapper {
    /* height: calc(100vh - 303px); */
    overflow-x: auto;
    overflow-y: auto;
    /* scrollbar-gutter: stable both-edges; */
    max-width: 100vw;
    max-height: 100vh;
}

/* テーブル全体 */
.table-list {
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    /* overflow: hidden; */
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    margin-right: 30px;
}
/* 大学テーブル幅 */
.table-list.university-list{
    width: 1400px;
}

.table-list.entry-list{
    width: 2600px;
}
.table-list.facility-list{
    width: 2000px;
}
.table-list.order-list{
    width: 2000px;
}

/* ヘッダ */
.table-list thead th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
}

/* ボディ */
.table-list tbody td {
    padding: 10px 6px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9rem;
}

/* 最終行の線を消す */
.table-list tbody tr:last-child td {
    border-bottom: none;
}

/* 行ホバー */
.table-list tbody tr:hover {
    background: #fef3e7;
}

/* 操作列 */
.table-list .actions {
    white-space: nowrap;
}

/* 編集ボタン */
.btn-edit {
    display: inline-block;
    padding: 5px 12px;
    background: #2f599f;
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    margin-right: 6px;
    transition: 0.2s;
}

.btn-edit:hover {
    opacity: 0.85;
}

/* 削除ボタン */
.btn-delete {
    display: inline-block;
    padding: 5px 12px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.2s;
}

.btn-delete:hover {
    opacity: 0.85;
}
/* テーブルのヘッダー固定 */
.table-list thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f9fafb; /* 必須：透け防止 */
}


/* ================= 編集画面の検索欄CSS ================= */
.search-form {
    background: #f0f0f0; /* 薄いグレー */
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px; /* 入力欄の間隔 */
    max-width: 1180px;
    min-width: 1400px;

}
.search-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-width: 100vw;
    max-height: 100vh;
    margin-bottom: 35px;
}

/* 入力欄 */
.search-form input[type="text"],
.search-form input[type="date"],
.search-form input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    flex: 1 1 150px; /* 横幅自動調整、最小150px */
    min-width: 120px;
}

/* 日付の「〜」を中央揃え */
.search-form span {
    font-weight: bold;
    margin: 0 5px;
}

/* ボタン共通 */
.search-form button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* 検索ボタン */
.search-form button[type="submit"] {
    background: #4a90e2;
    color: #fff;
}

.search-form button[type="submit"]:hover {
    background: #357abd;
}

/* リセットボタン */
.search-form a button {
    background: #e0e0e0;
    color: #333;
}

.search-form a button:hover {
    background: #ccc;
}


/* ================= 抽選実行画面CSS ================= */
/* 全体カード風 */
.lottery-list {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* メッセージ */
.lottery-list .message {
    padding: 12px 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    color: #155724;
}

/* 見出し */
.lottery-list h3 {
    margin-bottom: 10px;
    color: #343a40;
    border-left: 4px solid #213a95;
    padding-left: 10px;
    font-size: 1.1rem;
    margin-top: 32px;
}

/* ボタン */
.lottery-list .button {
    padding: 10px 18px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.lottery-list .button-primary {
    background-color: #007bff;
    color: #fff;
}

.lottery-list .button-primary:hover {
    background-color: #0056b3;
}

.lottery-list .button {
    background-color: #6c757d;
    color: #fff;
}

.lottery-list .button:hover {
    background-color: #495057;
}

/* hrのスタイル */
.lottery-list hr {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 20px 0;
}

/* ==================モーダル画面================== */
.modal {
    display:none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    padding-top: 80px;
    z-index: 1000; 
}
.modal-content {
    background:white;
    margin:auto;
    padding:20px;
    width:90%;
    max-width:1000px;
    max-height: 80vh;
    overflow-y: auto;
}
.close {
    float:right;
    font-size:28px;
    cursor:pointer;
}
.facility-table {
    width:100%;
    border-collapse: collapse;
}
.facility-table th, .facility-table td {
    padding:8px;
    border:1px solid #ccc;
    text-align:left;
}
.modal button[type="button"] {
    background: #4a90e2;
    color: #fff;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal button[type="button"]:hover {
    background: #357abd;
}
