/**
 * past_trips.css
 * 概要 : YAMA★STAの過去のすべてのイベント ページ専用スタイル
 * 作成日: 2026-03-22
 */

/* ===== レイアウト ===== */
.pt-main {
    padding: 32px 16px 64px;
}

.pt-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* ===== ページタイトル ===== */
.pt-heading {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5f2e;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pt-heading__star {
    color: #f5a623;
    font-size: 1.6rem;
}

.pt-desc {
    color: #555;
    font-size: 0.92rem;
    margin-bottom: 28px;
}

/* ===== 月選択タブ ===== */
.pt-month-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.pt-month-btn {
    padding: 8px 14px;
    border: 2px solid #2c5f2e;
    border-radius: 20px;
    background: #fff;
    color: #2c5f2e;
    font-size: 0.92rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.pt-month-btn:hover {
    background: #e8f5e9;
}

.pt-month-btn.is-active {
    background: #2c5f2e;
    color: #fff;
}

/* ===== ローディング ===== */
.pt-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888;
    padding: 24px 0;
}

.pt-loading[aria-hidden="true"] {
    display: none;
}

.pt-loading__spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ccc;
    border-top-color: #2c5f2e;
    border-radius: 50%;
    animation: pt-spin 0.7s linear infinite;
}

@keyframes pt-spin {
    to { transform: rotate(360deg); }
}

/* ===== 年ブロック ===== */
.pt-year-block {
    margin-bottom: 36px;
}

.pt-year-heading {
    font-size: 1.15rem;
    font-weight: bold;
    color: #2c5f2e;
    border-left: 4px solid #2c5f2e;
    padding-left: 10px;
    margin-bottom: 12px;
}

/* ===== イベントリスト ===== */
.pt-trip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pt-trip-item {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    transition: background 0.12s;
}

.pt-trip-item:hover {
    background: #f0f7f0;
}

.pt-trip-date {
    white-space: nowrap;
    font-size: 0.85rem;
    color: #777;
    min-width: 140px;
}

.pt-trip-title {
    font-size: 0.97rem;
    color: #222;
    flex: 1;
}

/* ===== 空・エラー ===== */
.pt-empty,
.pt-error {
    padding: 32px 0;
    color: #888;
    text-align: center;
    font-size: 0.95rem;
}

.pt-error {
    color: #c0392b;
}

/* ===== スマホ対応 ===== */
@media (max-width: 480px) {
    .pt-month-btn {
        padding: 7px 10px;
        font-size: 0.85rem;
    }

    .pt-trip-item {
        flex-direction: column;
        gap: 4px;
    }

    .pt-trip-date {
        min-width: unset;
    }
}
