/* 
   ===============================================
   Design System & Tokens
   ===============================================
*/
:root {
    /* Colors */
    --color-primary: #0A2540; /* Deep Navy Blue */
    --color-secondary: #0084FF; /* Vibrant Blue */
    --color-accent: #F2A900; /* Subtle Gold/Orange for emphasis */
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-bg-light: #F8F9FA;
    --color-bg-white: #FFFFFF;
    --color-border: #E0E0E0;
    
    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Others */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,10,40,0.12);
}

/* 
   ===============================================
   Reset & Base Styles
   ===============================================
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    line-height: 1.7;
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 
   ===============================================
   Layout / Utilities
   ===============================================
*/
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-small {
    max-width: 800px;
}

.section-padding {
    padding: var(--space-xl) 0;
}
@media (max-width: 768px) {
    .section-padding { padding: var(--space-lg) 0; }
}

.bg-light { background-color: var(--color-bg-light); }
.bg-dark { background-color: var(--color-primary); color: #fff; }
.bg-primary { background-color: var(--color-primary); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: #fff; }
.text-muted { color: var(--color-text-muted); }
.text-accent { color: #D32F2F; } /* For minus values e.g. in subsidy */
.text-sm { font-size: var(--text-sm); }

.mb-small { margin-bottom: var(--space-sm); }
.mb-medium { margin-bottom: var(--space-md); }
.mb-large { margin-bottom: var(--space-lg); }
.mt-small { margin-top: var(--space-sm); }
.mt-medium { margin-top: var(--space-md); }
.mt-large { margin-top: var(--space-lg); }

.hidden-pc { display: none; }
@media (max-width: 768px) {
    .hidden-pc { display: block; }
    .hidden-sp { display: none; }
}

.highlight {
    color: var(--color-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.grid-2 > * {
    min-width: 0;
}
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
}

/* 
   ===============================================
   Components
   ===============================================
*/
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}
.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }
.btn-lg { padding: 16px 32px; font-size: var(--text-lg); min-width: 250px; }

.btn-primary {
    background-color: var(--color-secondary);
    color: #fff;
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background-color: #006bce;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: #fff;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
}

/* Section Title */
.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}
.section-title.text-white::after {
    background-color: var(--color-accent);
}

/* 
   ===============================================
   Specific Sections
   ===============================================
*/

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    display: flex;
    align-items: center;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary);
}
.logo a {
    display: flex;
    align-items: center;
}
.header-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* Hero */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    color: #fff;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax effect */
    z-index: -2;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(10,37,64,0.95) 0%, rgba(10,37,64,0.7) 100%);
    z-index: -1;
}
.hero-content {
    animation: slideUp 1s ease-out forwards;
}
.hero-label {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--text-sm);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    font-weight: 900;
}
.hero-title .highlight {
    color: #fff;
    font-size: 0.6em;
    font-weight: 500;
    opacity: 0.9;
    display: block;
    margin-bottom: -10px;
}
.hero-main-copy {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.5;
}
.hero-sub-copy {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    max-width: 600px;
}
.hero-points {
    margin-bottom: var(--space-lg);
}
.hero-points li {
    font-size: var(--text-lg);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.hero-points li::before {
    content: '✓';
    color: var(--color-accent);
    margin-right: 12px;
    font-weight: bold;
    font-size: 1.2em;
}
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2.2rem; }
    .hero-main-copy { font-size: 1.4rem; }
    .hero-points li { font-size: 1rem; }
    .hero-cta-group { flex-direction: column; }
    .btn-lg { width: 100%; }
}

