/* ================================
   スクロールバー非表示
   html と body 両方に指定
================================ */
html, body {
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* ================================
   全体色味：白基調
================================ */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  color: #888888;
  font-size: 16px;
  line-height: 1.6;
}

/* ================================
   通常リンク
================================ */
a {
  display: inline-block;
  padding: 8px 0;
  color: gray;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
a:visited { color: gray; }
a:hover { background: #f0f0f0; color: #333333; }
a:active { color: orange; }

/* ================================
   固定ナビバー
================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 2000;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* ================================
   ハンバーガー（常に表示）
================================ */
.burger {
  cursor: pointer;
  z-index: 2100;
  position: fixed;
  top: 15px;
  right: 20px;
}

.burger rect {
  fill: #333;
  transition: all 0.3s ease;
  transform-origin: 50% 50%;
}

/* アクティブ時クロスアイコン（×）に変形 */
.burger.active rect:nth-child(1) {
  transform: rotate(45deg) translate(5px, 27px);
}
.burger.active rect:nth-child(2) {
  opacity: 0;
}
.burger.active rect:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -22px);
}

/* ================================
   ナビゲーションメニュー（スライド式）
================================ */
.nav-links {
  display: flex;
  flex-direction: column;   /* 縦並び */
  align-items: flex-start;
  position: fixed;
  top: 0;
  right: -300px; /* 初期は右に隠す */
  height: 100vh;
  width: 250px;
  background: #fff;
  padding: 60px 20px;
  gap: 20px;
  box-shadow: -2px 0 6px rgba(0,0,0,0.2);
  transition: right 0.3s ease-in-out;
  z-index: 2001;
}

.nav-links.active { right: 0; }

.nav-links a {
  position: relative;
  text-decoration: none;
  padding: 8px 16px;
  margin: 0 5px;
  background: transparent;
  border: none;
  color: #666666;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #333333;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover { background: #f0f0f0; color: #333333; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active::after { width: 100%; }

/* ================================
   言語セレクター
================================ */
.lang-selector {
  margin-left: 20px;
}
#lang-select {
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid #999999;
  background-color: #ffffff;
  color: #333333;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
#lang-select:hover { background: #f0f0f0; }

/* ================================
   オーバーレイ
================================ */
/* 共通: オーバーレイ非表示 */
#overlay {
  display: none;
}
/* モバイル（スマホ + タブレット）のみオーバーレイ有効 */
@media (max-width: 1024px) {
  #overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1100;
  }

  #overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ================================
   メインコンテンツ
================================ */
main {
  padding: 100px 20px 40px 20px;
}

 .home-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #666666;
  text-shadow: 2px 2px 2px #ffffff, -2px -2px 3px #999999;
  /* animation: drop 0.6s ease forwards */
  animation: fadeInMove 2s ease-out;
}
.home-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-50px);
  animation: drop 0.6s ease forwards;
}

/* 文字ごとに遅延を付ける */
.home-title span:nth-child(1) { animation-delay: 0.1s; }
.home-title span:nth-child(2) { animation-delay: 0.2s; }
.home-title span:nth-child(3) { animation-delay: 0.3s; }
.home-title span:nth-child(4) { animation-delay: 0.4s; }
.home-title span:nth-child(5) { animation-delay: 0.5s; }
.home-title span:nth-child(6) { animation-delay: 0.6s; }
.home-title span:nth-child(7) { animation-delay: 0.7s; }
.home-title span:nth-child(8) { animation-delay: 0.8s; }
.home-title span:nth-child(9) { animation-delay: 0.9s; }
.home-title span:nth-child(10) { animation-delay: 1.0s; }
.home-title span:nth-child(11) { animation-delay: 1.1s; }
.home-title span:nth-child(12) { animation-delay: 1.2s; }
.home-title span:nth-child(13) { animation-delay: 1.3s; }
.home-title span:nth-child(14) { animation-delay: 1.4s; }
.home-title span:nth-child(15) { animation-delay: 1.5s; }
.home-title span:nth-child(16) { animation-delay: 1.6s; }
.home-title span:nth-child(17) { animation-delay: 1.7s; }
.home-title span:nth-child(18) { animation-delay: 1.8s; }
.home-title span:nth-child(19) { animation-delay: 1.9s; }
.home-title span:nth-child(20) { animation-delay: 2.0s; }
.home-title span:nth-child(21) { animation-delay: 2.1s; }
.home-title span:nth-child(22) { animation-delay: 2.2s; }
.home-title span:nth-child(23) { animation-delay: 2.3s; }
.home-title span:nth-child(24) { animation-delay: 2.4s; }
.home-title span:nth-child(25) { animation-delay: 2.5s; }

@keyframes drop {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInMove {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ================================
   レスポンシブ調整
================================ */

/* 小型スマホ（～480px） */
@media (max-width: 480px) {
  body { font-size: 18px; }
  .home-title { font-size: 1.8rem; }
  .nav-links a { font-size: 1rem; padding: 6px 10px; }
  #lang-select { font-size: 0.85rem; padding: 4px 8px; }
  main { padding: 120px 10px 30px 10px; }
}

/* 中型スマホ（481px～600px） */
@media (min-width: 481px) and (max-width: 600px) {
  body { font-size: 18px; }
  .home-title { font-size: 2rem; }
  .nav-links a { font-size: 1rem; padding: 7px 12px; }
  #lang-select { font-size: 0.9rem; padding: 5px 10px; }
  main { padding: 120px 15px 30px 15px; }
}

/* タブレット（601px～900px） */
@media (min-width: 601px) and (max-width: 900px) {
  body { font-size: 17px; }
  .home-title { font-size: 2.3rem; }
  .nav-links a { font-size: 1rem; padding: 7px 12px; }
  #lang-select { font-size: 0.95rem; padding: 5px 10px; }
  main { padding: 110px 20px 35px 20px; }
}

/* 大型画面 PC（901px～） */
@media (min-width: 901px) {
  body { font-size: 16px; }
  .home-title { font-size: 2.5rem; }
  .nav-links a { font-size: 1rem; padding: 8px 16px; }
  #lang-select { font-size: 1rem; padding: 6px 12px; }
  main { padding: 100px 20px 40px 20px; }
}
