/* === 共通設定 === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
}

/* === ナビゲーションバー追加 === */
header.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  z-index: 9999;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-area img {
  height: 40px;
  margin-right: 10px;
}

.logo-area span {
  font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 1.6em;
  font-weight: bold;
  letter-spacing: 0.05em;
}

nav.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

nav.nav-links a {
  color: #4FC3F7;
  text-decoration: none;
  padding: 0.5em 0;
}

@media (max-width: 767px) {
  header.fixed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav.nav-links {
    flex-direction: column;
    width: 100%;
    padding-top: 0.5em;
  }

  nav.nav-links a {
    padding-left: 1em;
  }
}

/* === PC専用スタイル === */
@media screen and (min-width: 1025px) {
  .hero-container {
    position: relative;
    text-align: center;
    overflow: hidden;
    height: 100vh;
  }

  .hero {
    width: 100%;
    height: 100%;
    object-fit: contain;
  background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    text-shadow: 1px 1px 3px #000;
  }

  .logo {
    font-size: 3em;
    font-weight: bold;
    margin: 0.2em;
  }

  .hero-text {
    font-size: 1.2em;
    margin: 0.5em 0;
  }

  .btn {
    background: #ff6600;
    color: white;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1em;
  }

  .sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1em;
    padding: 1em;
  }

  .section {
    background: transparent;
    text-align: center;
    padding: 1em;
    border-radius: 8px;
  }

  .section img {
    width: 100%;
    border-radius: 4px;
  }

  .section h2 {
    color: #eee;
  }
}

/* === タブレット専用スタイル（768px〜1024px） === */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .logo {
    font-size: 2.2em;
  }

  .hero-text {
    font-size: 1.05em;
  }

  .btn {
    font-size: 1em;
    padding: 0.5em 1em;
  }

  .section h2 {
    font-size: 1.1em;
  }
}

/* === スマホ専用スタイル（〜767px） === */
@media screen and (max-width: 767px) {
  .hero-container {
    position: relative;
    text-align: center;
    overflow: hidden;
    height: 100vh;
  }

  .hero {
    width: 120%;
    height: 100%;
    object-fit: contain;
    margin-left: -10%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: black;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    text-shadow: 1px 1px 3px #000;
  }

  .logo {
    font-size: 2em;
    font-weight: bold;
    margin: 0.2em;
  }

  .hero-text {
    font-size: 1em;
    margin: 0.5em 0;
  }

  .btn {
    background: #ff6600;
    color: white;
    padding: 0.5em 0.8em;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1em;
    font-size: 0.9em;
  }

  .sections {
    display: block;
    padding: 1em;
  }

  .section {
    background: transparent;
    text-align: center;
    padding: 1em;
    border-radius: 8px;
    margin-bottom: 1em;
  }

  .section img {
    width: 100%;
    border-radius: 4px;
  }

  .section h2 {
    color: #eee;
    font-size: 1em;
  }
}
/* === ハンバーガーメニュー === */
.menu-toggle {
  display: none;
  font-size: 2em;
  cursor: pointer;
  color: #4FC3F7;
  padding: 0.5em 0;
}

/* スマホ用ハンバーガーメニュー表示と開閉 */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  nav.nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #111;
  }

  nav.nav-links.active {
    display: flex;
  }

  nav.nav-links a {
    padding: 0.8em 1em;
    font-size: 1em;
  }
}
.nav-wrapper {
  padding: 0 2em;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.centered-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
  text-align: center;
  white-space: nowrap;
}

/* === 背景画像が見切れないように調整 === */
.section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media screen and (max-width: 767px) {
  .section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
}


/* === heroクラスの分離（video用はcover、img用はcontain） === */
img.hero {
  object-fit: contain;
  background-color: black;
}

video.hero {
  object-fit: cover;
}
