body {
    font-family: "Futura", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: auto;
     }

.header {
    background: var(--background-navbar);
    position: relative;
    width: 100%;
    height: 75px; /* 高さを固定 */
    }

#rbotfont {
    color: #fff;
    text-align: center;
}

#h1A {
  text-align: center;
  position: relative;
  margin-bottom: 1em;
}
#h1A:before {
  content: '';
  position: absolute;
  bottom: -15px;
  display: inline-block;
  width: 60px;
  height: 5px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: black;
  border-radius: 2px;
}

h2 {
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff; /* 背景を白に変更 */
    display: inline-block;
    border: 2px solid #000000; /* 黒いフレーム */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 影の追加 */
    }

h5 {
    border-radius: 8px;
    padding: 10px;
    background-color: #ffffff; /* 背景を白に変更 */
    display: inline-block;
    border: 2px solid #000000; /* 黒いフレーム */
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* 影の追加 */
    }
    
    h6 {
    font-family: "Impact",sans-serif;
    }
    

.menu-icon.show {
    opacity: 1;
}

nav {
    display: none;
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav.show {
    opacity: 1;
}

nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #55acee;
}

main {
    padding: 20px;
}

.category {
    display: none;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 auto 50px;
    width: 100%;
    max-width: 2400px;
    min-height: 900px;
    box-sizing: border-box;
}

.category.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    background-color: #7289da;
    color: #fff;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #5e7fda;
}

/* 画像スタイル */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ニュースリスト */
li {
    border-bottom: 1px dotted #000;
    list-style: none;
    padding: 10px;
    width: 800px;
}

a {
    color: #000;
    text-decoration: none;
}

#label {
    background-color: #2388b8;
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    margin-right: 20px;
    padding: 5px;
}

time {
    display: inline-block;
    font-weight: bold;
    margin-right: 40px;
}

.new::after {
    content: "NEW";
    color: #d10606;
    font-size: 1.1rem;
    border: 1px solid #d10606;
    padding: 4px 8px;
    margin-left: 20px;
    display: inline-block;
    line-height: 1;
}
      
      /* Navbar & Navmenu color */
      :root {
        --background-navbar: rgba(55, 55, 55, 0.98);
      }
      
      /* Nav items */
      .menu {
        list-style: none;
        position: absolute;
        width: 100%;
        height: auto;
        top: 0;
        margin-top: 52px;
        padding: 0 0 10px 0;
        clear: both;
        background: var(--background-navbar);
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
        transform: scale(1, 0);
        transform-origin: top;
      }
      
      /* Hamburger menu button */
      .menu-btn:checked ~ .menu {
        transform: scale(1, 1);
        transform-origin: top;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
        position: relative;
      }
      
      /* Hamburger menbu text */
      .menu a {
        text-decoration: none;
        font-weight: 500;
        letter-spacing: 2px;
        font-size: 16px;
        text-transform: capitalize;
        color: #ddd;
        opacity: 0;
        transition: 0.5s;
        position: relative;
      }
      
      .menu li {
        border-top: 1px solid rgb(75, 75, 75);
        padding: 15px 0;
        margin: 0 54px;
        opacity: 0;
        transition: 0.5s;
        position: relative;
      }
      
      .menu-btn:checked ~ .menu a,
      .menu-btn:checked ~ .menu li {
        opacity: 1;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
      }
      
      .menu-btn {
        display: none;
      }
      
      .menu-icon {
        display: inline-block;
        position: relative;
        cursor: pointer;
        padding: 24px 14px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
      }
      
      .navicon {
        background: #ddd;
        display: block;
        height: 4px;
        width: 26px;
        position: relative;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
      }
      
      .navicon:before,
      .navicon:after {
        content: "";
        display: block;
        height: 100%;
        width: 100%;
        position: absolute;
        background: #ddd;
        transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
      }
      
      .navicon:before {
        top: 9px;
      }
      
      .navicon:after {
        bottom: 9px;
      }
      
      /* Hamburger Menu Animation Start */
      .menu-btn:checked ~ .menu-icon .navicon:before {
        transform: rotate(-45deg);
      }
      
      .menu-btn:checked ~ .menu-icon .navicon:after {
        transform: rotate(45deg);
      }
      
      .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
        top: 0;
      }
      .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
        bottom: 0;
      }
      
      .menu-btn:checked ~ .menu-icon .navicon {
        background: rgba(0, 0, 0, 0);
        transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
      }
      /* Hamburger Menu Animation End */
      
      /* Navbar Container */
      .navtext-container {
        width: 100%;
        height: 52px;
        position: absolute;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
      }
      
      /* Navbar Text */
      .navtext {
        position: absolute;
        text-transform: uppercase;
        color: #ddd;
        letter-spacing: 4px;
        font-size: 20px;
      }

      #sec {
  padding: 0;
  background: #fff;
  text-align: center;
  word-wrap: break-word;
}

#sec ul {
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style: none;
  border: none;
}

#sec ul li {
  padding: 40px;
  width: calc(100% / 3 - 80px); /* 横幅の計算。80px はパディングを考慮 */
  box-sizing: border-box;
  transition: box-shadow 0.3s;
}

#sec ul li:hover {
  box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

#sec ul li:hover span {
  color: #63B7E6;
}

#sec ul li:hover p {
  color: #555;
}

#sec ul li:hover .title01 {
  color: #63B7E6;
}

#sec ul li:hover .title01:after {
  width: 25px;
}

#sec ul li span {
  font-size: 2.6em;
  display: block;
  transition: color 0.3s;
  color: #A2A2A2;
}

#sec ul li span:before, #sec ul li span:after {
  position: static;
}

#sec ul li .title01 {
  color: #6f6f6f;
  display: inline-block;
  font-size: 24px;
  font-weight: 100;
  transition: color 0.3s;
}

#sec ul li .title01:after {
  content: "";
  position: relative;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  display: block;
  width: 40px;
  height: 1px;
  background: #6f6f6f;
  transition: width 0.3s;
}

#sec ul li p {
  color: #A2A2A2;
  text-align: left;
  text-indent: 1em;
  font-size: 16px;
  line-height: 26px;
  transition: color 0.3s;
}

/* 追加したメディアクエリ */
@media (max-width: 768px) {
  #sec ul li {
    width: calc(100% / 2 - 40px); /* 横幅を2カラムに変更し、パディングを考慮 */
    padding: 20px;
  }
}

@media (max-width: 480px) {
  #sec ul li {
    width: 100%; /* スマホ画面では1カラム表示 */
    padding: 15px;
  }

  #sec ul li span {
    font-size: 2em; /* スマホでのアイコンサイズを調整 */
  }

  #sec ul li .title01 {
    font-size: 20px; /* タイトルサイズを調整 */
  }

  #sec ul li p {
    font-size: 14px; /* 説明文の文字サイズを調整 */
    line-height: 22px;
  }
}