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

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --accent: #dc2626;
  --accent-hover: #b91c1c;
  --accent-light: #fee2e2;
  --text: #0f172a;
  --muted: #64748b;
  --national: #dc2626;
  --national-bg: #fee2e2;
  --national-border: #fecaca;
  --cuti: #d97706;
  --cuti-bg: #fef3c7;
  --cuti-border: #fde68a;
  --weekend-bg: #f8fafc;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }

/* ── NAV ─────────────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; height: 60px; background: rgba(248,250,252,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.nav-logo span { color: var(--accent); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero { padding: 90px 20px 70px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(220,38,38,0.08) 0%, transparent 65%); pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }

.hero-badge { display: inline-block; background: var(--accent-light); border: 1px solid var(--national-border); color: var(--accent); font-size: 0.8rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; margin-bottom: 24px; letter-spacing: 0.04em; text-transform: uppercase; }

h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; color: var(--text); }
.gradient-text { background: linear-gradient(135deg, #dc2626, #ef4444, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin: 0 auto 32px; line-height: 1.7; }
.hero-sub strong { color: var(--text); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 44px; }
.hero-note { font-size: 0.78rem; color: var(--muted); }

.hero-stats { display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 28px; box-shadow: var(--shadow); }
.hstat { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
.hstat strong { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, #dc2626, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hstat span { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.hstat-div { width: 1px; height: 36px; background: var(--border); }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section-inner { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.section-inner--narrow { max-width: 720px; }
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; text-align: center; margin-bottom: 48px; letter-spacing: -0.02em; color: var(--text); }

/* ── TOOL ────────────────────────────────────────────────────── */
.tool-section { padding: 70px 20px 80px; border-top: 1px solid var(--border); background: var(--surface-2); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* Year nav */
.year-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 28px; }
.year-btn { background: var(--surface); border: 1.5px solid var(--border); color: var(--muted); width: 36px; height: 36px; border-radius: 8px; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; display: flex; align-items: center; justify-content: center; }
.year-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.year-label { font-size: 1.6rem; font-weight: 800; color: var(--text); min-width: 80px; text-align: center; letter-spacing: -0.03em; }

/* Layout */
.calendar-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; margin-bottom: 20px; }

