@charset "utf-8";

:root {
    --glass-color : rgba(255, 255, 255, 0.4);
    --glass-hover : rgba(255, 255, 255, 0.6);
    --glass-border : rgba(255, 255, 255, 0.7);
}

/* ── 固定グラデーション背景 ────────────────────── */
body {
    font-family: 'BIZ UDPGothic', sans-serif;
    color: rgba(0, 0, 0, 0.82);
}

body::before {
    background:
        radial-gradient(at 10% 10%, rgba(255, 100, 100, 0.6) 0%, rgba(255, 100, 100, 0.4) 30%, transparent 45%),
        radial-gradient(at 50% 15%, rgba(255, 175, 80, 0.6) 0%, rgba(255, 175, 80, 0.4) 40%, transparent 55%),
        radial-gradient(at 90% 10%, rgba(255, 255, 100, 0.6) 0%, rgba(255, 255, 100, 0.4) 40%, transparent 50%),
        radial-gradient(at 100% 60%, rgba(100, 255, 100, 0.6) 0%, rgba(100, 255, 100, 0.4) 30%, transparent 40%),
        radial-gradient(at 80% 85%, rgba(100, 150, 255, 0.6) 0%, rgba(100, 150, 255, 0.4) 40%, transparent 50%),
        radial-gradient(at 40% 90%, rgba(100, 100, 200, 0.6) 0%, rgba(100, 100, 200, 0.4) 30%, transparent 40%),
        radial-gradient(at 10% 80%, rgba(180, 100, 255, 0.6) 0%, rgba(180, 100, 255, 0.4) 40%, transparent 50%)
}

a {
    color: #555555;
}
a:visited {
    color: #333;
}

/* ── HEADER ─────────────────────────────────────── */
header {
    background: rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

/* ── グローバルメッセージ ────────────────────────── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid;
    line-height: 1.5;
}

.alert-success {
    background: rgba(241, 255, 242, 0.78);
    color: #1b5e20;
    border-color: rgba(76, 175, 80, 0.3);
}

.alert-error {
    background: rgba(255, 240, 240, 0.78);
    color: #bb0c0c;
    border-color: rgba(187, 12, 12, 0.22);
}

/* ── インフォボックス（.message-help）───────────── */
.message-help {
    background: var(--glass-color);
    border: 1px solid var(--glass-border);
    color: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.message-help strong {
    color: rgba(0, 0, 0, 0.88);
    font-weight: 700;
}

.message-help a {
    color: rgba(0, 0, 0, 0.88);
}

/* ── 投稿フォーム（.post-form）──────────────────── */
.post-form {
    background: var(--glass-color);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.post-form input[type="url"],
.post-form input[type="text"],
.post-form select {
    width: 100%;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.55);
    font-family: 'BIZ UDPGothic', sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.82);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    appearance: none;
}

.post-form input:focus,
.post-form select:focus {
    border-color: rgba(140, 130, 255, 0.55);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 0 3px rgba(140, 130, 255, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.post-form input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.post-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='rgba(0,0,0,0.38)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* ── ボタン（.btn）──────────────────────────────── */
.btn {
    background: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.75);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-1px);
    color: rgba(0, 0, 0, 0.88);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
}

.post-form .btn {
    width: 100%;
    padding: 11px;
    margin-top: 2px;
    font-size: 14px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.8);
}

.btn:hover,
.btn:active {
    background-color: rgba(0, 0, 0, 0.8);
}

.input-head {
    color: rgba(0, 0, 0, 0.8);
    background-color: transparent;
}

.label-required {
    color: #fff;
    background-color: #bb0c0c;
}
/* ── ナビゲーション（.nav-filter）────────────────── */
.nav-filter {
    display: flex;
    gap: 7px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 16px;
    padding-bottom: 4px;
}

.nav-filter::-webkit-scrollbar {
    display: none;
}

.nav-filter a {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.32);
    font-size: 13px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.62);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.nav-filter a:hover {
    background: rgba(255, 255, 255, 0.58);
    color: rgba(0, 0, 0, 0.85);
}

.nav-filter a.active {
    background: rgba(255, 255, 255, 0.8);
    color: rgba(0, 0, 0, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* ── カードグリッド（.list）─────────────────────── */
.list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 4px;
}

@media (min-width: 480px) {
    .list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 740px) {
    .list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── カード（.post-card）───────────────────────── */
.post-card {
    display: block;
    background: var(--glass-color);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 14px 15px 13px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    animation: cardFadeIn 0.3s ease both;
    margin-bottom: 0.625rem;
}

.post-card:hover {
    background: var(--glass-hover);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.post-card:active {
    transform: translateY(0);
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── カード内部（.post-info）────────────────────── */
.post-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 1行目：ラベル + SNS + ステータスアイコン */
.post-info>div:first-child {
    display: flex;
    align-items: center;
    gap: 7px;
}

.post-type {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.62);
    color: rgba(0, 0, 0, 0.58);
    border: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    white-space: nowrap;
    flex-shrink: 0;
}

.icon-x {
    font-size: 15px;
    color: #111;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.icon-bluesky {
    font-size: 15px;
    color: #0285ff;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.icon-repost {
    font-size: 17px;
    color: #1ea35a;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.icon-lock {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.38);
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* 2行目：参加者名（最大）*/
.post-info>span {
    font-size: 15px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.86);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* 2行目：サークル名（中）*/
.post-info>small {
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.55);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    margin-top: -2px;
}

/* 3行目：日付（最小）*/
.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1px;
}

.meta span {
    font-size: 10.5px;
    color: rgba(0, 0, 0, 0.38);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── ページングエリア ─────────────────────────── */
/* 既存の style="text-align:center; margin:3rem 0;" div を上書き */
/* ページング全体のコンテナ */
.paging {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* ボタンの基本スタイル（Pico.css/表画面の雰囲気に合わせる） */
.paging .btn {
    padding: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--glass-color);
    border: 1px solid var(--glass-border);
    border-radius: 8px; /* 四角めの角丸 */
    color: inherit;
    text-decoration: none;
    transition: 0.2s;
}

/* ホバー時 */
.paging .btn:hover {
    background: var(--glass-hover);
}

/* 現在のページ */
.paging .btn.active {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    border-color: transparent;
    cursor: default;
    pointer-events: none;
}

/* 三点リーダー (...) */
.paging-dot {
    margin: 0 4px;
    color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
    color: rgba(0, 0, 0, 0.48);
    color: #FFF;
}

footer a {
    color: #FFF;
}

footer a:hover {
    color: rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.4);
}