.hmjn-rpg-page {
    background: #000;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}

/* ヒーローセクション */
.hmjn-rpg-page .rpg-hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hmjn-rpg-page .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5);
}

.hmjn-rpg-page .overlay-content {
    z-index: 2;
    padding: 20px;
}

.hmjn-rpg-page .overlay-content h1 {
    font-size: 10em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.hmjn-rpg-page .overlay-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.hmjn-rpg-page .cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    padding: 15px 30px;
    font-size: 1.2em;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hmjn-rpg-page .cta-button:hover {
    transform: scale(1.05);
    background: #005bbb;
}

/* 特徴セクション */
.hmjn-rpg-page .rpg-features-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    background: #111;
    padding: 60px 20px;
}

.hmjn-rpg-page .feature-card {
    background: #1a1a1a;
    border-radius: 12px;
    width: 300px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hmjn-rpg-page .feature-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.hmjn-rpg-page .feature-card h2 {
    font-size: 1.5em;
    color: #00c6ff;
    margin-bottom: 10px;
}

.hmjn-rpg-page .feature-card p {
    font-size: 1em;
    line-height: 1.6;
}

/* 各種ページ案内セクション */
.hmjn-rpg-page .rpg-page-section {
    background: #111;
    padding: 60px 20px;
    text-align: center;
}

.hmjn-rpg-page .rpg-page-section h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: #00c6ff;
}

/* カードを並べるラッパーが必要な場合 */
.hmjn-rpg-page .rpg-page-section .card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* すでに .feature-card があるのでそのまま活用OK */
.hmjn-rpg-page .rpg-page-section .feature-card {
    background: #1a1a1a;
    border-radius: 12px;
    width: 300px;
    padding: 20px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.hmjn-rpg-page .rpg-page-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 204, 255, 0.3);
}

.hmjn-rpg-page .rpg-page-section .feature-card h2 {
    font-size: 1.4em;
    color: #00c6ff;
    margin-bottom: 10px;
}

.hmjn-rpg-page .rpg-page-section .feature-card p {
    font-size: 0.95em;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.hmjn-rpg-page .rpg-page-section .cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: white;
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hmjn-rpg-page .rpg-page-section .cta-button:hover {
    background: #005bbb;
    transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hmjn-rpg-page .rpg-page-section .card-container {
        flex-direction: column;
        align-items: center;
    }
}


/* トレーラーセクション */
.hmjn-rpg-page .rpg-trailer-section {
    padding: 60px 20px;
    background: #000;
    text-align: center;
}

.hmjn-rpg-page .rpg-trailer-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #00c6ff;
}

.hmjn-rpg-page .video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
}



/* スライドショー */
.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 960px;  /* ★ PCでは最大幅を制限 */
  height: 500px;
  overflow: hidden;
  background-color: #000;
  margin: 0 auto;     /* ★ 中央に配置 */
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  margin-right: 0;
  height: 100%;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease;
}

.slide:not(.active) img {
  filter: brightness(0.6);
}

@media screen and (max-width: 768px) {
  .slideshow-container {
    max-width: 100%;
    height: 300px; /* スマホでは高さも少し小さく */
  }
}

/* 支援モーダルセクション */
/* モーダル基本設定 */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

/* モーダルの中身 */
.modal-content {
    background-color: #1e1e1e; /* ダークグレー背景 */
    color: #f0f0f0; /* 明るめの文字色 */
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
}


/* 閉じるボタン */
.modal .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* フォームスタイル */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.submit-button {
    padding: 12px;
    background: linear-gradient(90deg, #007BFF, #00C6FF);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #0056b3;
}

/* 追加リンクボタン */
.extra-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.extra-button {
    background-color: #f0f0f0;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: background 0.2s;
}

.extra-button:hover {
    background-color: #ddd;
}


/* アニメーション */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoom-in {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.hmjn-rpg-page .animate-fade-in {
    animation: fade-in 1.5s ease forwards;
}

.hmjn-rpg-page .animate-slide-up {
    animation: slide-up 1.5s ease forwards;
}

.hmjn-rpg-page .animate-zoom-in {
    animation: zoom-in 1.5s ease forwards;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hmjn-rpg-page .overlay-content h1 {
        font-size: 2.5em;
    }
    .hmjn-rpg-page .overlay-content p {
        font-size: 1.2em;
    }
    .hmjn-rpg-page .rpg-features-section {
        flex-direction: column;
        align-items: center;
    }
}
