@charset "UTF-8";
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  background-color: #000;
  transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
#opening-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#opening-overlay .op-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}
#opening-overlay .op-bg-container .op-bg-image {
  width: 100%;
  height: 100%;
  background-image: url("../images/bg_ricefield.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: opZoom 8s linear forwards;
}
#opening-overlay .op-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}
#opening-overlay #op-effect-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
#opening-overlay .op-logo-container {
  position: relative;
  z-index: 4;
}
#opening-overlay .op-logo-container .op-logo-svg {
  width: auto;
  height: 30vh;
  opacity: 0;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
  animation: opLogoAppear 2s ease-out 0.5s forwards;
}

@keyframes opZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
@keyframes opLogoAppear {
  0% {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.top #content {
  padding-top: 0;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000;
}
.hero-section .scrolling-bg {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  width: -moz-max-content;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}
.hero-section .scrolling-bg img {
  height: 100vh;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}
.hero-section .content-overlay {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: #fff;
  /* フォント設定：明朝体 */
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", serif;
}
.hero-section .content-overlay h1 {
  font-size: clamp(20px, 4vw, 60px);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  text-transform: uppercase;
}
.hero-section .content-overlay h1 .spbr {
  display: none;
}
.hero-section .content-overlay h1 .spbr::before {
  content: " ";
  display: inline-block;
}
.hero-section .content-overlay p {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin: 0 0 3rem 0;
  opacity: 0.9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.hero-section .content-overlay {
  /* --------------------------------------------------
       * 言語切り替えリスト (.lang-switch)
       * -------------------------------------------------- */
}
.hero-section .content-overlay .lang-switch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 画面が狭い時に折り返す */
  gap: 1.5rem; /* アイテム間の間隔 */
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-section .content-overlay .lang-switch li {
  margin: 0;
  padding: 0;
}
.hero-section .content-overlay .lang-switch a {
  display: flex;
  flex-direction: column; /* アイコンの上にテキスト */
  align-items: center;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-section .content-overlay .lang-switch a:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}
.hero-section .content-overlay {
  /* 国旗アイコン */
}
.hero-section .content-overlay .lang-flag {
  width: 40px; /* アイコンサイズ */
  height: 28px; /* 比率に合わせて調整 */
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 2px; /* 少し角丸に */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background-color: #ccc; /* 画像読み込み前用 */
  margin-bottom: 0.5rem;
}
.hero-section .content-overlay {
  /* 言語名キャプション */
}
.hero-section .content-overlay .lang-name {
  font-size: 0.75rem; /* 小さめに */
  letter-spacing: 0.05em;
  font-family: "Helvetica Neue", Arial, sans-serif; /* 英語表記はゴシック系が見やすい場合が多いが、好みで明朝にしてもOK */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
}
.hero-section #sparkle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.hero-section .dark-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* モバイル対応（画面幅768px以下） */
@media (max-width: 959px) {
  .hero-section .content-overlay h1 {
    font-size: 2.2rem; /* スマホではサイズを抑える */
  }
  .hero-section .content-overlay h1 .spbr {
    display: block;
  }
  .hero-section .content-overlay p {
    font-size: 1rem;
  }
  .hero-section .lang-switch {
    gap: 1rem;
  }
  .hero-section .lang-flag {
    width: 32px;
    height: 22px;
  }
  .hero-section .lang-name {
    font-size: 0.7rem;
  }
}
body:not(.opening-done) #header,
body:not(.opening-done) .p-fixBtnWrap {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.opening-done #header {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1s ease-out;
}/*# sourceMappingURL=home.css.map */