:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f4f7f9;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-primary: #0056b3;
    /* Trust Blue */
    --color-primary-dark: #003d80;
    --color-accent: #f1c40f;
    --color-border: #e1e4e8;

    --font-main: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    --container-width: 1100px;
    --header-height: 70px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2bd9d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accent {
    color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn--outline {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn--outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn--lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.header__nav ul {
    display: flex;
    gap: 30px;
}

.header__nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.header__nav a:hover {
    color: var(--color-primary);
}

/* Hero */
.hero {
    padding-top: calc(var(--header-height) + 120px);
    padding-bottom: 140px;
    position: relative;
    overflow: hidden;
    background-image: url('hero_bg_real.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

/* Overlay for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 30, 0.7);
    /* Dark blue overlay */
    z-index: 1;
}

.hero__container {
    display: block;
    /* Changed from grid to block for centered layout or simple block */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 24px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero .btn--outline {
    border-color: #ffffff;
    color: #ffffff;
}

.hero .btn--outline:hover {
    background-color: #ffffff;
    color: var(--color-primary);
}

/* Hero Visual Animation */
.speed-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    opacity: 0.2;
}

.circle--1 {
    width: 300px;
    height: 300px;
    animation: pulse 4s infinite;
}

.circle--2 {
    width: 200px;
    height: 200px;
    animation: pulse 4s infinite 1s;
}

.circle--3 {
    width: 100px;
    height: 100px;
    animation: pulse 4s infinite 2s;
}

.code-block {
    width: 200px;
    height: 140px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.code-line {
    height: 10px;
    background: var(--color-border);
    margin-bottom: 10px;
    border-radius: 4px;
    width: 100%;
}

.code-line:nth-child(1) {
    width: 80%;
    background: var(--color-primary);
}

.code-line:nth-child(2) {
    width: 60%;
}

.code-line:nth-child(3) {
    width: 90%;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section__title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 900;
}

.section__desc {
    text-align: center;
    max-width: 700px;
    margin: -40px auto 60px;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

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

.section-visual {
    max-width: 200px;
    margin: -20px auto 30px;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.problem__card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.problem__card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.problem__card p {
    color: var(--color-text-muted);
}

/* Solution */
.solution {
    background: #f8fafc;
    overflow: hidden;
}

.solution__container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 50px;
}

.solution__visual {
    text-align: center;
}

.floating-img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 86, 179, 0.2));
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .solution__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solution__visual {
        order: -1;
        margin-bottom: 30px;
    }

    .solution__content h2,
    .solution__content p {
        text-align: center !important;
    }
}

/* Service */
.service__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    position: relative;
}

.step__num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-border);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    z-index: 0;
}

.step h3 {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* Price */
.price__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.price__card {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price__card.recommended {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.1);
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.price-val {
    font-size: 3rem;
    font-weight: 900;
    margin: 20px 0 10px;
    font-family: var(--font-main);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.tax-note {
    font-size: 1rem;
    font-weight: normal;
    color: var(--color-text-muted);
}

.price-val .small {
    font-size: 1.5rem;
}

.price-desc {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    min-height: 3em;
}

.price-features {
    text-align: left;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-features li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.price-features li:last-child {
    border-bottom: none;
}

.note {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Flow */
.flow__list {
    max-width: 800px;
    margin: 0 auto;
}

.flow__list li {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.flow__icon {
    font-size: 2.5rem;
    background: var(--color-bg-alt);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
}

.flow__content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    margin-top: 10px;
}

.flow__content p {
    color: var(--color-text-muted);
}

/* Contact */
.contact {
    background: #f1f5f9;
}

.contact__container {
    max-width: 700px;
}

.contact__form {
    background: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: border-color 0.3s;
}

.radio-label input:checked+.radio-custom {
    border-color: var(--color-primary);
}

.radio-label input:checked+.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    color: var(--color-primary);
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.success-message p {
    color: var(--color-text-muted);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer__links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.copyright {
    color: #999;
    font-size: 0.8rem;
}

/* Comparison Table */
.comparison-section {
    margin-top: 80px;
}

.comparison-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
    /* Ensure it doesn't get too squished on mobile */
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table thead th {
    background: #f8fafc;
    border-bottom: 2px solid #e1e4e8;
    font-weight: 700;
}

.comparison-table th:first-child {
    text-align: left;
    width: 30%;
}

.comparison-table th.highlight-header {
    color: var(--color-primary);
    font-size: 1.2rem;
    width: 35%;
}

.comparison-table th.competitor-header {
    color: #666;
    width: 35%;
}

.comparison-table td.highlight {
    font-weight: bold;
    color: var(--color-primary);
    background-color: #f0f9ff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__actions {
        justify-content: center;
    }

    .header__nav {
        display: none;
        /* Simple mobile hide for now */
    }

    .speed-visual {
        height: 300px;
    }

    .footer__links {
        flex-direction: column;
        gap: 16px;
    }
}