body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #fff;
  position: relative;
  z-index: 10;
}

.logo img {
  position: absolute;
  top: 20px;
  height: 28px;
}

header h1 {
  margin: 0;
  font-size: 1.5em;
}

.btn-enter-store {
  display: inline-flex;
  align-items: center;
  margin-top: 60px;
  margin-bottom: 5em;
  /* ロゴやヘッダーと被らないように調整 */
  position: relative;
  z-index: 5;
  gap: 8px;
  background: linear-gradient(135deg, #13184b);
  border: none;
  color: white;
  padding: 10px 28px;
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  user-select: none;
}

.btn-enter-store:hover {
  background: linear-gradient(135deg, #192194);
  transform: translateY(-3px);
}

.btn-enter-store:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(101, 58, 183, 0.2);
}

.btn-enter-store svg {
  transition: transform 0.3s ease;
}

.btn-enter-store:hover svg {
  transform: translateX(4px);
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero {
  padding: 3em;
  background: linear-gradient(to right, #616161, #b4ccf0);
  text-align: center;
}

.hero h2 {
  font-size: 2em;
}

.viewer-section {
  padding: 4em 2em 6m;
  /* 下のパディングを増やして余裕を作る */
  text-align: center;
}


/* model-containerをflexで横並び、中央揃えに */
.model-container {
  margin-top: 5em;
  /* 画像・ロゴ・説明のまとまり全体の上に空白を */
  display: flex;
  align-items: center;
  /* 縦中央揃え */
  justify-content: center;
  gap: 0px;
  /* 矢印と中央要素の間隔 */
  height: 480px;
  /* 高さ固定（画像+ロゴ+説明分を考慮） */
}

/* 中央の画像・ロゴ・説明を縦並びで中央揃えに */
.model-container>div {
  width: 820px;
  margin-top: 20px;
  /* 上に余白を追加 */
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* 画像サイズ固定＆縦横比保持 */
.store-image {
  width: 800px;
  height: 450px;
  object-fit: contain;
  display: block;
  margin: 20px auto 0 auto;
}

/* ブランドロゴの最大高さと余白 */
.brand-logo {
  max-height: 40px;
  margin-top: 16px;
  object-fit: contain;
}

/* 説明文の高さ固定で高さ変動を抑制 */
.brand-description {
  margin-top: 12px;
  font-size: 1rem;
  text-align: center;
  min-height: 48px;
}

/* 矢印ボタンを丸くしホバー時に色変化 */
.arrow {
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
  font-size: 1.5em;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  top: -30px; /* ← 上に移動する */
  margin: 0 0px; /* ← 左右の余白を設定（中央に近づく） */
}

.arrow:hover {
  background-color: #333;
  color: #fff;
}

model-viewer {
  width: 100%;
  height: 500px;
  background: #eee;
}

footer {
  font-size: 0.7rem;
  /* 小さめ文字 */
  color: #666;
  padding: 1em;
  background-color: #dfdfdf;
  text-align: center;
}

footer p {
  margin: 0.3em 0;
}

footer p:first-child {
  display: flex;
  justify-content: center;
  gap: 1.5em;
  /* リンク間のスペース */
  flex-wrap: wrap;
  /* 狭い画面は折り返し */
}

.legal-link {
  color: #666666;
  text-decoration: none;
  white-space: nowrap;
}

.legal-link:hover {
  text-decoration: underline;
}



/* モバイル対応 */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    /* 必要なら高さを固定してスクロール対策 */
    height: 20px;
    /* スクロールしても高さが安定するようにする */
  }

  .logo img {
    position: static;
    height: 12px;
    margin-right: 10px;
  }

  header h1 {
    font-size: 1.2em;
    text-align: center;
    margin: 0 0 10px;
  }

  .btn-enter-store {
    margin-top: 30px;
    margin-bottom: 1.5em;
    font-size: 1.2rem;
    padding: 12px 24px;
    width: 100%;
    max-width: 300px;
  }

  nav ul {
    gap: 16px;
    /* 横並びでスクロールできるようにoverflowをつけるなら以下も */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  nav a {
    font-size: 0.6rem;
  }

  .hero {
    padding: 2em 1em;
  }

  .hero h2 {
    font-size: 1.5em;
  }

  .viewer-section {
    padding: 2em 1em 3em;
  }

  .model-container {
    flex-direction: column;
    height: auto;
    margin-top: 2em;
    gap: 15px;
  }

  .model-container>div {
    width: 100%;
    margin-top: 0;
  }

  .store-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    margin: 0 auto;
  }

  .brand-logo {
    max-height: 30px;
    margin-top: 10px;
  }

  .brand-description {
    font-size: 0.8rem;
    min-height: auto;
    margin-top: 8px;
  }

  .arrow {
    padding: 12px;
    font-size: 2rem;
    position: relative;
    top: -10px; /* ← 上に移動する */
  }

  footer {
    padding: 1em 0.5em;
  }
}