* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}
:root {
    --color-primary: #0071B0;
    --color-text-base: #333;
    --color-bg-light: #f4f4f4;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
}
html{
    scroll-behavior:smooth;
}
body {
    margin:0;
    padding:0;
    box-sizing: border-box;
    background-color: var(--color-bg-light);
    color: var(--color-text-base);
    font-family: "Segoe UI", "Meiryo", "Hiragino Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.2em;
    overflow-x:hidden;
    width:100vw;
}
header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:90;
}
.header-inner{
    padding:2vh 3vw; 
    width: 100%;
    box-sizing: border-box;
}
.header-inner img{
    width:200px;
    height:50px;
}
nav{
    box-sizing:border-box;
    width:100%;
    position:fixed;
    right:0;
    text-align:right;
    z-index:100;
    margin-top:-100px;
    pointer-events: none;
    max-width:500px;
}
.nav-link{
    color: #333;
    transition: color 0.3s ease;
}
.header-innerr{
    margin-top:80px;
    position:absolute;
    top:0;
    right:-100%;
    opacity:0.9;
    box-sizing:border-box;
    padding:3vh 2vw; 
    width:100%;
    min-width:250px;
    max-width:60%;
    display:grid;
    gap:15px;
    grid-template-columns:1fr;
    justify-items: center;
    margin-left:0;
    background:#aaa;
    pointer-events: auto !important;
}
.header-innerr a{
    display:block;
    box-sizing:border-box;
    width:210px;
    max-width: 100%;
    margin:0px;
    padding:5px 5px;
    text-align:center;
    background-image:linear-gradient(to right,#333 50%,#fff 50%);
    background-size:202% 100%;
    background-position:right center;
    transition:background-position 0.2s ease-out;
    border:none;
}
.nav-link:hover {
  background-position:left center;
  color:#fff;
}
.nav-link.active{
  background-position:left center;
  color:#fff;
}
.body{z-index:100;}
.bg{
    box-sizing:border-box;
    z-index:0;
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    pointer-events:none;
}
.bubble {
    position: absolute;
    bottom: 0; 
    width:5vh;
    height:5vh;
    background: rgba(205, 205, 205, 0.5);
    border-radius: 50%;
    -webkit-animation: moveUp 10s linear infinite;
    animation: moveUp 10s linear infinite;
}
@keyframes moveUp {
    0% {
        transform: translateX(0) translateY(0vh) scale(0.5); 
        opacity: 0;
    }
    50% {
        transform: translateX(25px) translateY(-50vh) scale(1.0); 
        opacity: 1.0;
    }
    100% {
        transform: translateX(50px) translateY(-100vh) scale(0.5); 
        opacity: 0;
    }
}
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease-out;
}
a:hover {
    color: var(--color-primary-dark);
}
.content-wrapper {
    position: relative;
    max-width:1200px;
    margin:100px auto 5vh auto;
    padding:0 20px;
    display:grid;
    z-index:2;
}
.cyn{background:#00aeff;filter:saturate(120%) contrast(110%);}
.mgt{background:#ff00ff;filter:saturate(120%) contrast(110%);}
.ylw{background:#ffd400;filter:saturate(120%) contrast(110%);}
.blk{background:#22283A;filter:saturate(120%) contrast(110%);}
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    margin-top:-5vh;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.footer-nav a {
    color: #ccc;
    margin: 0 10px;
}
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
.modern-top {
    width: 100%;
    overflow-x:hidden;
}
#navi{display:none;}
.left-top, .right-top{
    position: static;
    width:100%;
}
.left-top{
    max-height: calc(100vh - 90px);
}
@keyframes leftUp{
    0% {
        opacity:1;
        transform:translateX(0);
    }
    100% {
        transform:translateX(-100%);
        opacity:0;
    }
}
@keyframes leftUpr{
    0% {
        opacity:0;
        transform:translateX(0);
    }
    100% {
        transform:translateX(-100%);
        opacity:1;
    }
}
#right-topr {
    position:absolute;
    box-sizing: content-box;
    left:100%;
    width:100%;
    display:none;
}
#right-topr.is-visible {
    animation:leftUpr;
    animation-delay:0s;
    animation-duration:0.5s;
    transform:translateX(-100%);
    opacity:1;
}
#right-top.is-visible {
    animation:leftUp;
    animation-delay:0s;
    animation-duration:0.5s;
    transform:translateX(-100%);
    opacity:0;
}
.modern-form {
    display:flex;
    flex-direction: column;
    max-width:100%;
    min-height:100px;
    margin:0 auto 3vh auto;
    padding: 30px;
    background: #fff;
    pointer-events: auto !important;
    z-index:999;
}
.form-group {
    position: relative;
    margin-bottom: 30px;
}
.form-input {
    width: 100%;
    padding:10px 5px;
    border: none;
    border-bottom: 2px solid #ddd;
    font-size: 16px;
    color: #333;
    background: none;
    outline: none;
    transition: all 0.3s ease;
}
.textarea-group {
    position: relative;
    flex-grow: 1; 
    margin-bottom: 0;
    display:flex;
    flex-direction: column;
    height:20vh;
}
.textarea-group .form-input {
    width: 100%;
    flex-grow: 1;
    min-height:30%;
    max-height:100%;
    resize: none;
}
.form-label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #888;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 16px;
}
.textarea-group .form-label {
    flex-shrink: 0;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -20px;
    font-size: 12px;
    color: #666;
}
.form-input:focus {
    border-bottom-color: #666;
}
.submit-btn {
    margin-top:10px;
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 0.8;
}
.submit-btn:hover {
    opacity: 1;
}
#err1{display:none;color:#ff0000;}
#err2{display:none;color:#ff0000;}
#err3{display:none;color:#ff0000;}