/* Calendar */
.calendar-wrap { padding: 20px; }
.month-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.month-btn { background: var(--surface-2); border: 1.5px solid var(--border); color: var(--muted); width: 32px; height: 32px; border-radius: 8px; font-size: 1.2rem; cursor: pointer; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.month-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.month-title { font-size: 1.1rem; font-weight: 800; color: var(--text); }

/* Calendar grid */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-header { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); padding: 6px 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.cal-header:first-child { color: var(--national); }
.cal-header:last-child { color: #2563eb; }

.cal-cell { min-height: 52px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 6px 4px 4px; cursor: default; transition: transform 0.1s; position: relative; }
.cal-cell:not(.is-empty):hover { transform: scale(1.04); z-index: 1; }
.cal-cell.is-empty { pointer-events: none; }

.day-num { font-size: 0.95rem; font-weight: 600; line-height: 1; }
.day-label { font-size: 0.6rem; font-weight: 600; margin-top: 3px; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Cell states */
.cal-cell.is-weekend { background: var(--surface-2); }
.cal-cell.is-weekend .day-num { color: #2563eb; }
.cal-cell.is-sunday .day-num { color: var(--national); }

.cal-cell.is-national { background: var(--national-bg); border: 1.5px solid var(--national-border); }
.cal-cell.is-national .day-num { color: var(--national); font-weight: 800; }
.cal-cell.is-national .day-label { color: #b91c1c; }

.cal-cell.is-cuti { background: var(--cuti-bg); border: 1.5px solid var(--cuti-border); }
.cal-cell.is-cuti .day-num { color: var(--cuti); font-weight: 800; }
.cal-cell.is-cuti .day-label { color: #92400e; }

.cal-cell.is-today { outline: 2.5px solid var(--accent); outline-offset: 1px; }
.cal-cell.is-today .day-num { font-weight: 800; }

.cal-cell.is-approx::after { content: '*'; font-size: 0.55rem; color: var(--muted); position: absolute; top: 3px; right: 4px; }

/* Legend */
.cal-legend { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); font-weight: 500; }
.leg-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.leg-national { background: var(--national-bg); border: 1.5px solid var(--national-border); }
.leg-cuti     { background: var(--cuti-bg);     border: 1.5px solid var(--cuti-border); }
.leg-weekend  { background: var(--surface-2);   border: 1.5px solid var(--border); }
.leg-today    { background: var(--surface);     outline: 2px solid var(--accent); outline-offset: 0; }

/* Month panel */
.month-panel { display: flex; flex-direction: column; gap: 0; }
.panel-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; }
.holiday-list { display: flex; flex-direction: column; gap: 8px; }
.holiday-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); }
.holiday-item.is-national { border-left: 3px solid var(--national); }
.holiday-item.is-cuti     { border-left: 3px solid var(--cuti); }
.hi-date-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex-shrink: 0; min-width: 48px; padding-top: 1px; }
.hi-date { font-size: 0.75rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.hi-day  { font-size: 0.68rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.hi-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.hi-approx { font-size: 0.7rem; color: var(--muted); font-style: italic; }
.no-holiday { font-size: 0.85rem; color: var(--muted); text-align: center; padding: 24px 0; }
.approx-note { margin-top: 12px; font-size: 0.75rem; color: var(--muted); background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; line-height: 1.5; }
.approx-note span { color: var(--cuti); }

/* Year list */
.year-list-card { }
.year-list-title { font-size: 1rem; font-weight: 800; margin-bottom: 20px; color: var(--text); }
.year-holiday-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.yh-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.yh-item.is-national { border-left: 3px solid var(--national); }
.yh-item.is-cuti     { border-left: 3px solid var(--cuti); }
.yh-date-wrap { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; min-width: 56px; }
.yh-date { font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.yh-day  { font-size: 0.68rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.yh-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.yh-approx { font-size: 0.68rem; font-style: italic; color: var(--muted); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 9px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; transition: background 0.15s, transform 0.1s, box-shadow 0.15s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-section { padding: 80px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; }
.faq-item:hover { border-color: rgba(220,38,38,0.25); }
.faq-item summary { padding: 18px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; color: var(--text); }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); transition: transform 0.2s; font-weight: 700; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.faq-item strong { color: var(--text); }

/* ── FOOTER ──────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: 1000px; margin: 0 auto; padding: 60px 20px 40px; display: flex; gap: 60px; flex-wrap: wrap; }
.footer-brand { flex: 2; min-width: 220px; }
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 10px; line-height: 1.7; }
.footer-home-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: color 0.15s; }
.footer-home-link:hover { color: var(--accent-hover); }
.footer-links { flex: 1; min-width: 120px; }
.footer-links h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.88rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); text-align: center; padding: 20px; font-size: 0.8rem; color: var(--muted); background: var(--surface-2); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 860px) {
  .calendar-layout { grid-template-columns: 1fr; }
  .month-panel { flex-direction: row; gap: 16px; flex-wrap: wrap; }
  .holiday-list { flex-direction: row; flex-wrap: wrap; }
  .holiday-item { min-width: 220px; flex: 1; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 20px; }
  .hero { padding: 70px 16px 56px; }
  .hero-stats { padding: 14px 8px; flex-wrap: wrap; gap: 6px; }
  .hstat { padding: 0 8px; }
  .hstat-div { display: none; }
  .cal-cell { min-height: 42px; padding: 5px 2px 2px; }
  .day-num { font-size: 0.82rem; }
  .day-label { display: none; }
  .year-holiday-grid { grid-template-columns: 1fr; }
  .footer-inner { gap: 32px; }
}
