/* ===== リセットと基本設定 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 横スクロール防止 */
  font-family: 'Arial Rounded MT Bold', sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.6;
}

/* ===== ヘッダー ===== */
.common-headBar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-image {
  flex-shrink: 0;
}

.header-image img {
  width: 120px;
  height: auto;
  transition: opacity 0.3s;
  cursor: pointer;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  gap: 0.5rem;
  justify-content: flex-end;
  width: 100%;
  margin-top: 0.5rem;
}

.header-item {
  padding: 0.5rem 0.75rem;
  background: #222;
  color: #fff;
  border-radius: 5px;
}

.header-item a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
}

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  text-align: center;
  padding: 1rem;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  margin: 1rem auto;
}

.hero-text h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 2rem;
}

.btn {
  background: orange;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: darkorange;
}

/* ===== セクション ===== */
section {
  padding: 2rem 1rem;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.box {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
  text-align: left;
}

.works ul {
  list-style: none;
  padding-left: 0;
}

.game-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.game-icons img {
  width: 60px;
  height: auto;
}

/* ===== ページトップボタン ===== */
.page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

img.page-top-icon {
  height: 60px;
  width: auto;
  transition: opacity 0.3s;
}

img.page-top-icon:hover {
  opacity: 0.6;
}

/* ===== フッター ===== */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* ===== スマホ用の調整（レスポンシブ） ===== */
@media (max-width: 768px) {
  .common-headBar {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .header-item {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
  }

  .header-item a {
    font-size: 1rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }

  .game-icons img {
    width: 50px;
  }

  .box {
    padding: 1rem;
  }

  img.page-top-icon {
    height: 50px;
  }
}