/**
 * 会員ステータスガイド（LP）スタイル
 * レスポンシブ対応
 */

.member-status-guide {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    background: #f5f5f5;
}

.member-status-guide h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
    color: #E91E63;
}

/* テーブルスクロールラッパー */
.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.table-scroll-wrapper table {
    min-width: 500px;
}

/* ステータス一覧セクション */
.status-overview {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-overview h2 {
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E91E63;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-overview h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #E91E63;
    display: inline-block;
}

.status-header-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 10px;
}

.status-header-table th,
.status-header-table td {
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #ddd;
}

.status-header-table th {
    background: #f0f0f0;
    font-weight: bold;
    white-space: nowrap;
}

.status-header-table .status-name {
    font-weight: bold;
    font-size: 11px;
}

.status-header-table .status-point {
    font-size: 11px;
    color: #666;
}

/* ステータス色ヘッダー */
.status-color-header {
    color: #fff;
    padding: 6px 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* スケジュールセクション */
.schedule-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E91E63;
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #E91E63;
    display: inline-block;
}

/* ガントチャート */
.gantt-chart {
    padding: 10px 0;
}

.gantt-header {
    display: flex;
    margin-bottom: 5px;
}

.gantt-label-cell {
    width: 80px;
    min-width: 80px;
    font-size: 11px;
    font-weight: bold;
    color: #333;
    padding-right: 8px;
    text-align: right;
    line-height: 1.3;
}

.gantt-date-row {
    flex: 1;
    position: relative;
    height: 20px;
    border-bottom: 1px solid #ddd;
}

.gantt-date {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 0 4px;
}

.gantt-body {
    border-left: 1px solid #ddd;
    margin-left: 80px;
}

.gantt-row {
    display: flex;
    margin-left: -80px;
}

.gantt-row .gantt-label-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.gantt-bar-cell {
    flex: 1;
    position: relative;
    height: 36px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(20% - 1px),
        #eee calc(20% - 1px),
        #eee 20%
    );
    border-bottom: 1px solid #ddd;
}

.gantt-bar {
    position: absolute;
    top: 4px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gantt-bar.calc {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.gantt-bar.apply {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

.gantt-bar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

/* ガントチャート凡例 */
.gantt-legend {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.8;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
}

.gantt-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.gantt-legend-item:last-child {
    margin-bottom: 0;
}

.gantt-legend-color {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 3px;
    margin-top: 2px;
}

.gantt-legend-color.calc {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.gantt-legend-color.apply {
    background: linear-gradient(135deg, #9C27B0, #BA68C8);
}

/* 特典テーブル */
.benefits-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.benefits-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E91E63;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #E91E63;
    display: inline-block;
}

.benefits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.benefits-table th,
.benefits-table td {
    padding: 10px 4px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
}

.benefits-table thead th {
    font-weight: bold;
    font-size: 10px;
    color: #fff;
}

.benefits-table thead th:first-child {
    background: #666;
    width: 30%;
}

.benefits-table tbody th {
    background: #f8f8f8;
    text-align: left;
    font-weight: normal;
    font-size: 11px;
    padding-left: 8px;
}

.benefits-table .benefit-value {
    font-weight: bold;
}

.benefits-table .benefit-yes {
    color: #4CAF50;
    font-size: 16px;
}

.benefits-table .benefit-no {
    color: #ccc;
}

/* 注意事項 */
.notes-section {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notes-section h2 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #E91E63;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notes-section h2::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #E91E63;
    display: inline-block;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
}

.notes-list li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    margin-bottom: 8px;
    color: #555;
}

.notes-list li::before {
    content: '\30FB';
    color: #E91E63;
}

/* スタンプラリー */
.stamp-rally-section {
    background: linear-gradient(135deg, #E91E63 0%, #F06292 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #fff;
}

.stamp-rally-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.stamp-rally-section h2 .logo {
    font-weight: bold;
    font-style: italic;
}

.stamp-demo {
    background: rgba(255,255,255,0.95);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.stamp-demo-title {
    color: #E91E63;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.stamp-slots {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.stamp-slot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px dashed #E91E63;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.stamp-slot.filled {
    background: #E91E63;
    border-style: solid;
}

.stamp-slot.filled span {
    color: #fff;
    font-size: 10px;
    font-weight: bold;
}

.stamp-rally-desc {
    font-size: 12px;
    line-height: 1.8;
}

.stamp-rally-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stamp-rally-desc li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    margin-bottom: 6px;
}

.stamp-rally-desc li::before {
    content: '\30FB';
}

/* レスポンシブ */
@media (min-width: 600px) {
    .member-status-guide {
        padding: 20px;
    }

    .member-status-guide h1 {
        font-size: 28px;
    }

    .status-header-table th,
    .status-header-table td {
        padding: 12px 8px;
    }

    .status-header-table .status-name {
        font-size: 13px;
    }

    .benefits-table {
        font-size: 13px;
    }

    .benefits-table th,
    .benefits-table td {
        padding: 12px 8px;
    }

    .stamp-slot {
        width: 44px;
        height: 44px;
    }

    .stamp-slot.filled span {
        font-size: 12px;
    }
}
