/* ========================================
   ヘッダー（PC版）
======================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  height: 137px;
}

.logo {
  position: absolute;
  right: 41px;
  top: 29px;
}

.picross-logo {
  height: 77px;
  width: 89px;
}

/* モバイルナビゲーション（SP版のみ表示） */
.mobile-nav {
  display: none;
}

.mobile-menu-button {
  display: none;
}

/* ========================================
   メインビジュアル（PC版）
======================================== */
.hero {
  position: relative;
  background-color: var(--color-background);
  overflow: hidden;
  height: 1460px; /* Figmaデザインに基づく固定高さ */
}

/* 全体のコンテナ */
.hero-wrapper {
  position: relative;
  width: 1280px;
  height: 1460px;
  margin: 0 auto;
}

/* ヘッダー背景 */
.hero-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 137px;
  background-color: var(--color-background);
  z-index: 1;
}

/* 背景画像 */
.hero-bg-wrapper {
  position: absolute;
  top: 137px;
  left: -54px;
  width: 967.38px;
  height: 800px;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* メイン画像（右側） */
.hero-main-image-wrapper {
  position: absolute;
  top: 1015px; /* Figmaの正確な位置 */
  right: 90.51px;
  width: 416.49px;
  height: 350px;
  z-index: 2;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 縦長画像（右端） */
.hero-side-image-wrapper {
  position: absolute;
  top: 137px;
  right: 158px;
  width: 246px;
  height: 752px;
  z-index: 1;
}

.hero-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* コンテンツエリア */
.hero-container {
  position: absolute;
  top: 1000px; /* Figmaの正確な位置 */
  left: 119px;
  z-index: 10;
}

.hero-content {
  max-width: 522px;
}

/* PC版：画像として表示 */
.hero-text-image {
  display: block;
  max-width: 522px;
  height: auto;
}

.hero-text-image-ribbon {
  margin-left: -10px;
  margin-bottom: 20px;
}

/* PC版：テキストは非表示 */
.hero-title,
.hero-text {
  display: none;
}

/* ========================================
   レスポンシブデザイン（SP版）
======================================== */
@media (max-width: 768px) {
  /* ヘッダー（SP版） */
  .header {
    position: fixed;
    background-color: var(--color-background);
    transition: box-shadow 0.3s ease;
    z-index: 1000;
  }

  .hero-header-bg {
    display: none;
  }

  /* スクロール開始時のシャドウ */
  .header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    background-color: var(--color-background);
  }

  .logo {
    position: static;
  }

  .picross-logo {
    height: 50px;
    width: auto;
  }

  /* モバイルメニューボタン */
  .mobile-menu-button {
    display: block;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
  }

  .mobile-menu-button span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
  }

  .mobile-menu-button span:nth-child(1) {
    top: 0;
  }

  .mobile-menu-button span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-menu-button span:nth-child(3) {
    bottom: 0;
  }

  .mobile-menu-button.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-button.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
  }

  /* モバイルナビゲーション */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }

  .mobile-nav.active {
    transform: translateY(0);
  }

  .mobile-nav-list {
    list-style: none;
    padding: 20px;
  }

  .mobile-nav-item {
    border-bottom: 1px solid rgba(174, 35, 23, 0.1);
  }

  .mobile-nav-link {
    display: block;
    padding: 15px 0;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
  }

  .mobile-nav-link:hover {
    color: var(--color-secondary);
    padding-left: 10px;
  }

  /* メインビジュアル（SP版） */
  .hero {
    height: 1310px;
    padding: 120px 0 10px;
  }

  .hero-wrapper {
    width: 100%;
  }

  .hero-container {
    position: relative;
    padding: 0 20px;
    top: 440px; /* Figmaの正確な位置 */
    left: 20px;
  }

  .hero-content {
    max-width: 100%;
  }

  /* SP版：画像は非表示 */
  .hero-text-image {
    display: none;
  }

  /* SP版：テキストを表示 */
  .hero-title {
    display: block;
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--color-primary);
    font-weight: 500;
    font-family: var(--font-primary);
  }

  .hero-text {
    display: block;
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-primary);
    font-weight: 500;
    font-family: var(--font-primary);
  }

  .hero-side-image-wrapper {
    top: -30px;
    right: 10px;
    width: 140px;
  }
  .hero-side-image {
    width: auto;
    height: auto;
    filter: drop-shadow(1px 1px 1px #f7f4f0);
  }

  .hero-bg-wrapper {
    top: 0px;
    left: -60px;
    width: 90%;
    max-width: 500px;
  }

  .hero-bg-image {
    width: auto;
    height: auto;
    object-fit: cover;
  }

  .hero-main-image-wrapper {
    position: absolute;
    top: 780px; /* Figmaの正確な位置 */
    right: 0px;
    width: 90%;
    z-index: 2;
  }
}
