.body {
    overflow-x: hidden;
    background-color: #eeeeee;
}

body {
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
.hero{
    position:relative;
    height:100vh;
    overflow:hidden;
}

.hero-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-overlay{
    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    color:white;
    text-shadow:0 3px 12px rgba(0,0,0,.5);
}

.hero-number{
    font-size:1.2rem;
    letter-spacing:.4em;
}

.hero h1{
    font-family:"Zen Antique Soft", serif;
    font-size:6rem;
    font-weight:400;
}

.hero-school{
    margin-top:15px;
    font-size:1.2rem;
    letter-spacing:.2em;
}

.hero-fade{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:250px;

    background:linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        white
    );
}

.top-menu{
    width:min(1200px,90%);
    margin:70px auto;

    display:flex;
    justify-content:center;
    gap:24px;
    flex-wrap:wrap;
}

.menu-button{

    display:flex;
    justify-content:center;
    align-items:center;

    width:220px;
    height:58px;

    border-radius:999px;

    text-decoration:none;

    color:#333;
    font-weight:600;

    background:rgba(255,255,255,.75);
    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.9);

    box-shadow:
        0 8px 30px rgba(0,0,0,.08);

    transition:.35s;
}

.menu-button:hover{

    transform:translateY(-5px);

    background:white;

    box-shadow:
        0 15px 35px rgba(0,0,0,.15);

}

.news{

    width:min(1000px,90%);
    margin:auto;

}

.news h2{

    font-family:"Josefin Sans",sans-serif;

    font-size:3rem;

    margin-bottom:40px;

}

.news-item{

    border-bottom:1px solid #ffffff;
    padding:20px 0;

}

.news-item summary{

    cursor:pointer;

    list-style:none;

}

.news-item summary::-webkit-details-marker{
    display:none;
}

.news-item summary::after{

    content:"▼";

    float:right;

    transition:.3s;

}

.news-item[open] summary::after{

    transform:rotate(180deg);

}

.news-content{

    padding:20px 0 10px;
    line-height:2;

}

.main_title {
    background-image: url(/images/background.jpg);
    background-size: cover;
    padding: 120px 1.2rem 1.2rem 5rem;
    position: fixed;
    top: 1.3rem;
    width: 100%;
    font-family: "Zen Antique Soft", serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    h3 {
        font-size: 50px;
    }
    h1 {
        font-size: 130px;
    }
    p {
        font-size: 25px;
    }
}

.count_down {
    position: fixed;
    display: flex;
    justify-content: right;
    padding: 1rem 5rem 1rem 1rem ;
    width: 100%;
    font-family: "Zen Antique Soft", serif;
    font-weight: 400;
    
    .number {
        font-family: "Zen Antique Soft", serif;
        font-weight: 400;
        font-size: 400%;
        
    }
}

.strong-chara {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: inherit;
}

.large-chara {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    font-family: inherit;
}

.normal-chara {
    font-size: 1.0rem;
    font-family: inherit;
    font-weight: bold;
}

.class-select{
    border: 1px solid black;
    border-radius: 10px;
    padding: 0.3rem;
    margin: 0.2rem;
    font-size: 1rem;
    text-align: center;
}

.grade-title{
  margin-bottom:10px;
  padding-left:14px;
  border-left:8px solid #0b3962;
  color:#0b3962;
  font-size:1.6rem;
  font-weight:700;
}

