body,html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: 100%;
}

/* レスポンシブ */
/* 画面幅が768px以下のとき */
@media (max-width: 768px) {
    section {
        flex-direction: column;
        /* 縦並びに変更 */
        text-align: center;
        /* 中央揃え */
    }
}

/* 画面幅が480px以下のとき */
@media (max-width: 480px) {
    .act h1 {
        font-size: 1.8rem;
        /* タイトルを少し小さく */
    }

    section h2 {
        font-size: 1.5rem;
        /* 見出しを縮小 */
    }
}

main{
    max-width: 1280px;
    margin: 0;
    padding: 20px;
    background-image: url(images2/rpg2.jpg);
    background-size: cover;
    background-position: center;
}

section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    padding: 0 10px 30px;
    margin: 30px;
}

.title {
    font-family: 'Rampart One', sans-serif;
}

.des {
    font-family: 'Not Sans JP', sans-serif;
}

.rpg {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    /* 全画面表示 */
    background-image: url(images2/rpg1.jpg);
    /* 背景画像 */
    background-size: cover;
    background-position: center;
}

.rpg h1 {
    position: absolute; /* 親要素内で自由に配置 */
    top: 15px;
    left: 15px;
    font-family: 'Shippori Mincho', sans-serif; /* 日本語対応フォント */
    font-size: 40px;
    line-height: 1.5; /* 縦書き用に行間を調整 */
    margin: 0;
    padding: 10px;
    color: #00bcd4;
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */

    animation: fadein 2s ease-in-out;
}

.rpg h2 {
    position: absolute; /* 親要素内で自由に配置 */
    top: 35%; /* 縦方向の中央 */
    right: 40px; /* 右端から10px内側 */
    transform: translateY(-50%); /* 中央揃えの補正 */
    writing-mode: vertical-rl; /* 縦書き (右から左) */
    text-orientation: upright; /* 縦向きになるよう指定 */
    font-family: 'Shippori Mincho', sans-serif; /* 日本語対応フォント */
    font-size: 26px;
    line-height: 1.5; /* 縦書き用に行間を調整 */
    margin: 0;
    padding: 10px;
    color: rgb(255, 255, 255);
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */

    animation: slidown 2s ease-out;
}

.rpg h3 {
    position: absolute; /* 親要素内で自由に配置 */
    bottom: 20px;
    left: 50px;
    font-family: 'Shippori Mincho', sans-serif; /* 日本語対応フォント */
    font-size: 40px;
    line-height: 1.5;
    margin: 0;
    padding: 10px;
    color: rgb(241, 59, 59);
    border-radius: 8px; /* 見た目を柔らかく */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* テキストに影をつける */

    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(15px);
    }
    100% {
      opacity: 1;
      transform: translateY(0
      );
    }
}

@keyframes slidown {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}