/* ===== リセット・ベース設定 ===== */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: #c12822;
  background-color: transparent;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

/* ===== Fade Animation ===== */
.fade-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== メインレイアウト ===== */
.main {
  position: relative;
  z-index: 50;
  flex: 1;
}

/* ===== 背景レイヤー ===== */
#bg-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10; /* 🔧 0から10に変更 */
  pointer-events: none;
  overflow: hidden;
}

#bg-wrap svg {
  width: 100vw;
  height: 100vh;
  display: block;
}

/* shoeicon背景（SVGアニメーションの上） */
#shoeicon-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20; /* 🔧 25から20に変更（SVGの上、スライドの下） */
  pointer-events: none;
  display: flex; /* 🔧 追加：中央配置用 */
  justify-content: center; /* 🔧 追加：中央配置用 */
  align-items: center; /* 🔧 追加：中央配置用 */
  opacity: 1; /* 🔧 0.08 → 1 に変更 */
  filter: grayscale(20%) sepia(10%);
  /* animation: float-gentle 8s ease-in-out infinite; */ /* 🔧 アニメーション無効化 */
}

/* 🔧 新規追加：imgタグのスタイル */
.shoeicon-image {
  width: 50%; /* 🔧 PC版：50% */
  height: auto;
  object-fit: contain;
}

/* 🆕 浮遊アニメーション */
@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-8px) rotate(0deg);
  }
  75% {
    transform: translateY(-20px) rotate(-2deg);
  }
}

/* 🆕 レスポンシブ調整 */
@media (max-width: 768px) {
  #shoeicon-bg {
    opacity: 1; /* 🔧 0.06 → 1 に変更 */
  }

  .shoeicon-image {
    /* �� 追加 */
    width: 70%; /* 🔧 タブレット版：70% */
  }
}

@media (max-width: 480px) {
  #shoeicon-bg {
    opacity: 1; /* 🔧 0.05 → 1 に変更 */
  }

  .shoeicon-image {
    /* �� 追加 */
    width: 100%; /* �� SP版：85% */
  }
}

/* ===== ヘッダー（PC版ベース） ===== */
.header {
  position: relative;
  z-index: 100;
  padding: 20px 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  width: 220px;
  height: auto;
}

.logo-line {
  display: none; /* PC版では非表示 */
}

/* ===== ナビゲーション（PC版ベース） ===== */
.gnav ul {
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gnav li {
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.gnav li:hover {
  opacity: 1;
}

.gnav a {
  text-decoration: none;
  color: #c12822;
  position: relative;
  transition: color 0.3s ease;
}

.gnav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c12822;
  transition: width 0.3s ease;
}

.gnav a:hover::after {
  width: 100%;
}

/* ===== タブレット版調整 (768px以下) ===== */
@media (max-width: 768px) {
  .header {
    padding: 16px 0;
  }

  .header__inner {
    padding: 0 30px;
  }

  .logo img {
    width: 200px;
  }

  .gnav ul {
    gap: 32px;
  }

  .gnav li {
    font-size: 1.1rem;
  }
}

/* ===== SP版調整 (480px以下) ===== */
@media (max-width: 480px) {
  .header {
    padding: 16px 0;
  }

  .header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    gap: 12px;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 6px;
  }

  .logo img {
    width: 180px;
  }

  .logo-line {
    display: block; /* SP版でのみ表示 */
    width: 100%;
    height: 1px;
    background: rgba(193, 40, 34, 0.8);
    margin: 0;
  }

  .gnav {
    width: 100%;
  }

  .gnav ul {
    justify-content: flex-start;
    gap: 24px;
  }

  .gnav li {
    font-size: 1rem;
  }

  .gnav a::after {
    display: none; /* SP版では下線エフェクト無効 */
  }

  .gnav li:hover {
    text-decoration: underline; /* SP版では従来の下線 */
  }
}

/* ===== 極小画面 (360px以下) ===== */
@media (max-width: 360px) {
  .header__inner {
    padding: 0 16px;
  }

  .logo img {
    width: 160px;
  }

  .gnav ul {
    gap: 20px;
    padding-left: 24px;
  }

  .gnav li {
    font-size: 0.9rem;
  }
}

/* ===== フッター ===== */
.footer {
  position: relative;
  z-index: 200;
  text-align: center;
  pointer-events: none;
  padding: 16px 0;
  margin-top: auto;
}

.copyright {
  font-size: 0.65rem;
  color: #c12822;
  opacity: 0.5;
  margin: 0;
}

/* ===== フローティングバナー（SPのみ） ===== */
.floating-banner {
  display: none;
}
@media (max-width: 600px) {
  .floating-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 50%;
    bottom: 5vh;
    width: 90px;
    height: 90px;
    background: transparent;
    border-radius: 50%;
    z-index: 9999;
    /* アニメーション用 */
    transition: transform 0.6s cubic-bezier(0.4, 1.7, 0.6, 1), opacity 0.6s;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(100px);
  }
  .floating-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .floating-banner-svg {
    display: block;
  }
  .floating-banner-svg .rotating-text {
    transform-origin: 45px 45px;
    animation: rotateText 10s linear infinite;
  }
  @keyframes rotateText {
    100% {
      transform: rotate(360deg);
    }
  }
  .floating-banner-svg circle {
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.12));
  }
  .floating-banner-svg text {
    font-family: "Inter", sans-serif;
    letter-spacing: 0.3em;
    font-weight: normal;
    fill: #c12822;
    font-size: 13px;
  }
}