@media(min-width: 481px) {

    /*画面幅が481px以上のときに適用されるCSS*/
    .body {
        overflow-x: hidden;
        background-color: #eeeeee;
    }

    .allpage {
        margin: 0 auto;
        padding-left: 10%;
        padding-right: 10%;
    }


    .header1 {
        margin: 0 auto;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 10%;
        background-color: #eeeeee;
        font-family: serif;
        font-size: 1.5rem;
        align-items: center;
        word-spacing: 0.2rem;
        position: relative;
    }

    .header2 {
        margin: 0 auto;
        font-family: serif;
        font-size: 2.0rem;
        font-weight: 500;
        width: 100%;
        background-color: #addded;
        padding-left: 10%;
        padding-top: 0.1rem;
        padding-bottom: 0.1rem;
    }

    .kunikousai2026 {
        font-weight: bold;
        word-spacing: 1.0rem;
        max-width: 1200px;
        font-family: serif;
    }

    .footercontainer {
        position: absolute;
        width: 100%;
        background-color: #addded;
        text-align: center;
        padding: 20px 0;
        z-index: 1000;
        margin-top: 20px;
    }

    .footertitle {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .strong-chara {
    font-weight: 750;
    }

    /*以下ログイン、ログアウト関連*/
    .login-container {
        position: relative;
        align-items: center;
    }

    .mypage .normal-chara{
    font-weight: normal;
    line-height: 1.8;
    }

    .page-title {
      margin-bottom:20px;
      padding-left:14px;
      border-left:8px solid #0b3962;
      color:#0b3962;
      font-size:1.6rem;
      font-weight:700;
    }

    .marker {
     background: linear-gradient(transparent 65%, #bcc6fd 65%);
     font-weight: 600;
    }

    .text-link {
      color: #0f4c81;
      text-decoration: underline;
    }

    .text-link:hover {
      color: #00448d;
    }

    .reception-numberbox {
        border: 1px solid black;
        border-radius: 10px;
        background-color: #ffffff;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .login-button {
        background-color: #0f4c81;
        color: white;
        border: 2px solid rgb(255, 255, 255);
        border-radius: 10px;
        padding: 0.5rem 1rem;
        margin-top: 2rem;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .guestinfocard-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: left;
        max-width: 100%;
        padding: 0.5rem;
        padding-top: 1rem;
        gap: 20px;
        overflow-x: auto;
        -ms-overflow-style: none;
        /* IE, Edge */
        scrollbar-width: none;
        /* Firefox * でスクロールバーを非表示に*/
    }

    .guestinfocard {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.3);
        width: 15rem;
        padding: 1rem;
        flex-shrink: 0;
    }

    .guestinfocard{
    overflow: hidden;
    border-radius: 16px;
}

.guestinfo-value{
    font-weight:600;
    color:#333;
}

.guestinfocard-header{
    background:#0f4c81;
    color:#fff;
    font-size:1.2rem;
    font-weight:700;
    text-align:center;
    padding:14px;
}

.guestinfocard-body{
    padding: 20px;
}

.kuniidQR{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.guestinfo-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}

.guestinfo-label{
    font-weight: bold;
    color: #0f4c81;
}

.guestinfo-tag{
    background: #0f4c81;
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .9rem;
}

    /*class=guestinfocard-wrapperの子要素にclass=guestinfocardを適用するとこのCSSが適用できます
            例) <div class="guestinfocard-wrapper">
                    <div class="guestinfocard">...</div>
                </div>
                ただし、kuni-id-overview要素の中で繰り返す(php while())こと*/

    .kuni-id-detail-button {
        background-color: #0f4c81;
        color:white;
        border: 1px solid #0f4c81;
        border-radius: 10px;
        padding: 0.25rem 0.8rem;
        margin-top: 10px;
        font-size: 0.8rem auto;
        width: auto;
        cursor: pointer;
    }

    .kuni-id-overview-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: left;
        gap: 20px;
        max-width: 100%;
        padding: 0.5rem;
        overflow-x: auto;
        -ms-overflow-style: none;
        /* IE, Edge */
        scrollbar-width: none;
        /* Firefox * でスクロールバーを非表示に*/
    }

    .kuni-id-overview-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .kuni-id-overview {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.3);
        width: 15rem;
        padding: 1rem;
        flex-shrink: 0;
    }

    .kuni-id-overview-text {
        font-family: arial, sans-serif;
    }

    .header1menu-wrapper-for-pc {
       flex-wrap: nowrap;
       display: flex;
        font-size: 1rem;
        font-weight: bold;
        font-family: sans-serif;
        margin: 0 auto;
        text-align: left;
        justify-content: flex-start;
        /* 左寄せ */
        gap: 15px;
        /* メニュー同士の間隔（必要なら調整） */
    }

    .logout-button {
        border: 2px solid #0f4c81;
        border-radius: 5px;
        background-color: #0f4c81;
        font-family: arial;
        color: white;
        padding: 0.3rem;
        position: absolute;
        right: 0;
        margin-right: 13%;
        margin-top: 1rem;
        appearance: none;
        -ms-progress-appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
    }

    .header1menu-wrapper-for-mobile,
    .nav_item,
    .nav_list {
        display: none;
    }

    ul {
list-style-type: circle; /* 四角形マーカー */
}

.labelforkuniid{
    position: relative;
    left: 15%;
}

.input-field {
    position:relative;
    left: 15%;
    width: 40%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background-color: white;
    border: 2px solid #0f4c81;
    color: #0f4c81;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;;
    margin-right: 10%;
    margin-left: 15%;
}

.guestinfo-container{
    margin-top: 1rem;
    text-align: center;
    white-space: nowrap;
}

.cf-turnstile{
    margin-left: 4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    height: 2rem;
}

