/* ルールページ用 */

/* Hero section */
.hero-rules {
    background: url("../../images/hero-rule-bg.png") center/cover no-repeat;
    height: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.hero-overlay {
    background-color: rgba(0,0,0,0.8); /* 文字を見やすくするオーバーレイ */
    padding: 2rem;
    border-radius: 12px;
}

.hero-overlay h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hero-overlay p {
    font-size: 1.2rem;
}


/*ルールに同意したとみなすダンス*/
.rules-agreement {
    background-color: #ff4141; /* 赤っぽい背景で注意を強調 */
    color: white;
    font-weight: bold;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}
/*main rules*/
/* ルールページ全体 */
.rules-content {
    max-width: 900px;       /* コンテンツ幅を制限 */
    margin: 0 auto;         /* 中央寄せ */
    padding: 2rem 1rem;
    color: #e5e7eb;         /* 明るめの文字色 */
    line-height: 1.7;       /* 行間を広めに */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* セクション見出し */
.rules-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3b82f6; /* 下線で強調 */
    padding-bottom: 0.3rem;
    color: #ffffff;
}

/* 小見出し */
.rules-content h3 {
    font-size: 1.4rem;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    color: #d1d5db;
}

/* 段落 */
.rules-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #e5e7eb;
}

/* 箇条書き */
.rules-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding: 0;
    list-style-type: disc;
}

.rules-content ul li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

/* 箇条書き内の補足説明 */
.rules-content ul li p {
    margin: 0.3rem 0 0 0;
    font-size: 0.95rem;
    color: #9ca3af; /* 少し薄い色で補足 */
}

/* 段落区切りの装飾線 */
.rules-content hr {
    border: none;
    height: 1px;
    background-color: #374151; /* 薄めのグレー */
    margin: 2rem 0;
}

/* リンクスタイル */
.rules-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.rules-content a:hover {
    color: #60a5fa;
}

/* メディアクエリで小さい画面でも読みやすく */
@media screen and (max-width: 768px) {
    .rules-content {
        padding: 1.5rem;
    }

    .rules-content h2 {
        font-size: 1.6rem;
    }

    .rules-content h3 {
        font-size: 1.2rem;
    }

    .rules-content p,
    .rules-content ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
  .rules-content .rules-agreement{
    font-size: 1.0rem;
  }
  .hero-rules h1{
    font-size: 2.0rem;
  }
  .hero-rules p{
    font-size: 1.3rem;
    white-space: nowrap;
  }
}