/* Pain Points */
.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.pain-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    transition: var(--transition);
    border: 1px solid var(--color-border);
}
.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}
.pain-icon {
    font-size: 2rem;
    margin-right: 16px;
    line-height: 1;
}
.pain-card p {
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* Intro */
.intro-text {
    font-size: var(--text-2xl);
    line-height: 1.8;
}
.intro-text strong {
    color: var(--color-secondary);
    background: linear-gradient(transparent 70%, rgba(0, 132, 255, 0.2) 0%);
}
@media (max-width: 768px) {
    .intro-text { font-size: var(--text-lg); }
}

/* Features */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.feature-item {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.feature-item.reverse {
    flex-direction: row-reverse;
}
.feature-content {
    flex: 1;
    padding: 40px;
}
.feature-image {
    flex: 1;
    height: 100%;
}
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    display: block;
    margin-bottom: -20px;
}
.feature-title {
    font-size: var(--text-2xl);
    margin-bottom: 16px;
    color: var(--color-accent);
}
@media (max-width: 900px) {
    .feature-item, .feature-item.reverse {
        flex-direction: column;
    }
    .feature-image {
        width: 100%;
        height: 250px;
    }
}

/* Tables */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .table-container.has-scroll::before {
        content: '← 横にスクロールできます →';
        display: block;
        text-align: right;
        font-size: var(--text-xs);
        color: var(--color-secondary);
        margin-bottom: 8px;
        font-weight: 500;
    }
    .table-container.has-scroll .data-table {
        min-width: 750px;
    }
    .table-container.has-scroll .subsidy-table-wide {
        min-width: 450px;
    }
    .data-table th, .data-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
    .data-table .highlight-row th, .data-table .highlight-row td {
        font-size: 1rem;
    }
    .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td,
    .stacked-table-m, .stacked-table-m tbody, .stacked-table-m tr, .stacked-table-m th, .stacked-table-m td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .info-table th, .stacked-table-m th {
        border-bottom: none;
        padding-bottom: 4px;
        width: 100%;
        text-align: left;
    }
    .info-table td {
        padding-top: 0;
        padding-bottom: 20px;
    }
    .stacked-table-m td {
        text-align: right;
        padding-top: 0;
        padding-bottom: 16px;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
.info-table th, .info-table td {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}
.info-table th {
    background: var(--color-bg-light);
    width: 200px;
    text-align: left;
    font-weight: 600;
}
.data-table th, .data-table td {
    padding: 16px;
    border: 1px solid var(--color-border);
}
.data-table th {
    background: var(--color-primary);
    color: #fff;
    font-weight: 500;
    text-align: center;
}
.data-table .highlight-row th, .data-table .highlight-row td {
    background-color: rgba(0, 132, 255, 0.1);
    color: var(--color-primary);
    font-size: 1.1em;
}
.data-table .highlight-cell {
    color: var(--color-secondary);
    font-weight: bold;
    background-color: rgba(0, 132, 255, 0.05);
}

.check-list li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 8px;
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.5em;
    width: 6px; height: 10px;
    border: solid var(--color-secondary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.info-box, .subsidy-box {
    background: #fff;
    border-left: 4px solid var(--color-secondary);
    padding: 24px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    box-shadow: var(--shadow-sm);
}
.info-box-title, .subsidy-title {
    font-size: var(--text-lg);
    margin-bottom: 12px;
    color: var(--color-primary);
}

/* Face to Face Section */
.f2f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: stretch; /* Make both columns same height visually */
}
.f2f-desc {
    font-size: var(--text-lg);
    line-height: 1.8;
}
.f2f-desc strong {
    color: var(--color-accent);
}
.benefit-card {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
    height: 100%;
}
.benefit-card h4 {
    font-size: var(--text-xl);
    margin-bottom: 24px;
    color: var(--color-accent);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.benefit-card ul li {
    margin-bottom: 16px;
    display: flex;
}
.benefit-card ul li::before {
    content: '★';
    color: var(--color-accent);
    margin-right: 12px;
}
@media (max-width: 768px) {
    .f2f-grid { grid-template-columns: 1fr; }
}

/* Pricing Section */
.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}
.price-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
    flex: 1;
    border: 2px solid transparent;
    transition: var(--transition);
}
.price-card.standard {
    border-color: var(--color-secondary);
    transform: scale(1.05);
}
.price-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
}
.price-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 20px;
    color: var(--color-primary);
}
.price {
    margin-bottom: 20px;
}
.price .amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-secondary);
}
.price .unit {
    font-size: var(--text-base);
    color: var(--color-text-muted);
}
@media (max-width: 600px) {
    .pricing-cards { flex-direction: column; }
    .price-card.standard { transform: scale(1); }
    .price-card:hover { transform: translateY(-5px); }
}

/* Profile */
.profile-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}
.profile-name {
    font-size: var(--text-2xl);
    margin-bottom: 8px;
    color: var(--color-primary);
}
.profile-title {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 24px;
}
.profile-bio {
    margin-bottom: 24px;
}
.profile-strengths {
    background: var(--color-bg-light);
    padding: 24px;
    border-radius: var(--border-radius-md);
}

/* Flow */
.flow-steps {
    max-width: 800px;
    margin: 0 auto;
}
.step {
    display: flex;
    margin-bottom: 24px;
    background: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}
.step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
    border-color: var(--color-secondary);
}
.step-num {
    background: var(--color-primary);
    color: #fff;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
}
.step-content {
    padding: 24px;
    flex: 1;
}
.step-content h4 {
    font-size: var(--text-lg);
    margin-bottom: 8px;
    color: var(--color-primary);
}
.step-content p {
    margin: 0;
    color: var(--color-text-muted);
}

/* FAQ */
.faq-list {
    border-top: 1px solid var(--color-border);
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 0;
    background: none;
    border: none;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    color: var(--color-secondary);
}
.faq-question i {
    font-style: normal;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.faq-question i::before {
    content: '+';
}
.faq-question.active i {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding-bottom: 24px;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary), #1a3c61);
    color: #fff;
}
.cta-heading {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
    .cta-heading {
        font-size: var(--text-xl);
    }
}
.cta-desc {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}
.cta-center {
    justify-content: center;
}

/* Footer */
.footer {
    background: #051424;
    color: #fff;
    padding: 60px 0 20px;
}
.footer-info {
    margin-bottom: 40px;
    text-align: center;
}
.footer-info strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}
.footer-info p {
    color: rgba(255,255,255,0.7);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
}

/* Animations Tools */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Forms */
.contact-form-container {
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text-main);
}
.form-group {
    margin-bottom: 24px;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 768px) {
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
@media (min-width: 768px) {
    .form-label { margin-bottom: 0; }
    .row { align-items: flex-start; }
    .form-label { margin-top: 12px; }
}
.badge {
    font-size: var(--text-xs);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: normal;
    line-height: 1;
}
.badge.required {
    background-color: #D32F2F;
    color: #fff;
}
.badge.optional {
    background-color: var(--color-text-muted);
    color: #fff;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-base);
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    background-color: var(--color-bg-light);
}
.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}
textarea.form-control {
    resize: vertical;
}
.text-left { text-align: left; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }

