/* --- Root Variables & Reset --- */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #f4f6f9;
    --text-main: #2c3e50;
    --text-muted: #636e72;
    --accent-red: #b32024;   /* Redmine Red */
    --accent-red-dark: #8a191c;
    --accent-red-light: #fbecec;
    --accent-gold: #f1c40f;  /* Gold accent */
    --accent-gold-dark: #d4af37;
    --card-bg: #ffffff;
    --border-color: #e2e6ea;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
    --redmine-nav-bg: #223342; /* Redmine Top Bar Color */
    
    --font-main: 'Noto Sans JP', sans-serif;
    --font-head: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-hand: 'Dancing Script', cursive; /* Handwritten Font */
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* --- Redmine Top Bar Style (Fixed Layout) --- */
#top-menu {
    background-color: var(--redmine-nav-bg);
    height: 30px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px; 
    font-family: Verdana, sans-serif;
    position: relative;
    z-index: 1000;
    overflow: hidden; 
}

#top-menu ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

#top-menu li {
    list-style: none;
}

#top-menu a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    white-space: nowrap;
}

#top-menu a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-head);
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    border: 2px solid var(--accent-red);
    box-shadow: 0 4px 15px rgba(179, 32, 36, 0.2);
}

.btn-primary:hover {
    background-color: #901a1d;
    border-color: #901a1d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(179, 32, 36, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    margin-left: 20px;
}

.btn-ghost:hover {
    background: var(--text-main);
    color: white;
    transform: translateY(-2px);
}

.btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 8px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--accent-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-top: 15px;
}

/* --- History Navigation --- */
.history-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.history-nav a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-red);
    background: #fff;
    border: 1px solid var(--accent-red);
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.history-nav a:hover {
    background: var(--accent-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(179, 32, 36, 0.2);
}

/* --- Hero Area --- */
.hero {
    min-height: calc(90vh - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        radial-gradient(circle at center, rgba(241, 196, 15, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    overflow: hidden;
    color: #ffffff;
    padding: 60px 0; 
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.03) 0deg 5deg, transparent 5deg 15deg);
    animation: rotateSlow 60s linear infinite;
    pointer-events: none;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.hero-buttons .btn-ghost {
    margin-left: 0;
}

/* Logo Wrapper */
.logo-wrapper {
    position: relative;
    display: inline-block;
    margin: 20px auto 30px; 
}

.hero-logo {
    display: block;
    width: 130px; 
    height: auto;
    background-color: #ffffff; 
    padding: 15px; 
    border-radius: 20px; 
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); 
    border: 4px solid var(--accent-gold); 
    position: relative;
    z-index: 2;
}

/* Handwritten Thank You Message */
.hero-thanks {
    position: absolute;
    top: -23px;
    left: calc(50% + 40px);
    transform: translateX(10%) rotate(-6deg);
    width: 300px; 
    font-family: var(--font-hand);
    font-size: 1.8rem;
    line-height: 1.1;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 5;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.2);
    letter-spacing: 0.05em;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    font-weight: 700;
    padding: 0 20px;
}

/* Hero Buttons */
.hero .btn-primary {
    background-color: var(--accent-gold);
    color: #333;
    border: 2px solid var(--accent-gold);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
}

.hero .btn-primary:hover {
    background-color: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.6);
}

.hero .btn-ghost {
    border: 2px solid rgba(255,255,255,0.6);
    color: #ffffff;
}

.hero .btn-ghost:hover {
    background: #ffffff;
    color: var(--accent-red);
    border-color: #ffffff;
}

/* --- Stats/Intro Section --- */
.intro {
    padding: 100px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.intro-grid {
    display: block;
    text-align: center;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto;
}

.intro-text h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

.intro-text h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.intro-screenshot-wrapper {
    margin-top: 50px;
    position: relative;
}

.intro-screenshot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid #e2e6ea;
    display: block;
}

/* --- History Section --- */
.history {
    padding: 120px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.history-timeline {
    position: relative;
    padding-left: 40px;
    border-left: 2px solid #cbd5e0;
    margin-left: 20px;
}

.history-year {
    position: relative;
    margin-bottom: 60px;
    scroll-margin-top: 40px;
}

.history-year::before {
    content: '';
    position: absolute;
    left: -53px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: var(--bg-secondary);
    border: 4px solid var(--accent-red);
    border-radius: 50%;
    z-index: 2;
}

.year-label {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: inline-block;
    background: var(--bg-secondary);
    padding-right: 15px;
}

.version-card {
    background: var(--card-bg);
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 20px;
    transition: 0.3s;
    position: relative;
}

.version-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.v-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-red);
    font-weight: 700;
}

.v-tag {
    font-size: 0.75rem;
    background: #edf2f7;
    padding: 4px 10px;
    border-radius: 4px;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
}

.v-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.v-features {
    padding-left: 0;
}

.v-features li {
    position: relative;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-muted);
    padding-left: 0;
    display: flex;
    align-items: baseline;
}

/* Date in List */
.v-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #95a5a6;
    min-width: 90px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- Information Section --- */
.information {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.info-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-red);
}

/* .info-card i,
.info-card .info-icon-left {
    font-size: 2rem;
    color: var(--text-main);
    margin-right: 20px;
} */

.info-card .info-icon-left {
    width: 36px;
    height: 36px;
    fill: currentColor;
    margin-right: 20px;
}

.info-card .info-text {
    flex-grow: 1;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-main);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.info-card .arrow {
    /* font-size: 1rem; */
    color: var(--text-muted);
    margin-right: 0;
    transition: 0.3s;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.info-card:hover .arrow {
    color: var(--accent-red);
    transform: translateX(5px);
}

/* --- Get Started Section --- */
.get-started {
    padding: 100px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 36px 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(179, 32, 36, 0.15);
    border-color: var(--accent-red);
}

.action-card .icon-box {
    width: 68px;
    height: 68px;
    background: var(--bg-secondary);
    border-radius: 22px; /* Smooth squircle */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-main);
    transition: all 0.4s ease;
}

.action-card .icon-box svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.action-card:hover .icon-box {
    background: var(--accent-red);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(179, 32, 36, 0.2);
}

.action-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: 0.03em;
}

.action-card .arrow-mini {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    fill: currentColor;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.action-card:hover .arrow-mini {
    color: var(--accent-red);
    opacity: 1;
    transform: translateX(4px);
}

/* --- Footer --- */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 80px 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .hero h1 { font-size: 3.2rem; margin-bottom: 10px; }
    .intro-grid, .info-grid, .action-grid { grid-template-columns: 1fr; }
    .btn-ghost { margin-left: 0; margin-top: 15px; display: block; width: 100%; }
    .btn { width: 100%; display: flex; }
    
    .history-timeline {
        padding-left: 25px;
        margin-left: 5px;
    }
    .history-year::before { left: -34px; }
    
    .version-card { padding: 25px; }
    
    /* Logo & Message adjustments for mobile */
    .logo-wrapper { margin: 30px auto 20px; }
    .hero-logo { width: 100px; padding: 10px; margin: 0 auto; }
    
    .hero-thanks {
        position: relative;
        top: auto; left: auto; 
        transform: none;
        width: 100%;
        text-align: center;
        margin-top: 10px;
        font-size: 1.5rem;
        color: #ffffff;
    }
    
    #top-menu { display: none; }
    
    /* List item alignment on mobile */
    .v-features li {
        flex-direction: column;
    }
    .v-date {
        margin-bottom: 2px;
    }
}