@import url("/css/slick-theme.css");
@import url("/css/slick.css");

@keyframes flicker {
  0%, 100% { opacity: 0.4; }
  25% { opacity: 0.2; }
  50% { opacity: 0.5; }
  75% { opacity: 0.3; }
}

@keyframes glowing {
  0% {
    box-shadow: 0 0 5px rgba(70, 70, 224, 0.7);
  }
  50% {
    box-shadow: 0 0 20px rgba(70, 70, 224, 1), 0 0 30px rgba(70, 70, 224, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(70, 70, 224, 0.7);
  }
}

/* @keyframes logo-glowing は削除 */

body {
    margin: 0;
    background-color: #000; /* 背景を黒に設定 */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* matrixCanvas(-1)とcontent(1)の間に配置 */

    /* 縦ストライプの背景 */
    background-image: 
        repeating-linear-gradient(to right, 
            rgba(50, 100, 150, 1) 0, 
            rgba(50, 100, 150, 1) 1px, 
            transparent 1px, 
            transparent 40px);
    background-size: 40px;

    /* 点滅アニメーションを適用 */
    animation: flicker 10s infinite ease-in-out;
}

/* キャンバスを画面全体に固定 */
#matrixCanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* コンテンツの下に配置 */
}

/* コンテンツをキャンバスの上に配置 */
#content {
    position: relative;
    z-index: 1; /* キャンバスの上に表示 */
    color: rgb(77, 139, 170); /* サイバー感のある緑色 */
    padding: 20px;
    font-family: monospace;
}

.main-logo {
    display: block;
    margin: 0 auto 20px auto; /* 上下左右中央寄せ、下に20pxの余白 */
    width: calc(100% - 40px); /* 左右に20pxの余白 */
    max-width: 800px; /* 最大幅を設定して大きくなりすぎないようにする */
    box-sizing: border-box;
    /* border: 1px solid rgba(77, 139, 170, 0.5); */ /* 世界観に合わせたボーダー */
    /* animation: logo-glowing 2s infinite alternate; */ /* ロゴの光るアニメーションを適用 */
    /* box-shadow: 0 0 15px rgba(77, 139, 170, 0.8); */ /* 静的な光る効果 */
}

.btn-register {
    display: block;
    width: 200px;
    margin: 20px auto 40px auto; /* 上に20px、下に40pxの余白を追加 */
    padding: 15px 20px;
    background-color: rgba(70, 70, 224, 0.8);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-family: monospace;
    font-size: 1.2em;
    border: 1px solid rgba(70, 70, 224, 1);
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    animation: glowing 1.8s infinite alternate; /* 光るアニメーションを適用 */
}

.btn-register:hover {
    background-color: rgba(90, 90, 240, 1);
    transform: translateY(-2px);
}

/* --- Added Styles for Sections --- */

/* Section General Styles */
#content section {
    margin-top: 40px;
    border-top: 1px solid rgba(77, 139, 170, 0.5);
    padding-top: 20px;
}

#content section h2,
#lp-foot h2 {
    font-size: 1.8em;
    text-align: center; /* 変更 */
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 0 5px rgba(70, 70, 224, 0.8);
}

/* General List Styles */
#content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 20px;
}

#content section li {
    background-color: rgba(10, 25, 40, 0.7);
    border: 1px solid rgba(77, 139, 170, 0.3);
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}

#content section li img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

#content section li a {
    text-decoration: none;
    color: rgb(77, 139, 170);
    display: block;
}

#content section li h3,
#content section li h4 {
    margin: 0 0 5px 0;
    font-weight: normal;
}

#content section li h3 {
    font-size: 1.1em;
    color: #fff;
}

#content section li h4 {
    font-size: 0.9em;
}

#content section li span {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: rgba(70, 70, 224, 0.8);
    color: #fff;
    border-radius: 3px;
    font-size: 0.9em;
}

/* News Section (2 columns) */
.news ul {
    grid-template-columns: repeat(2, 1fr);
}

.news li > a:last-child { /* h3, h4, span を含む a タグ */
    text-align: center;
}

.news li h3,
.news li h4 {
    text-align: left;
}

/* Pickup Section (3 columns) */
.pickup ul {
    grid-template-columns: repeat(3, 1fr);
}

.pickup li > a:last-child {
    text-align: center;
}

.pickup li h3,
.pickup li h4 {
    text-align: left;
}

/* Ranking Section (1 column) */
.ranking li {
    display: flex;
    background-color: rgba(10, 25, 40, 0.7);
    border: 1px solid rgba(77, 139, 170, 0.3);
    padding: 15px ; /* 上下左右のpaddingを統一 */
    border-radius: 5px;
    gap: 15px;
}

/* 画像のリンクコンテナ */
.ranking li .rank-img {
  width: 100px;
    display: block;
}

/* テキスト情報のリンクコンテナ */
.ranking li .rank-data {
  display: flex !important; 
  align-items: center;
  width: calc(100% - 100px);
  justify-content: space-between;
}

