/* ============================================
   スケジューる - ポップ&カラフルなスタイル
   ============================================ */

:root {
    --primary: #ff6b9d;
    --primary-dark: #e55588;
    --secondary: #4ecdc4;
    --accent: #ffd93d;
    --purple: #a78bfa;
    --blue: #60a5fa;
    --green: #34d399;
    --orange: #fb923c;
    --red: #f87171;
    --bg: #fef9ff;
    --text: #2d2d44;
    --text-light: #6b6b85;
    --border: #ffe4f1;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(255, 107, 157, 0.1);
    --shadow-md: 0 4px 16px rgba(255, 107, 157, 0.15);
    --shadow-lg: 0 8px 32px rgba(255, 107, 157, 0.2);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景装飾 */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 40%;
    right: 30%;
    opacity: 0.3;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(254, 249, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 2px solid var(--border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 800;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 157, 0.3));
}

.logo-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* メインコンテンツ */
.main-content {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
}

.screen {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* ヒーロー */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji-bounce {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* カード */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border);
    margin-bottom: 24px;
}

.create-card {
    max-width: 700px;
    margin: 0 auto 40px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary);
}

/* フォーム */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary);
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: #fefefe;
    color: var(--text);
    transition: all 0.2s;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.hint {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 8px;
    font-weight: 500;
}

/* 日付追加 */
.date-picker-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.date-picker-wrapper input {
    flex: 1;
    min-width: 200px;
}

.date-input-field {
    cursor: pointer;
    background: #fefefe !important;
}

.date-input-field:hover {
    border-color: var(--primary) !important;
}

.btn-clear {
    background: white;
    color: var(--text-light);
    border: 2px solid var(--border);
    padding: 10px 18px;
    font-size: 0.9rem;
}

.btn-clear:hover {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* ============================================
   flatpickr カスタムテーマ（ポップ&カラフル）
   ============================================ */
.flatpickr-calendar {
    font-family: 'M PLUS Rounded 1c', sans-serif !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 2px solid var(--border) !important;
    padding: 8px !important;
    background: var(--card-bg) !important;
}

.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after {
    border-bottom-color: var(--border) !important;
}

.flatpickr-months {
    padding: 8px 0 4px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(167, 139, 250, 0.08));
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.flatpickr-month,
.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    color: var(--text) !important;
    font-weight: 800 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: var(--primary) !important;
    fill: var(--primary) !important;
    padding: 8px !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--primary-dark) !important;
}

.flatpickr-weekdays {
    background: transparent !important;
}

.flatpickr-weekday {
    color: var(--text-light) !important;
    font-weight: 700 !important;
    font-family: inherit !important;
}

.flatpickr-day {
    border-radius: 50% !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    border: none !important;
    max-height: 38px;
    line-height: 38px;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: rgba(255, 107, 157, 0.12) !important;
    color: var(--primary-dark) !important;
}

.flatpickr-day.today {
    border: 2px solid var(--accent) !important;
    color: var(--text) !important;
    font-weight: 800 !important;
}

.flatpickr-day.today:hover {
    background: var(--accent) !important;
    color: var(--text) !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.today {
    background: linear-gradient(135deg, var(--primary), var(--purple)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4);
    transform: scale(1.05);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-light) !important;
    opacity: 0.35;
}

.flatpickr-day.flatpickr-disabled:hover {
    background: transparent !important;
    cursor: not-allowed !important;
}

.selected-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.date-chip button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.date-chip button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 時限選択 */
.period-range {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.period-input {
    flex: 1;
}

.period-input label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 4px;
}

.period-separator {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 14px;
}

.period-preview {
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.08), rgba(167, 139, 250, 0.08));
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 600;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.btn-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 50%, var(--secondary) 100%);
    background-size: 200% 200%;
    color: white;
    padding: 16px 40px;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
    width: 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.btn-hero:hover {
    box-shadow: 0 8px 28px rgba(255, 107, 157, 0.5);
}

.btn-share {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-share:hover {
    background: var(--primary);
    color: white;
}

/* 機能紹介 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--border);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* イベント画面 */
.event-header {
    margin-bottom: 24px;
}

.event-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
}

/* タブ */
.tab-container {
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    padding: 6px;
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    max-width: 450px;
}

.tab-btn {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 157, 0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--accent);
    color: var(--text);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
}

.tab-btn.active .badge {
    background: white;
    color: var(--primary);
}

/* 使い方ガイド */
.instruction-box {
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(78, 205, 196, 0.15));
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 2px dashed var(--accent);
}

.instruction-box p {
    font-weight: 700;
    margin-bottom: 10px;
}

.instruction-icon {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.tap-guide {
    margin: 12px 0 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text);
    line-height: 2;
    font-weight: 500;
}

.tap-step {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    margin: 0 4px 0 2px;
}

.tap-arrow {
    display: inline-block;
    margin: 0 6px;
    color: var(--primary);
    font-weight: 800;
}

