*{
    margin: 0;
    padding: 0;
}
@media screen and (min-aspect-ratio: 9/10) {
    /* コンテナ全体の設定 */
.container {
    position: relative;  /* これで子要素を相対的に配置できる */
    width: 100%;
    height: 90vh;
    text-align: center;
    background-color: #1e1318;
}

/* 画像の設定 */
.container img {
    width: auto;  /* 画面全体に広がるように */
    height: 100%;  /* 高さも100%にして、縦横比を崩さずに表示 */
    object-fit: cover;  /* 画像が縦横比を保ちながら、画面いっぱいに表示されるようにする */
}

/* h1タグの基本設定 */
.container h1 {
    position: absolute;  /* 画像の上に重ねる */
    color: white;  /* 文字色を白に */
    font-size: 3rem;  /* 文字サイズ */
    text-align: center;
    width: 100%;  /* 画面いっぱいに文字が表示されるように */
    z-index: 1;  /* 画像の上に文字が表示されるように */
}

/* .in1のスタイル */
h1.in1 {
    top: 40%;  /* 画面の40%の位置に配置 */
    font-size: 2.5rem;
    color: white;
}

/* .in2のスタイル */
h1.in2 {
    top: 55%;  /* 画面の55%の位置に配置 */
    font-size: 3rem;
    font-weight: bold;
    color: white;
}
body{
    background-color: #eeeeee;
}
nav{
    background-color: black;
    height: 10vh;
    font-size: 1.5em;
    display: flex;
    justify-content: center;  /* 横方向（左右）に中央揃え */
    align-items: center;      /* 縦方向（上下）に中央揃え */
}
nav a{
    color: white;
    margin-right: 100px;
}
nav a :last-child{
    margin-right: 0px;
}
@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.slogan{
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}
.slogan.slogan2{
    animation-delay: 1s;
}
.main{
    padding: 20px;
    font-size: 1.2em;
}
.childsite{
    color: blue;
}
.osusume{
    display: flex;
}
}
@media screen and (max-aspect-ratio: 9/10) {
    /* コンテナ全体の設定 */
.container {
    position: relative;  /* これで子要素を相対的に配置できる */
    width: 100vw;
    text-align: center;
    background-color: #1e1318;
}

/* 画像の設定 */
.container img {
    width: 100vw;
    height: auto;
}

/* h1タグの基本設定 */
.container h1 {
    position: absolute;  /* 画像の上に重ねる */
    color: white;  /* 文字色を白に */
    font-size: 3rem;  /* 文字サイズ */
    text-align: center;
    width: 100%;  /* 画面いっぱいに文字が表示されるように */
    z-index: 1;  /* 画像の上に文字が表示されるように */
}

/* .in1のスタイル */
h1.in1 {
    top: 40%;  /* 画面の40%の位置に配置 */
    font-size: 2.5rem;
    color: white;
}

/* .in2のスタイル */
h1.in2 {
    top: 55%;  /* 画面の55%の位置に配置 */
    font-size: 3rem;
    font-weight: bold;
    color: white;
}
body{
    background-color: #eeeeee;
}
nav{
    background-color: black;
    height: 10vh;
    font-size: 1.5em;
    display: flex;
    justify-content: center;  /* 横方向（左右）に中央揃え */
    align-items: center;      /* 縦方向（上下）に中央揃え */
}
nav a{
    color: white;
    margin-right: 100px;
}
nav a :last-child{
    margin-right: 0px;
}
@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}
.slogan{
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}
.slogan.slogan2{
    animation-delay: 1s;
}
.main{
    padding: 20px;
    font-size: 1.2em;
}
.childsite{
    color: blue;
}
} 
.hamburger {
    position: relative;
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    height: 30px;
    width: 30px;
    background-color: black;
    justify-content: center;
    align-items: center;
    z-index: 90;
}

.hamburger span,
.hamburger span:before,
.hamburger span:after {
    content: '';
    display: block;
    height: 1.5px;
    width: 15px;
    border-radius: 1.5px;
    background-color: #ffffff;
    position: absolute;
}

.hamburger span:before {
    bottom: 4px;
}

.hamburger span:after {
    top: 4px;
}

#hamburgercheck:checked ~ .hamburger span {
    background-color: rgba(255, 255, 255, 0); /* メニューオープン時は真ん中の線を透明にする */
}

#hamburgercheck:checked ~ .hamburger span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#hamburgercheck:checked ~ .hamburger span::after {
    top: 0;
    transform: rotate(-45deg);
}

#hamburgercheck {
    display: none;
}
.navigation {
    width: 20%;
    height: 100%;
    position: fixed;
    top: 0;
    right: 100%;
    z-index: 80;
    background-color: black;
    transition: all 0.5s;
}
.navigation ul {
    padding: 70px 10px 0;
}
.navigation ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
}
.navigation ul li a {
    display: block;
    width: 100%;
    font-size: 15px;
    box-sizing: border-box;
    color:#ffffff;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
#hamburgercheck:checked ~ .navigation {
    right: 80%;/*メニューを画面内へ*/
}
.footurl{
    background-color: #1e1318;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 120px;
    font-size: 0.75em;
}
.urlgroup a{
    color: white;
}
.urlgroup{
    display: block;
}
.top{
    display: block;
    margin: 40px;
}
.foot{
    background-color: black;
    color: white;
    font-size: 0.75em;
}
.foot a{
    color: white;
}
.foot2{
    justify-content: space-between;
    padding-left: 200px;
    padding-right: 200px;
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
}
@media screen and (max-width: 1240px) {
    .footurl{
        background-color: #1e1318;
        color: white;
        display: flex;
        justify-content: space-between;
        padding: 20px;
        font-size: 0.75em;
    }
    .urlgroup a{
        color: white;
    }
    .urlgroup{
        display: block;
    }
    .top{
        display: block;
        margin: 20px;
    }
    .foot{
        background-color: black;
        color: white;
        font-size: 0.75em;
    }
    .foot a{
        color: white;
    }
    .foot2{
        justify-content: space-between;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        display: flex;
    }
    h1.in1 {
        top: 40%;  /* 画面の40%の位置に配置 */
        font-size: 2rem;
        color: white;
    }
    
    /* .in2のスタイル */
    h1.in2 {
        top: 55%;  /* 画面の55%の位置に配置 */
        font-size: 2.5rem;
        font-weight: bold;
        color: white;
    }
    nav{
        font-size: 0.75em;
    }
}
@media screen and (max-width: 582px){
    nav a{
        margin-right: 10px;
    }
    nav a:last-child{
        margin-right: 0;
    }
}
@media screen and (max-width: 512px){
    .navigation{
        width: 100%;
    }
    #hamburgercheck:checked ~ .navigation {
        right: 0%;/*メニューを画面内へ*/
    }
}
@media screen and (max-width: 400px) {
    h1.in1{
        font-size: 1rem;
    }
    h1.in2{
        font-size: 1.2rem;
    }
}
@media screen and (max-width: 466px) {
    .footurl{
        font-size: 0.25em;
    }
    .foot{
        font-size: 0.25em;
    }
}
.help-button {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #233B6C;  /* 青系ボタン */
    color: #fff;
    text-align: center;
    line-height: 40px;          /* 高さと揃えると真ん中に来る */
    border-radius: 50%;         /* 丸型にする */
    text-decoration: none;      /* 下線を消す */
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.help-button:hover {
  background-color: #1e1318;  /* ホバー時の色 */
}

.help-button {
    position: fixed;
    top: 20px;
    right: 20px;
  /* 上のスタイルもそのまま追加 */
}

