:root {
    --primary-color: #3494E6; /* 明るい水色 */
    --secondary-color: #86A8E7; /* 淡い水色 */
    --text-color: #333;
    --text-light: #555;
    --bg-light: #f7f8fc;
    --hero-bg-color: #eaf5ff; /* ヒーローセクション用の非常に淡い水色 */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-family: 'Noto Sans JP', sans-serif;
    --container-width: 1100px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Base and Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

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

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

.section {
    padding: 80px 0;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.4;
}

.section-title span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-light {
    background-color: var(--bg-light);
}

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

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 5px 15px rgba(52, 148, 230, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 148, 230, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 148, 230, 0.2);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-company {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}

.logo-service {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 100px 0;
    background: var(--hero-bg-color);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    max-width: 48%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
}

.hero-image-wrapper {
    max-width: 50%;
}
.hero-image {
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}


/* Problems */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.problem-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.problem-card span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 15px;
}

.solution-declaration {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    padding: 20px;
    background: #fdfcff;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
}

.solution-declaration span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.feature-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.feature-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(52, 148, 230, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
}
.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
}
.feature-description {
    color: var(--text-light);
    margin-bottom: 20px;
}
.feature-image {
    border-radius: 10px;
}

/* Merit */
.merit-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.merit-card {
    padding: 30px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.merit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.merit-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    text-align: center;
}
.merit-title span {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.merit-description {
    color: var(--text-light);
    font-size: 1rem;
}


/* Flow */
.flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}
.flow-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.flow-step {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    width: 31%;
    z-index: 1;
}

.flow-step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(52, 148, 230, 0.1);
    border-radius: 50px;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    border: 2px solid var(--primary-color);
}
.flow-step-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}
.faq-icon {
    width: 14px;
    height: 14px;
    position: relative;
    transition: transform 0.3s ease;
}
.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background-color: var(--primary-color);
    transform-origin: center;
}
.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
}
.faq-answer p {
    padding: 0 0 20px;
    color: var(--text-light);
}

/* Contact */
.contact {
    background: var(--bg-light);
}
.contact .section-title {
    font-size: 2rem;
}
.contact-subtitle {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-light);
    line-height: 1.8;
}

.contact-subtitle .related-link {
    display: block;
    margin-top: 1em;
    font-size: 0.95rem;
}
.contact-subtitle .related-link a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}
.contact-subtitle .related-link a:hover {
    color: var(--secondary-color);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}
.form-group .required {
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 148, 230, 0.1);
}
.radio-group {
    display: flex;
    gap: 25px;
    align-items: center;
    padding-top: 5px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}
.radio-group input[type="radio"] {
    width: auto;
    accent-color: var(--primary-color);
}
.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background: #333;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: #ccc;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--white);
}
.copyright {
    font-size: 0.85rem;
}

/* Animation */
.problem-card, .feature-card, .merit-card, .flow-step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.problem-card.is-visible, .feature-card.is-visible, .merit-card.is-visible, .flow-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: 2.8rem; }
    .hero-image-wrapper { max-width: 80%; margin-top: 40px; }
    .hero-cta { justify-content: center; }
    .problem-cards, .merit-cards { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; gap: 20px; }
    .flow-steps::before { display: none; }
    .flow-step { width: 100%; }
}

@media (max-width: 768px) {
    .sp-only { display: block; }
    .pc-only { display: none; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .header-container { flex-direction: column; gap: 10px; }
    .nav { gap: 15px; }
    .nav .btn { display: none; }
    .hero { padding: 60px 0; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; }
    .problem-cards, .merit-cards { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 25px; }
    .contact-subtitle { padding: 0 10px; }
}

/* Legal Pages (tokushoho, privacy) */
.legal-page-content {
    padding: 80px 0;
}

.legal-page-content .container {
    max-width: 800px;
}

.legal-page-content h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
}

.legal-page-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.legal-page-content p, .legal-page-content li {
    line-height: 1.8;
    margin-bottom: 1em;
}

.legal-page-content ul {
    list-style-position: inside;
    padding-left: 1.5em;
}

.legal-list dt {
    font-weight: 700;
    background-color: var(--bg-light);
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.legal-list dd {
    padding: 15px;
    margin-left: 0;
    border-bottom: 1px solid var(--border-color);
}

.revision-date {
    text-align: right;
    margin-top: 40px;
    color: var(--text-light);
}