.ranking li h3,
.ranking li h4 {
    padding-left:10px; /* ランク表示と被らないようにインデント */
}

/* 「購入」ボタン */
.ranking li span {
    display: inline-block;
    margin: 0 0 0 auto;
}

/* ランク表示 */
.ranking .rank-data .number {
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.7rem !important; 
    color: #111;
    border: 1px solid #fff; /* ボーダーを少し細く */
    margin-bottom: 10px;
}

.ranking li:nth-child(1) .number {
    background: #FFD700 !important; /* Gold */
    box-shadow: 0 0 10px #FFD700;
}

.ranking li:nth-child(2) .number {
    background: #C0C0C0 !important; /* Silver */
    box-shadow: 0 0 10px #C0C0C0;
}

.ranking li:nth-child(3) .number {
    background: #CD7F32 !important; /* Bronze */
    box-shadow: 0 0 10px #CD7F32;
}

/* Search Section (2 columns) */
.search ul {
    grid-template-columns: repeat(2, 1fr);
}

#content .search li a {
    padding: 15px;
    background-color: rgba(10, 25, 40, 0.7);
    border: 1px solid rgba(77, 139, 170, 0.3);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.search li a:hover {
    background-color: rgba(77, 139, 170, 0.3);
}

/* Search Form */
.search form {
    display: flex;
    margin-bottom: 20px;
}

.search input[type="text"] {
    flex-grow: 1;
    padding: 15px;
    border: 1px solid rgba(77, 139, 170, 0.5);
    background-color: rgba(0,0,0,0.5);
    color: #fff;
    font-family: monospace;
    font-size: 1em;
    border-radius: 5px 0 0 5px;
}

.search button {
    padding: 15px;
    border: 1px solid rgba(70, 70, 224, 1);
    background-color: rgba(70, 70, 224, 0.8);
    color: #fff;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
}

/* First UL (main-visual) */
.main-visual {
    margin-bottom: 40px;
}
.main-visual li {
    background: none;
    border: none;
    padding-right: 10px;
}
.main-visual img{
    width: 100%;
    border-radius: 50%;
}
.main-visual p {
    margin: 5px 0 0 0;
    text-align: center;
    font-size: 1.1em; /* 他のセクションのh3に合わせる */
    color: #fff; /* 他のセクションのh3に合わせる */
}

.slide-inner {
    padding: 0 10px; /* スライドコンテンツの左右に余白を追加 */
}

/* Page Navigation */
.page-nav {
    margin: 40px auto; /* 上下に余白、左右中央寄せ */
    max-width: 440px; /* 2列のグリッドが中央に収まるように調整 (2*200px + 20px gap) */
}

.page-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid; /* グリッドレイアウトにする */
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
    gap: 20px; /* グリッドアイテム間の余白 */
}

.page-nav li {
    background-color: rgba(10, 25, 40, 0.7); /* ユーザーメニューに合わせる */
    border: 1px solid rgba(77, 139, 170, 0.3); /* ユーザーメニューに合わせる */
    border-radius: 5px; /* ユーザーメニューに合わせる */
}

.page-nav li a {
    display: flex; /* Flexboxを有効に */
    justify-content: space-between; /* テキストを左、アイコンを右に寄せる */
    align-items: center; /* 垂直方向中央揃え */
    text-decoration: none;
    color: rgb(77, 139, 170); /* ユーザーメニューに合わせる */
    padding: 10px 15px; /* ユーザーメニューに合わせる */
    transition: background-color 0.3s;
    /* font-size: 1em; は継承でOK */
    /* white-space: nowrap; は不要 */
}

.page-nav li a:hover {
    background-color: rgba(77, 139, 170, 0.3); /* ユーザーメニューに合わせる */
    /* transform: translateY(-2px); は削除 */
}

/* Footer */
#lp-foot {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(77, 139, 170, 0.5);
    font-size: 0.8em;
    color: #888;
    text-align: center;
}
#lp-foot .license {
    margin: 0;
    padding: 0;
    text-indent: 0;
}
#lp-foot .license p{
    margin: 5px 0;
}
#lp-foot .copy {
    margin-top: 20px;
    font-weight: bold;
}

/* Footer Menu Styles */
#lp-foot .menu {
    list-style: none;
    padding: 0;
    margin: 20px 0; /* 上下に余白を追加 */
}

#lp-foot .menu li {
    margin-bottom: 10px; /* 各メニュー項目の下に余白 */
    background-color: rgba(10, 25, 40, 0.7);
    border: 1px solid rgba(77, 139, 170, 0.3);
    border-radius: 5px;
}

#lp-foot .menu li a {
    display: flex; /* Flexboxを有効に */
    justify-content: space-between; /* テキストを左、アイコンを右に寄せる */
    align-items: center; /* 垂直方向中央揃え */
    text-decoration: none;
    color: rgb(77, 139, 170);
    padding: 10px 15px;
    transition: background-color 0.3s;
}

#lp-foot .menu li a:hover {
    background-color: rgba(77, 139, 170, 0.3);
}