/* .zen-old-mincho-regular {
    font-family: "Zen Old Mincho", serif;
    font-weight: 400;
    font-style: normal;
} */

body {
    font-family: serif;
    font-weight: 100;
    font-style: normal;
    margin: 0;
    background-image: url(../img/code-for-safety/hed.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-color: rgb(0, 0, 0);
    color: white;
}

.hed {
    /* background-color: rgba(0, 0, 0, 0); */
    font-family: Zen Old Mincho;
    padding: 23% 6% 17% 1%;
    z-index: 9998;
    /* height: 100%; */
    font-size: 100%;
    color: #ff2828;
    text-shadow: 1px 3px 3px rgb(0, 0, 0);
}

.hed1 {
    margin-top: 5%;
    color: white;
    /* From https://css.glass */
    background: rgba(0, 0, 0, 0.144);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.4px);
    -webkit-backdrop-filter: blur(2.4px);
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    text-align: left;
    padding: 1% 5%;
    text-shadow: 1px 3px 3px rgb(0, 0, 0);
    border-top: solid 1px white;
}

.menu-base {
    z-index: 9999;
    background-color: #333;
    position: fixed;
    width: 100%;
    height: 68px;
}

.menu-base img {
    position: fixed;
    top: 0;
    left: 0;
}

.hed h1,
h2 {
    padding-top: 5%;
    transform: rotate(15deg);
}

h1,
h2 {
    font-weight: 300;
    text-align: center;
}


/* メニュー */
.btn {
    display: block;
    position: fixed;
    /* background-color: #007590; */
    background-image: linear-gradient(12deg, #ff2828 5%, #6b0000 78%);
    padding: 16.5px;
    z-index: 1000;
    right: 0%;
    top: 0%;
}

/* ハンバーガーボタン */
.hamburger {
    display: block;
    width: 35px;
    height: 35px;
    /* 正方形にする */
    position: relative;
    cursor: pointer;
}

.hamburger span {
    background-color: #fff;
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) {
    top: 6px;
    /* 線を正方形内に調整 */
}

.hamburger span:nth-child(2) {
    top: 13.5px;
}

.hamburger span:nth-child(3) {
    top: 21px;
}

/* メニューオープン時のアニメーション（☰ → ✕） */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 13.5px;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 13.5px;
}

/* メニュー */
.nav-menu {
    display: block;
    /* background-color: #007590; */
    position: fixed;
    top: 52px;
    width: 100%;
    height: 0;
    overflow: hidden;
    transition: height 0.6s ease-in-out;
    z-index: 999;
}

.nav-menu.open {
    height: 100%;
    /* メニューの高さは必要に応じて調整 */
    overflow-y: scroll;
}

.nav-menu ul {
    list-style: none;
    /* background-color: #007590; */
    background-image: linear-gradient(12deg, #6b0000, #ff2828 78%);
    padding: 20px;
}

.nav-menu li {
    margin: 15px 0;
}

.nav-menu a {
    display: block;
    color: #fff;
    font-size: 18px;
}

.nav-menu a:hover {
    color: #ddd;
    text-decoration: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-shadow: 1px 3px 3px rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.144);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2.4px);
    -webkit-backdrop-filter: blur(2.4px);
}

h1 {
    color: #ff0000;
    font-size: 2em;
}

.highlight {
    color: #ff0000;
    font-weight: bold;
}

.stat {
    font-size: 1.5em;
    margin: 20px 0;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 10px 0;
    font-size: 1.2em;
}

.warning {
    color: #ff0000;
    font-size: 1.5em;
    text-align: center;
    margin: 40px 0;
}

.game {
    padding: 1% 10%;
    background-color: #fff;
    color: #333;
    text-align: left;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    height: fit-content;
}

.game h1 {
    background-color: #fff;
    color: #333;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    height: fit-content;
}

.game img {
    width: 20%;
    pointer-events: none;
    float: left;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-right: 10%;
}

.game img::after {
    content: "";
    display: block;
    clear: both;
}

.game1 {
    padding: 1% 10%;
    background-color: #fff;
    color: #333;
    text-align: left;
    font-weight: normal;
    font-family: Arial, Helvetica, sans-serif;
    height: fit-content;
}

.game1 h1 {
    background-color: #fff;
    color: #333;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    height: fit-content;
}

.game1 img {
    width: 20%;
    pointer-events: none;
    float: right;
    padding-top: 2%;
    padding-bottom: 2%;
    padding-left: 10%;
}

.game1::after {
    content: "";
    display: block;
    clear: both;
}

.btns {
  display: flex;
  width: 100%;
}

.btns a {
    width: 40%;
    border: navy 2px solid;
    padding: 1% 5%;
    margin-right: 5%;
    text-align: center;
    transition: all 0.2s ease;
}
.btns a:hover {
    width: 40%;
    border: navy 2px solid;
    background-color: navy;
    color: white;
    padding: 1% 5%;
    margin-right: 5%;
    transition: all 0.2s ease;
}

.btns div {
  width: 45%;
}

.gas-like-button-container .like-button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* display: inline-flex;
    align-items: center; */
    padding: 2% 5%;
    border: navy 2px solid;
    /* border-radius: 8px; */
    width: 100%;
    background-color: #f9f9f9;
    color: #333;
    font-size: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.gas-like-button-container .like-button:hover:not(:disabled) {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.gas-like-button-container .like-button:disabled {
    background-color: #e0f0ff;
    border: rgb(0, 0, 255) 2px solid;
    color: #0056b3;
    cursor: not-allowed;
}

.gas-like-button-container .like-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.gas-like-button-container .like-count {
    width: 100%;
    font-weight: bold;
}



.spacer {
  height: 100vh;
  background: #f0f0f0;
}

.animate-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  line-height: 25px;
  position: relative;
  display: inline-block;
  /* padding-bottom: 8px; */
  overflow: hidden;
}

.animate-target::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.8s ease;
}

.animate-target.animate {
  opacity: 1;
  transform: translateY(0);
}

.animate-target.animate::after {
  width: 100%;
}

.like-button {
    border-radius: 50px;
}

@media screen and (max-width: 980px) {
    
.btns {
  display: block;
  width: 100%;
}

.btns a {
    float: left;
    width: 90%;
    border: navy 2px solid;
    font-size: 110%;
    padding: 1% 5%;
    margin-right: 5%;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 4%;
}
.btns a:hover {
    width: 90%;
    border: navy 2px solid;
    background-color: navy;
    color: white;
    padding: 1% 5%;
    margin-right: 5%;
    transition: all 0.2s ease;
}

.btns div {
  width: 100%;
}

.gas-like-button-container .like-button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* display: inline-flex;
    align-items: center; */
    padding: 2% 5%;
    border: navy 2px solid;
    /* border-radius: 8px; */
    width: 100%;
    background-color: #f9f9f9;
    color: #333;
    font-size: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.gas-like-button-container .like-button:hover:not(:disabled) {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.gas-like-button-container .like-button:disabled {
    background-color: #e0f0ff;
    border: rgb(0, 0, 255) 2px solid;
    color: #0056b3;
    cursor: not-allowed;
}

.gas-like-button-container .like-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    fill: currentColor;
}

.gas-like-button-container .like-count {
    width: 100%;
    font-weight: bold;
}
}