body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  /* IAB / iOS Safari の 100vh 誤算対策 */
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
}

body.scroll-enabled, html.scroll-enabled {
  overflow: auto;
  overflow-x: hidden;
}

link[rel="icon"] {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
}


.seo-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header-links {
  position: absolute;
  top: 4%;
  left: 2%;
  display: flex;
  flex-direction: column;
  font-family: monospace, serif;
  z-index: 5;
}

.header-links a {
  text-decoration: none;
  color: inherit;
}

.yasu521 {
    top: 4.5%;
    left: 2%;
    font-family: serif;
    color: #ffffff;
    z-index: 1;
}
.header-links .yasu521 {
  font-size: 20px;
  background: linear-gradient(45deg,#EF233C, #FF9F1C, #2E8BC0,#0A1128);
  
}

.sub-title {
    position: absolute;
    bottom: -100%;
    font-size: 8px;
    z-index: 2;
}
.title {
  position: absolute;
  justify-content: center;
  text-align: center;
  font-size: 10px;
  bottom: 50px;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "monospace", serif;
  color: #ffffff;
  z-index: 5;
}

.footer.js-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background-color: rgb(255, 255, 255);
  text-align: center;
  padding: 1rem 0;
  z-index: -1;
  will-change: transform;
}
.content-1{
  position: absolute;
  height: 100%;
  overflow: hidden;
  background-color: rgb(255, 255, 255);
  color: #ffffff;
  z-index: -10;
}

.js-sticky-text {
  transform: translateY(20px);
  will-change: opacity, transform;
  color: #000000;
  font-size: 14px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media screen and (max-width: 768px) {
  .js-sticky-text {
    font-size: 12px;
  }
  .footer.js-sticky {
    height: 70%;
  }
}

.language-menu {
  position: absolute;
  top: 4%;
  right: 20px;
  display: inline-block;
  border-radius: 50%;
  z-index: 5;
  align-items: center;
  cursor: pointer;
  justify-content: center;
}
.language-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./flag/language.webp');
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  z-index: 5;
}
.language-list {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  z-index: 5;
}
.language-option {
  background: none;
  border: none;
  color: #ffffff99;
  padding: 1px 1px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.language-menu:hover .language-list {
  display: block;
}
.language-option:hover {
  color: #c9a333;
}

#audioControlButton {
  position: absolute;
  background-color: #ffffff61;
  bottom: 90px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  border-radius: 50%;
  cursor: pointer;
  height: 30px;
  z-index: 5;
}
#audioControlButton img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
audio {
  display: none;
}

.blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.7) 70%, rgb(0, 0, 0) 100%);
  backdrop-filter: blur(0.5px);
  z-index: 3;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* IAB / iOS Safari 対策: dvh フォールバック */
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  z-index: 1000;
}
#progress-bar-container {
  width: 70%;
  background: rgba(35, 35, 35, 0.4);
  padding: 3px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
}
#progress-bar {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #000000, #ffffffc8, #000000);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
#loading-text {
  font-size: 20px;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.7);
}
#remaining-time {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

#main-content {
  display: none;
  height: 100%;
  width: 100%;
  z-index: 10;
}

.menu-button {
  position: absolute;
  display: inline-block;
  text-decoration: none;
  color: white;
  padding: 0px 15px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  background: rgba(0, 0, 0, 0);
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
  z-index: 5;
}
.menu-button:hover {
  color: #c9a333;
  background: rgba(0, 0, 0, 0);
}
.menu-button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: #c9a333;
  transition: width 0.3s ease;
}
.menu-button:hover::after {
  width: 100%;
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.content-box {
    color: rgb(255, 255, 255);
    background-color: rgb(255, 255, 255);
    width: 90%;
    max-height: 70%;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;

    background-image: 
        repeating-linear-gradient(
            0deg, 
            rgba(160, 186, 10, 0.1), 
            rgba(160, 186, 181, 0.1) 1.5px, 
            transparent 1px, 
            transparent 20px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(160, 186, 181, 0.1), 
            rgba(160, 186, 181, 0.1) 1.5px, 
            transparent 1px, 
            transparent 20px
        );
}
.content-back-to-top {
  position: fixed;
  top:75%;
  right: 5%;
  width: 100px;
  color: #008cf750;
  display: flex;
  cursor: pointer;
  transition: opacity 0.3s ease;
  z-index: 60;
}
.content-back-to-top:hover {
  color: #c9a33399;
}
.close-button {
    position: absolute;
    top:  5px; 
    left: 5px;
    width: 15px;
    height: 15px;
    background-color: #ff6161;
    color: #00000000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
}
.close-button:hover {
  -webkit-transform: translate(0, 3px);
  transform: translate(0, 3px);
  background-color: #ff0000;
  color: #000000;
}

.portrait-container {
  display: flex;
  gap: 20px;
}
.portrait {
  position: relative;
  overflow: hidden;
  width: 150px;
  height: 150px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portrait:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.description {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 5px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portrait:hover .description {
  opacity: 1;
}

@media screen and (max-width: 768px) {
    .content-box {
        width: 80%;
        margin-bottom: 20px;
    }
    body {
        padding-bottom: 20px;
    }
    .content-back-to-top {
      top: 75%;
    }
    .close-button {
      width: 10px;
      height: 10px;
    }
}

.footer {
  background: #ffffff;
  color: #000000;
  padding: 4rem 1rem 2rem;
  font-family: sans-serif;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer__heading {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 2rem;
  color: #000000;
}
.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 10px;
}
.footer__column-title {
  font-size: .75rem;
  letter-spacing: .1em;
  margin-bottom: 1rem;
  color: #000000;
  text-transform: uppercase;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li {
  margin-bottom: .5rem;
}
.footer__list a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
.footer__list a:hover {
  text-decoration: underline;
}
.footer__address p {
  margin: 0 0 .5rem;
}
.footer__address a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}
.footer__bottom {
  bottom: 1%;
  font-size: .8rem;
  color: #777;
  text-align: center;
}
.footer__bottom a {
  color: #777;
  text-decoration: none;
}
.footer__bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer {
    padding: 2rem 1rem 1rem;
  }
  .footer__heading {
    font-size: 1.5rem;
  }
}

/* ============================================================
   In-App Browser (IAB) 警告バナー
============================================================ */
#inapp-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 80px;
  background: rgba(10, 10, 10, 0.95);
  color: #ffffff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  box-sizing: border-box;
  text-align: center;
  z-index: 100000;
  padding-top: max(14px, env(safe-area-inset-top));
  pointer-events: auto;
}

#inapp-banner-text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  color: #ffffffcc;
}

#inapp-open-external {
  display: inline-block;
  background: #c9a333;
  color: #000000;
  border: none;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
  pointer-events: auto;
  touch-action: manipulation;
}

#inapp-open-external:hover,
#inapp-open-external:active {
  background: #e0b83a;
}

#inapp-close {
  display: inline-block;
  background: none;
  color: #ffffff60;
  border: none;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
  padding: 4px 8px;
  pointer-events: auto;
  touch-action: manipulation;
}

#inapp-close:hover {
  color: #ffffff99;
}
