@font-face {
    font-family: 'UDDigiKyokasho';
    src: url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&display=swap');
}

body,html{
    width: 100%;
    height: 100%;
    margin: 0;
    font-family: 'M PLUS 2', sans-serif;
}
header{
    background-color: #ffffff;
    width: 100%;
    margin: 0;
    padding: 0 40px;
    box-sizing: border-box;
    font-family: "BIZ UDGothic", "UD デジタル 教科書体 NK-R", sans-serif;
}
a{
    text-decoration: none;
    color: #000000;
}
a:hover {
    text-decoration: underline; 
}
.header{
    margin: 0;
    display: flex;
    align-items: center;
    font-family: "BIZ UDGothic", "UD デジタル 教科書体 NK-R", sans-serif;
}
.header_nav .menu_active{
    z-index: 9999;
}
.btn{
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 15px 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: 'M PLUS 2', sans-serif;
    letter-spacing: 0.03em;
    font-weight: 500;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #2980b9, #2573a7);
    text-decoration: none;
}
.header-nav {
    margin-left: auto;
    font-family: 'M PLUS 2', sans-serif;
    font-weight: 500;
}
header ul{
    display: flex;
}
header li {
    list-style-type: none;
}
header li + li {
    margin-left: 40px;
}
.sp-header{
    display: none;
    width: 100%;
    background-color: #ffffff;
} 
.main {
    max-width: 1000px;
    margin: 0.5rem auto;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #3498db;
    border-radius: 4px;
}

.main h1 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 15px;
    font-family: 'M PLUS 2', sans-serif;
    font-feature-settings: "palt";
    letter-spacing: 0.02em;
    font-weight: 700;
}
.main h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}
.main h2 {
    font-size: 1.3em;
    line-height: 1.4;
    color: #333;
    text-align: center;
    margin: 0.5rem auto;
}

.main h2 a {
    color: #000000;
    text-decoration: none;
}

.main h2 a:hover {
    text-decoration: underline;
}

.main h2 .btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 1rem;
    background-color: #ffffff;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: normal;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #C8E0FE;
    font-family: 'M PLUS 2', sans-serif;
}

.main h2 .btn:hover {
    background-color: #f8f9fa;
    border-color: #A6D1FF;
}

.main h3 {
    color: #505764;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 1rem 0;
    font-weight: normal;
    font-family: 'M PLUS 2', sans-serif;
    font-feature-settings: "palt";
    letter-spacing: 0.02em;
    font-weight: 700;
}
.main ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}
.main ul li {
    margin: 0.5rem 0;
    color: #505764;
}
.text {
    width: 90%;
    margin: 0 auto;
    padding: 0.5rem;
}

.text h1 {
    font-size: 1.5em;
    margin-bottom: 1rem;
    color: #333;
}

.text h3 {
    font-size: 1.1em;
    line-height: 1.6;
    color: #444;
}

.text ul {
    margin: 0.8rem 0;
}
.text br {
    display: block;
    margin: 0.3rem 0;
}
#page_top{
    width: 50px;
    height: 50px;
    position: fixed;
    right: 0;
    bottom: 0;
    background: #ffffff;
    opacity: 0.6;
    border-radius: 50%;
  }
  #page_top a{
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    text-decoration: none;
  }
  #page_top a::before{
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f106';
    font-size: 25px;
    color: #000000;
    position: absolute;
    width: 25px;
    height: 25px;
    top: -5px;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
  }
.none{
    display: none;
}
ul{
	margin:0;
	padding: 0;
	list-style: none;
}
.window {
    margin: 1rem auto;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    padding: 1rem;
}

.window div {
    padding: 2rem;
    background: #fff;
    margin-bottom: 1.5rem;
}

.window div:nth-child(1) { order: 1; }
.window div:nth-child(2) { order: 2; }
.window div:nth-child(3) { order: 3; }

.window h2 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8f0;
}

.window p {
    font-size: 1em;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 25px;
    flex-grow: 1;
}

.window div .btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ffffff;
    color: #000000;
    font-size: 0.9em;
    font-weight: normal;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #C8E0FE;
}

.window div .btn:hover {
    background-color: #f8f9fa;
    border-color: #A6D1FF;
}

.window div::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 17px;
    background: linear-gradient(45deg, #e1e8f0, #ffffff);
    z-index: -1;
}

@media (max-width: 768px) {
    .window {
        grid-auto-flow: row;
        grid-template-rows: auto;
        padding: 15px;
    }
}

@media (max-width:430px){
    .header{
        display: none;
    }
    .sp-header,.none,.window{
        display: block;
    }
    .sp-header{
        width: 100%;
        background-color: #ffffff;
    }
    .main,.text{
        width: 80%;
    }
    .window {
        flex-direction: column;
        padding: 10px;
    }
    
    .window div {
        width: 85%;
        margin-bottom: 20px;
    }
}
::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: #FFE699;
    border-radius: 8px;
    border: solid 3px #000000
}