/* Typography & Reset */
:root {
    --primary: #E60012; /* High impact Red */
    --black: #1A1A1A; /* Softer black for better readability */
    --dark-grey: #2D3748; /* Slate gray */
    --grey: #F7FAFC; /* Softer, cooler off-white */
    --text-body: #4A5568; /* Dark gray for body text instead of harsh black */
    --white: #FFFFFF;
}

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

body {
    /* Standard high-quality Japanese system font stack */
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
    color: var(--text-body);
    background-color: var(--white);
    line-height: 1.8; /* Increased line-height for better Japanese readability */
    letter-spacing: 0.03em; /* Slight letter spacing */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--black);
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background-color: var(--primary);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-jp {
    font-size: 0.9rem;
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-massive {
    padding: 20px 40px;
    font-size: 1.3rem;
    width: 100%;
    max-width: 500px;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background: var(--grey);
    border-bottom: 2px solid var(--black);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-label {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw + 1rem, 3.8rem);
    line-height: 1.3;
    margin-bottom: 30px;
    word-break: keep-all;
}

.hero h1 .hl-black {
    background: var(--black);
    color: var(--white);
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 8px;
}

.hero h1 .hl-text {
    display: inline-block;
    margin-top: 10px;
}

.hero-sub {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-sub strong {
    color: var(--primary);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Marquee */
.marquee-container {
    background: var(--black);
    color: var(--white);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid var(--primary);
}

.marquee {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    animation: scroll 20s linear infinite;
}

.marquee .dot {
    color: var(--primary);
    margin: 0 30px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Common Section Styles */
section {
    padding: 120px 0;
    border-bottom: 2px solid var(--black);
}

.section-title {
    margin-bottom: 80px;
    position: relative;
}

.bg-text {
    font-family: 'Oswald', sans-serif;
    font-size: 8rem;
    color: var(--grey);
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    line-height: 1;
    user-select: none;
}

.section-title h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--dark-grey);
}

/* Impact on Citizens Section */
.section-impact {
    background: var(--white);
}

.impact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.impact-card {
    background: var(--grey);
    padding: 40px;
    border-radius: 12px; /* Added rounded corners */
    border-top: 6px solid var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card.highlight-danger {
    background: #FFF5F5; /* Softer red background */
    border-top: 6px solid #C53030;
}

.impact-card.highlight-danger h4 {
    color: #C53030;
}

.impact-card.highlight-danger .impact-icon .material-icons-outlined {
    color: #C53030;
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.impact-icon {
    margin-bottom: 20px;
}

.impact-icon .material-icons-outlined {
    font-size: 3rem;
    color: var(--primary);
}

.impact-card h4 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--black);
    padding-bottom: 10px;
}

.impact-card p {
    font-size: 1.05rem;
}

.impact-card strong {
    color: var(--primary);
}

/* Structural Flaws Section */
.section-flaws {
    background: var(--black);
    color: var(--white);
}

.section-flaws .bg-text {
    color: rgba(255,255,255,0.05);
}

.section-flaws h3, .section-flaws h4 {
    color: var(--white);
}

.section-flaws p {
    color: #CCCCCC;
}

.flaw-timeline {
    max-width: 800px;
    margin: 0 auto 80px;
}

.flaw-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.flaw-item::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 90px;
    bottom: -60px;
    width: 2px;
    background: rgba(255,255,255,0.2);
}

.flaw-item:last-child::after {
    display: none;
}

.flaw-number {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    min-width: 80px;
}

.flaw-content {
    background: var(--dark-grey);
    padding: 40px;
    border-radius: 12px; /* Rounded corners */
    flex-grow: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.flaw-content h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.5;
}

.flaw-content p {
    color: #E2E8F0; /* Brighter gray for better contrast on dark background */
    font-size: 1.05rem;
}

.quote-panel {
    background: var(--white); /* Changed to white for readability */
    color: var(--black);
    padding: 60px;
    text-align: center;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 2px solid var(--primary);
}

.quote-mark {
    font-family: serif;
    font-size: 8rem;
    line-height: 1;
    position: absolute;
    top: -30px;
    left: 30px;
    color: rgba(230, 0, 18, 0.1); /* Primary color with low opacity */
}

.quote-panel p {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.quote-panel strong {
    background: linear-gradient(transparent 70%, rgba(230, 0, 18, 0.2) 70%);
}

.quote-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-body);
}

/* CTA Section */
.section-cta {
    background: var(--white);
}

.section-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.action-plan {
    background: var(--grey);
    padding: 40px;
    border-radius: 12px;
    margin: 0 auto 50px;
    max-width: 800px;
    text-align: left;
    border: 2px solid var(--black);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.action-plan h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: var(--black);
}

.plan-goal {
    text-align: center;
    font-size: 1.2rem !important;
    color: var(--primary);
    margin-bottom: 30px !important;
    padding-bottom: 15px;
    border-bottom: 2px dashed #CCC;
}

.plan-steps {
    list-style: none;
    counter-reset: step-counter;
}

.plan-steps li {
    position: relative;
    padding-left: 55px;
    margin-bottom: 25px;
}

.plan-steps li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: -5px;
    width: 40px;
    height: 40px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
}

.plan-steps li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 5px;
}

.plan-steps li:last-child {
    margin-bottom: 0;
}

.cta-sub {
    font-size: 0.9rem !important;
    color: #666;
    margin-top: 20px;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-brand span {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
}

.footer-top p {
    color: #999;
}

.footer-org {
    margin-top: 30px;
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 8px;
    display: inline-block;
    text-align: left;
    max-width: 600px;
    border-left: 4px solid var(--primary);
}

.footer-org strong {
    display: block;
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.1rem;
}

.footer-org p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #CCC;
}

.footer-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 span:first-child { display: inline-block; }
    .hero-visual { display: none; }
    .impact-cards { grid-template-columns: 1fr; }
    .bg-text { font-size: 5rem; }
}

@media (max-width: 768px) {
    header { position: relative; }
    .header-inner { height: 60px; }
    .hero { padding-top: 40px; padding-bottom: 60px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-sub { font-size: 1.1rem; margin-bottom: 30px; }
    .section-title { margin-bottom: 50px; }
    .section-title h3 { font-size: 1.6rem; }
    .section-title p { font-size: 1rem; }
    section { padding: 80px 0; }
    
    .impact-card { padding: 30px 20px; }
    
    .flaw-item { flex-direction: column; gap: 15px; margin-bottom: 40px; }
    .flaw-item::after { display: none; }
    .flaw-number { font-size: 3rem; text-align: center; margin-bottom: 10px; }
    .flaw-content { padding: 25px 20px; }
    .flaw-content h4 { font-size: 1.3rem; }
    
    .quote-panel { padding: 40px 20px; border-radius: 12px; }
    .quote-mark { font-size: 5rem; top: -15px; left: 15px; }
    .quote-panel p { font-size: 1.2rem; }
    
    .btn-massive { font-size: 1.1rem; padding: 15px 20px; }
    .bg-text { font-size: 3.5rem; top: -30px; }
    
    .marquee { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .logo-en { font-size: 1.2rem; }
    .logo-jp { display: none; /* Hide JP logo text on very small screens to fit the button */ }
    .btn-sm { padding: 6px 12px; font-size: 0.75rem; }
    .bg-text { font-size: 2.8rem; top: -20px; }
    .section-cta h2 { font-size: 1.6rem; }
}