h1 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 25px;
}
h2 {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.form-section {
    margin-bottom: 5px;
}
.section-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.date-time-group {
    display: flex;
    gap: 5px;
}

.custom-select-wrapper {
    position: relative;
    flex-grow: 1;
}
.custom-select-wrapper select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    
    width: 100%;
    padding: 5px 20px 5px 5px;
    border: 1px solid #888;
    border-radius: 6px;
    background-color: #fff;
    font-size: 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.custom-select-wrapper select:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    outline: none;
}
.custom-select-wrapper::after {
    content: '▼';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    transition: color 0.3s;
}

.topimg{
    max-width:100%;
    height:auto;
    margin-bottom: 25px;
}

.grid-table {
    grid-template-columns: 1fr 5px 1fr 1fr 5px 1fr 1fr 5px 1fr 1fr;
    align-items: center;
}
.grid-table2 {
    grid-template-columns: 20fr 80fr;
    align-items: center;
}
.grid-table3 {
    grid-template-columns: 40fr 60fr;
    text-align:right;
}
.grid-table4 {
    grid-template-columns: 25fr 25fr 25fr 25fr;
    margin:10px 0;
}
.grid-table, .grid-table2, .grid-table3, .grid-table4, .grid-table5{
    display: grid;
    grid-template-rows: auto;
    gap: 1px;
    width: 100%;
}
.grid-table5 {
    grid-template-columns:1fr 1fr;
    gap:0 10px;
}
.grid-table > div, .grid-table2 > div, .grid-table4 > div, .grid-table5 > div{
    box-sizing: border-box;
    padding: 10px 0 10px 0;
    text-align: center;
    letter-spacing: 0em;
}
.bold {
    font-weight: bold;
    font-size: 1.0em;
}
.bolds {
    font-weight: bold;
    font-size: 1.0em;
    text-align: center;
    margin-bottom:20px;
}
.ggd0{background:#bbddff;color:#181818;}
.ggd1{background:#ffcccc;color:#181818;}
.ggd2{background:#ffffbb;color:#181818;}
.ggd3{background:#fff;color:#181818;border: 1px solid #ccc;}
.ggd4{background:#888;color:#fff;}
.g5{padding:3px;}
.g6{padding-left:15px;}
.du{background:#ccffcc;color:#181818;}
.gn5{font-weight:normal;margin:3px 3px 3px 8px;display:block;border:none;}
.red{color:#ff0000;}
.pw{font-size:0.8em;color:#dd8800;}
.fmn{font-size:0.8em;}
.ll{text-align:left;}
.layout {
    width: 100%;
    margin:0 auto 20px auto;
    padding:20px 10px;
    background-color:#fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media screen and (min-width:100px){
    .grid-table {
        gap: 1px;
    }
    .grid-table > div {
        padding: 10px 3px;
    }
    .bold {font-size: 0.8em;}
    .fmn{font-size:0.7em;}
    .pw{font-size:0.6em;}
    .mb{display:block;}
    .pc{display:none;}
    .custom-select-wrapper select {
        padding: 5px 20px 5px 5px;
    }
    .modern-form {
        padding:20px 10px;
    }
    .left-top {
        position: static;
        top: 0;
        left:0;
        width:100%;
        max-height:200%;
        padding-right:0;
    }
    .right-top {
        margin-left:0;
        width:100%;
        padding:0;
    }
    #right-topr {
        width:100%;
        padding:0;
    }
    .header-button{
        display:block;
        position: fixed;
        top:4vh;
        right: 20px;
        width: 30px;
        height: 30px;
        cursor: pointer;
        z-index: 101;
        pointer-events: auto !important;
    }
    .bar{
        display: block;
        width: 100%;
        height: 4px;
        background: #333;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
        margin-bottom: 5px; 
    }
    #barm.menu{opacity:0;}
    #bart.menu{transform: translateY(9px) rotate(45deg);}
    #barb.menu{transform: translateY(-9px) rotate(-45deg);}
    #nav{
        transition: right 0.3s ease-out;
    }
    #nav.menu-open{
        right:0;
    }
}

@media screen and (min-width:768px) {
    .grid-table {
        gap: 3px;
    }
    .grid-table > div {
        padding: 10px 5px;
    }
    .bold {font-size: 1.0em;}
    .fmn{font-size:0.8em;}
    .pw{font-size:0.7em;}
    .custom-select-wrapper select {
        padding: 10px 20px 10px 10px;
    }
    .modern-form {
        padding:30px;
    }
}

@media screen and (min-width:1200px){
    .mb{display:none;}
    .pc{display:block;}
    .left-top {
        position: fixed;
        top: 100px;
        left: calc(50% - 600px);
        width:590px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        padding-right:10px;
    }
    .right-top {
        margin-left: 50%;
        padding:0 0 0 10px;
        width:590px;
    }
    #right-topr {
        margin-left: 50%;
        left:590px;
        padding:0 0 0 10px;
        width:590px;
    }
}
