*{
    padding:0em;
    margin:0em;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5em;
    box-sizing: border-box; /* パディングとボーダーを幅に含める */
    font-family:'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 'meiryo',sans-serif;
}

h1{
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 0.2em;
}

body{
    background-color: #eeeeee;
    min-width:950px;
}

a:link {
 color: #4141ef;
 text-decoration:none;
}

a:visited {
 color: #c300ff;
 text-decoration:none;
}

a:hover {
    text-decoration: underline;
}

a:active {
 color: #FF0000;
 text-decoration: underline;
}
   
a:visited {
color: #c300ff;
text-decoration:none;
}

a:hover {
    text-decoration: underline;
}
   
#header{
    background-color: #ffffff;
    text-align:center;
    padding-top: 0.5em;
    text-shadow: 1px 1px 2px #777777; 
}

#site_title{
    font-weight:bold;
    font-size: 2.5em;
}

a:link#site_title {
    color:#F035C2;
    text-decoration:none;
}

a:visited#site_title {
    color:#F035C2;
    text-decoration:none;
}

a:hover#site_title {
    color: #c300ff;
    text-decoration:none;
}

a:active#site_title {
    color: #FF0000;
    text-decoration: none;
}

#footer_ad{
    margin-top: 1em; 
    background-color: #ffffff;
    text-align: center;
    padding: 1em 0;

}

#footer{
    margin-top: 1em; 
    background-color: #ffffff;
    text-align: center;
    padding: 1em 0;

}

.footer_small {
    margin-left: 0.4m; 
    margin-right: 0.4em;
    font-size:13px;
}

.ad-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50%;
    background-color: #ffffff;
    color: black;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s;
  }

  .ad-box.show {
    opacity: 1;
    visibility: visible;
  }

  .ad_close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #333;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }


/* ページトップへ */
html {
    scroll-behavior: smooth;
}
.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: #fff;
    border: solid 2px #555;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 4px 6px rgb(0 0 0 / 30%);
}

.pagetop__arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #555;
    border-right: 3px solid #555;
    transform: translateY(20%) rotate(-45deg);
}  


/* 600px以下に適用されるCSS（スマホ用） */
@media screen and (max-width: 600px) {
	/* 600px以下に適用されるCSS（スマホ用） */

    body{
        min-width:0;
    }

    .ad-box {
        width: 300px;
      }
}



