@charset "UTF-8";

/* 共通設定 */
html {
    font-size: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    background-color: #1f1f1f;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* iframe */

iframe {
    width: 100%;
}

/* Layout */

.wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 4%;
}

/* ヘッダー */
header {
    background: #2c2c2c; /* ヘッダーの背景色をブラックに設定 */
    padding: 16px 0;
    border-bottom: 1px solid #444;
    width: 100%;
}

header .wrapper {
    display: flex;
    justify-content: space-between;
}

.page-header p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.page-header a {
    color: #4682b4; /* ヘッダーテキストカラーをブルーに設定 */
    transition: color 0.3s;
}

.page-header a:hover {
    color: #0bd; /* ホバーカラーをライトブルーに設定 */
}

.main-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 10px 0 0;
    padding: 0;
}

.main-nav li a {
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav li a:hover {
    color: #00bcd4;
}

/* フッター */
footer {
    background: #2c2c2c; /* フッターの背景色をブラックに設定 */
    padding: 16px 0;
    border-top: 1px solid #444;
    width: 100%;
    margin-top: 40px;
}

footer .wrapper {
    display: flex;
    justify-content: space-between;
}

.ft-nav {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0 0;
    padding: 0;
}

.ft-nav li a {
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s;
}

.ft-nav li a:hover {
    color: #00bcd4;
}

/* コンテンツ */
.container {
    padding: 40px 4%;
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 6%;
    margin-bottom: 50px;
}

/* ファイルボックス */
.file-box {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.file-box:hover {
    transform: scale(1.02);
}

.file-image {
    border-radius: 4px;
    margin-bottom: 15px;
}

.file-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.name, .extension, .size, .downloads {
    font-size: 0.95rem;
    color: #ccc;
}

/* ダウンロードボタン */
.download-button, .btn-download, .btn-password {
    background-color: #00bcd4;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-button:hover,
.btn-download:hover,
.btn-password:hover {
    background-color: #0097a7;
}

/* ページネーションのスタイル */
.pagination {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    margin-top: 40px;
}

.pagination a, .pagination span {
    margin: 0 5px;
    padding: 2px 10px;
    text-decoration: none;
    border: 1px solid #444;
    border-radius: 5px;
    color: #ccc;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #4CAF50;
    color: #fff;
}

.pagination .current-page {
    background-color: #4CAF50;
    color: #fff;
    font-weight: bold;
    border: 1px solid #4CAF50;
}

/* 詳細ページ */
.main-content {
    padding: 40px 4%;
    max-width: 800px;
    margin: 0 auto;
}

.details-box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
}

.detailsimg {
    flex: 1 1 35%;
}

.detailsimg img {
    width: 100%;
    border-radius: 4px;
}

.detailsdescr {
    flex: 1 1 60%;
}

.detailsdescr ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.detailsdescr li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #ccc;
}

.zip-note {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 20px;
}

.download-section,
.password-section {
    flex: 1;
}

/* エラーページ */
body.error {
    background-color: #1f1f1f;
    color: #ff6f61;
    text-align: center;
    padding: 100px 20px;
}