.qrreader{
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.read-start{
    color: white;
    font-weight: 500;
    background-color: #3399bb;
    padding: 0.4rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.read-stop{
    color: white;
    font-weight: 500;
    background-color: #bb9933;
    padding: 0.4rem;
    border-radius: 0.5rem;
}

.numtictable-container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.num_tic_table{
    border: 1px solid black;
    border-collapse: collapse;
    margin: 0.5rem;
    width: 48%;
}

tr{
border: 1px solid black;
    border-collapse: collapse;
}
th{
    border: 1px solid black;
    border-collapse: collapse;
    padding: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
td{
    border: 1px solid black;
    border-collapse: collapse;
    padding: 1rem;
}
}

/* ==========================================
   FAQ
========================================== */

.faq-list {
    margin-top: 10px;
    margin-bottom: 70px;
}

.faq-item {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    padding: 18px 22px;

    font-weight: 600;
    color: #222;

    transition: .2s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: #f7fbff;
}

.faq-question {
    line-height: 1.6;
}

.faq-arrow {
    flex-shrink: 0;
    color: #0f4c81;
    font-size: .9rem;
    font-weight: bold;
    transition: .25s;
}

/* 開いたとき矢印を上下反転 */
.faq-item[open] .faq-arrow {
    transform: scaleY(-1);
}

/* 回答 */
.faq-answer {
    padding: 18px 22px 20px;
    border-top: 1px solid #ececec;
    background: #fcfcfc;
}

.faq-answer p {
    margin: 0;
    color: #333;
    line-height: 1.9;
}

/* スマホ */
@media (max-width: 768px) {

    .faq-list {
        margin-bottom: 50px;
    }

    .faq-item summary {
        padding: 16px;
        gap: 12px;
    }

    .faq-question {
        font-size: .95rem;
        line-height: 1.6;
    }

    .faq-answer {
        padding: 16px;
    }

    .faq-answer p {
        font-size: .93rem;
        line-height: 1.8;
    }

    .faq-arrow {
        font-size: .8rem;
    }
}


@media(max-width: 480px) {
    /*画面幅が480px以下のときに適用されるCSS*/

    .body {
        overflow-x: hidden;
        margin: 10px;
        padding: 10px;
        background-color: #eeeeee;
        font-family: arial, serif;
    }

    .normal-chara {
        font-size: 1.0rem;
        font-family: inherit;
        font-weight: bold;
    }

    .allpage {
        margin: 0 auto;
        padding-left: 2%;
        padding-right: 2%;
    }

    .header1menu-wrapper-for-pc {
        display: none;
    }

    .header1 {
        padding-top: 0.20rem;
        padding-bottom: 0.20rem;
        padding-left: 2%;
        background-color: #eeeeee;
        font-family: serif;
        font-size: 1.5rem;
        align-items: center;
        word-spacing: 0.2rem;
    }

    .header2 {
        margin: 0 auto;
        font-family: serif;
        font-size: 1.2rem;
        font-weight: bold;
        width: 100%;
        background-color: #addded;
        padding-left: 2%;
        padding-top: 0.15rem;
        padding-bottom: 0.15rem;
    }

    .kunikousai2026 {
        font-weight: bold;
        word-spacing: 1.0rem;
        max-width: 1200px;
        font-family: serif;
    }

    .footercontainer {
        width: 100%;
        background-color: #addded;
        text-align: center;
        padding: 20px 0;
        position: absolute;
        margin-top: 20px;
    }

    .footertitle {
        font-size: 1rem;
        font-weight: bold;
    }

    /*以下ログイン、ログアウト関連*/
    .login-container {
        position: relative;
    }

    .text-link {
      color: #0f4c81;
      text-decoration: underline;
    }

    .text-link:hover {
      color: #00448d;
    }

    .reception-numberbox {
        border: 1px solid black;
        border-radius: 10px;
        background-color: #ffffff;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .login-button {
        background-color: #0f4c81;
        color:white;
        border: 2px solid #0f4c81;
        border-radius: 10px;
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        margin-top: 2rem;
    }


    .guestinfocard-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: left;
        max-width: 100%;
        padding: 0.5rem;
        padding-top: 1rem;
        margin-top: 2rem;
        margin-bottom: 2rem;
        gap: 20px;
        overflow-x: auto;
        -ms-overflow-style: none;
        /* IE, Edge */
        scrollbar-width: none;
        /* Firefox * でスクロールバーを非表示に*/
    }

    .guestinfo-value{
    font-weight:600;
    color:#333;
   }

    .guestinfocard {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.3);
        width: auto;
        padding: 1rem;
        flex-shrink: 0;
    }

    .guestinfocard{
    overflow: hidden;
    border-radius: 16px;
}

.guestinfocard-header{
    background:#0f4c81;
    color:#fff;
    font-size:1.2rem;
    font-weight:700;
    text-align:center;
    padding:14px;
}

.mypage .normal-chara{
    font-weight:normal;
    line-height:1.8;
}

.marker{
    background:linear-gradient(transparent 65%, #bcc6fd 65%);
    font-weight:600;
}

.guestinfocard-body{
    padding:18px;
}

.kuniidQR{
    display:flex;
    justify-content:center;
    margin-bottom:18px;
}

.guestinfo-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:12px;
}

.guestinfo-label{
    font-weight:bold;
    color:#0f4c81;
}

.guestinfo-tag{
    background:#0f4c81;
    color:#fff;
    padding:4px 10px;
    border-radius:999px;
    font-size:.85rem;
}

    .kuni-id-detail-button {
        background-color: #0f4c81;
        color:white;
        border: 1px solid #0f4c81;
        border-radius: 10px;
        padding: 0.2rem 0.5rem;
        margin: 10px;
        font-size: 0.9rem auto;
        cursor: pointer;
        white-space: nowrap;
        display: flex;
        justify-content: center;
        font-family: arial;
        font-weight: 600;
    }

    .kuni-id-overview-text {
        font-family: arial;
        display: flex;
        justify-content: center;
        font-weight: bold;
    }

    .kuni-id-overview-wrapper {
        display: flex;
        flex-wrap: nowrap;
        justify-content: left;
        gap: 30px;
        max-width: 100%;
        padding: 0.3rem;
        overflow-x: auto;
        -ms-overflow-style: none;
        /* IE, Edge */
        scrollbar-width: none;
        /* Firefox * でスクロールバーを非表示に*/
    }

    .kuni-id-overview-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari */
    }

    .kuni-id-overview {
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        width: 30vw auto;
        padding: 1rem;
        flex-shrink: 0;
        font-size: 1.0rem;
    }

    .logout-button {
        border: 2px, solid, #0f4c81;
        color: white;
        border-radius: 5px;
        background-color: #0f4c81;
        font-family: arial;
        color: white;
        padding: 0.3rem;
        position: absolute;
        right: 0;
        margin-right: 2%;
        margin-top: 1rem;
        appearance: none;
        -webkit-appearance: none;
        -ms-progress-appearance: none;
        cursor: pointer;
    }

    .drawer_open {
        display: block;
        width: 30px;
        padding: 5px;
    }

    .nav_content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border-radius: 10px;
        border-color: #333;
        border-width: 2px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        display: none;
        /* 初期は非表示 */
        z-index: 9999;
        width: 70vw;
        height: auto;
    }

    #nav_content.active {
        display: block;
        border-radius: 10px;
        border: 1px solid #999;
    }

    #nav_content.inactive{
        display: none;
    }

    .drawer_open span {
        position: absolute;
        height: 4px;
        width: 30px;
        background: #333;
        transition: 0.3s ease;
        margin-top: 10px;
        margin-left: 80%;
        padding-top: 2px;
    }

    /* 各線の位置 */
    .drawer_open span:nth-child(1) {
        top: 0;
    }

    .drawer_open span:nth-child(2) {
        top: 9px;
    }

    .drawer_open span:nth-child(3) {
        top: 18px;
    }

    body.modal-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
    }


    .nav_close{
        position: absolute;
        right: 5%;
        cursor: pointer;
    }

    .nav_item{
        font-family: sans-serif;
        font-size: 1rem;
        font-weight: bold;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
    }

    ul {
list-style-type: circle; /* 四角形マーカー */
}

.labelforkuniid{
    margin-left: 0.2rem;
}

.input-field {
    width: 50%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    margin-left: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background-color: white;
    border: 2px solid #0f4c81;
    color: #0f4c81;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 1.0rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 0;
    margin-right: 10%;
}

.cf-turnstile{
    margin-left: 4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    height: 2rem;
}

.qrreader{
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

}

.read-start{
    color: white;
    font-weight: 500;
    background-color: #3399bb;
    padding: 0.4rem;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.read-stop{
    color: white;
    font-weight: 500;
    background-color: #bb9933;
    padding: 0.4rem;
    border-radius: 0.5rem;
}

.numtictable-container{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
.num_tic_table{
    border: 1px solid black;
    border-collapse: collapse;
    margin: 0.5rem;
    width: 100%;
}

tr{
border: 1px solid black;
    border-collapse: collapse;
}
th{
    border: 1px solid black;
    border-collapse: collapse;
    padding: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
td{
    border: 1px solid black;
    border-collapse: collapse;
    padding: 1rem;
}

}

@media print{
    .for-print{
        display: flex;
        flex-wrap: wrap;
        overflow-x: hidden;
    }
}