.legend-yes-inline,
.legend-maybe-inline,
.legend-no-inline,
.legend-empty-inline {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.legend-yes-inline { background: rgba(52, 211, 153, 0.2); color: #0d9668; }
.legend-maybe-inline { background: rgba(255, 217, 61, 0.3); color: #a57900; }
.legend-no-inline { background: rgba(248, 113, 113, 0.2); color: #b73535; }
.legend-empty-inline { background: #e5e7eb; color: var(--text-light); }

.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    font-weight: 600;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
}

.legend-yes { background: rgba(52, 211, 153, 0.2); color: #0d9668; }
.legend-maybe { background: rgba(255, 217, 61, 0.3); color: #a57900; }
.legend-no { background: rgba(248, 113, 113, 0.2); color: #b73535; }

/* 時間割 */
.timetable-wrapper {
    overflow-x: auto;
    margin: 20px -10px;
    padding: 0 10px 10px;
    -webkit-overflow-scrolling: touch;
}

.timetable {
    display: grid;
    gap: 6px;
    min-width: max-content;
    margin: 0 auto;
}

.tt-cell {
    min-width: 80px;
    padding: 12px 8px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.15s;
}

.tt-header {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-color: transparent;
    font-weight: 800;
}

.tt-period {
    background: linear-gradient(135deg, var(--secondary), var(--blue));
    color: white;
    border-color: transparent;
    font-weight: 800;
    font-size: 0.9rem;
}

.tt-period.tt-lunch {
    background: linear-gradient(135deg, var(--accent), var(--orange));
    color: #5a3a00;
    position: relative;
}

.tt-period.tt-lunch::before {
    content: '🍙';
    display: block;
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.tt-date {
    font-size: 0.8rem;
}

.tt-date .day-of-week {
    display: block;
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* 投票セル */
.tt-slot {
    cursor: pointer;
    user-select: none;
    font-size: 1.4rem;
    padding: 16px 8px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fafafa;
}

.tt-slot:hover {
    transform: scale(1.05);
    z-index: 1;
}

.tt-slot[data-status="yes"] {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    border-color: transparent;
}

.tt-slot[data-status="maybe"] {
    background: linear-gradient(135deg, #fde047, #facc15);
    color: #78540c;
    border-color: transparent;
}

.tt-slot[data-status="no"] {
    background: linear-gradient(135deg, #fca5a5, #f87171);
    color: white;
    border-color: transparent;
}

/* ヒートマップセル */
.tt-heat {
    position: relative;
    font-size: 0.9rem;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    cursor: pointer;
    transition: transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.tt-heat:hover,
.tt-heat:focus {
    transform: scale(1.05);
    z-index: 1;
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

/* ============================================
   スロット詳細モーダル
   ============================================ */
.slot-modal-content {
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
}

.slot-modal-content h2 {
    margin-bottom: 20px;
    padding-right: 40px;
}

.slot-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 20px;
}

.slot-group {
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 2px solid var(--border);
}

.slot-group-yes {
    background: rgba(52, 211, 153, 0.08);
    border-color: rgba(52, 211, 153, 0.4);
}

.slot-group-maybe {
    background: rgba(255, 217, 61, 0.12);
    border-color: rgba(255, 217, 61, 0.5);
}

.slot-group-no {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.4);
}

.slot-group-none {
    background: #f5f5f7;
    border-color: var(--border);
}

.slot-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.slot-group-label {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}

.slot-group-yes .slot-group-label { color: #0d9668; }
.slot-group-maybe .slot-group-label { color: #a57900; }
.slot-group-no .slot-group-label { color: #b73535; }
.slot-group-none .slot-group-label { color: var(--text-light); }

.slot-group-count {
    background: white;
    padding: 2px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.slot-group-body {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-voter-chip {
    background: white;
    border: 2px solid transparent;
}

.slot-group-empty {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    padding: 4px 0;
}

.tt-heat .heat-score {
    font-weight: 800;
    font-size: 1rem;
}

.tt-heat .heat-detail {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 2px;
    font-weight: 600;
}

/* ベストスロット */
.result-summary {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 217, 61, 0.15), rgba(255, 107, 157, 0.1));
    border-radius: var(--radius-md);
    border: 2px solid var(--accent);
}

.result-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-summary h2 i {
    color: #f59e0b;
}

.best-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.best-slot-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.best-slot-chip .score {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.85rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.section-title i {
    color: var(--primary);
}

/* 回答者リスト */
.voters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
}

.voter-chip .voter-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
}

/* コメント */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.comment-card.empty {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    border-style: dashed;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    color: var(--text);
}

.comment-body {
    color: var(--text);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* アクションボタンエリア */
.action-buttons {
    text-align: center;
    margin-top: 24px;
}

.action-buttons .hint {
    margin-top: 12px;
}

/* モーダル */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 45, 68, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s;
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: popIn 0.3s ease-out;
}

.modal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content h2 i {
    color: var(--primary);
}

.modal-content > p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: white;
}

.share-url-box {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.share-url-box input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    background: #fafafa;
    color: var(--text);
    min-width: 0;
}

.copy-success {
    padding: 10px;
    background: rgba(52, 211, 153, 0.15);
    color: #0d9668;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.share-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-line { background: #06c755; }
.share-twitter { background: #000000; }

/* トースト通知 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    padding: 14px 24px;
    border-radius: 100px;
    font-weight: 700;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

.toast.error {
    background: var(--red);
}

.toast.success {
    background: var(--green);
}

@keyframes slideUp {
    from { transform: translate(-50%, 30px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* フッター */
.site-footer {
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.5);
}

.site-footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.heart {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-note {
    margin-top: 6px;
    font-size: 0.8rem !important;
    opacity: 0.7;
}

/* レスポンシブ */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .card {
        padding: 20px;
        border-radius: var(--radius-md);
    }

    .main-content {
        padding: 20px 0 60px;
    }

    .tab-container {
        font-size: 0.85rem;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .tt-cell {
        min-width: 60px;
        padding: 10px 4px;
        font-size: 0.75rem;
    }

    .tt-slot {
        font-size: 1.2rem;
        min-height: 48px;
    }

    .tt-heat {
        min-height: 48px;
        font-size: 0.8rem;
    }

    .period-range {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .period-separator {
        text-align: center;
        padding: 0;
    }

    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-item {
        padding: 16px 10px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .modal-content {
        padding: 24px 20px;
    }

    .share-url-box {
        flex-direction: column;
    }
}

/* タッチデバイス向けの選択無効化 */
.tt-slot {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
