/* ========================================
   グローバル設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.8;
    font-size: 16px;
}

/* ========================================
   カラーパレット（CSS変数）
   ======================================== */
:root {
    --primary: #1a1a1a;
    --accent: #e63946;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ユーティリティ
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

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

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

/* ========================================
   タイポグラフィ
   ======================================== */
h1 {
    font-family: 'Zen Kurenaido', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 20px;
}

h2 {
    font-family: 'Zen Kurenaido', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
}

h3 {
    font-family: 'Zen Kurenaido', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

p {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

.highlight {
    color: var(--accent);
    font-weight: 700;
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: var(--accent);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn--gradient {
    background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
    color: #ffffff;
}

.btn--gradient:hover {
    background: linear-gradient(135deg, #c1121f 0%, #a00515 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.4);
}

/* ========================================
   セクション：Hero
   ======================================== */
.hero {
    background: var(--primary);
    color: var(--bg-white);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(230, 57, 70, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(230, 57, 70, 0.20) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridMove {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--bg-white);
    font-size: 64px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 span {
    color: var(--accent);
}

.hero .subtitle {
    color: #ddd;
    font-size: 32px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: 700;
    line-height: 1.4;
}

.hero__desc {
    font-size: 16px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero__cta {
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.5s both;
}

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

/* ========================================
   セクション：Problem（採用課題）
   ======================================== */
.problems {
    background-color: var(--bg-white);
}

.problems__title {
    text-align: center;
    margin-bottom: 50px;
}

.problems__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.problem__item {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.problem__item:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.problem__number {
    font-family: 'Space Mono', monospace;
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
}

.problem__text {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* ========================================
   セクション：Solution
   ======================================== */
.solution {
    background-color: var(--bg-light);
}

.solution__title {
    text-align: center;
    margin-bottom: 50px;
}

.solution__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 50px;
    align-items: start;
}

.solution__item {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.solution__item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.solution__item h3 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 28px;
}

.solution__item h3::before {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 15px;
}

.solution__subtitle {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
}

.solution__image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin: 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.solution__image:hover {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.3);
}

.solution__description {
    color: var(--text-light);
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 25px;
}

/* ========================================
   セクション：Flow
   ======================================== */
.flow {
    background-color: var(--bg-white);
}

.flow__timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
    padding: 40px 0;
    align-items: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.flow__arrow {
    text-align: center;
    font-size: 32px;
    color: var(--accent);
    font-weight: 700;
    margin: 0;
    padding: 10px 0;
}

.flow__step {
    position: relative;
    background-color: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
}

.flow__step:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.flow__step::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    border: 3px solid var(--bg-white);
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.flow__step:nth-child(1)::before { content: '①'; }
.flow__step:nth-child(3)::before { content: '②'; }
.flow__step:nth-child(5)::before { content: '③'; }
.flow__step:nth-child(7)::before { content: '④'; }
.flow__step:nth-child(9)::before { content: '⑤'; }
.flow__step:nth-child(11)::before { content: '⑥'; }

.flow__step h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    margin-top: 10px;
}

.flow__step p {
    font-size: 13px;
    color: var(--text-light);
}

/* ========================================
   セクション：Case Study
   ======================================== */
.cases {
    background-color: var(--bg-light);
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.case {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.case:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.case__header {
    background: linear-gradient(135deg, var(--primary), #2a2a2a);
    color: var(--bg-white);
    padding: 30px;
    text-align: center;
}

.case__name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case__category {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case__content {
    padding: 30px;
}

.case__comment {
    font-style: italic;
    color: var(--text-light);
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
}

.case__author {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ========================================
   セクション：Value Proposition
   ======================================== */
.values {
    background-color: var(--bg-white);
}

.values__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.value:hover {
    border-color: var(--accent);
    background-color: var(--bg-white);
    transform: translateY(-8px);
}

.value__icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.value__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.value__text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   セクション：Comparison
   ======================================== */
.comparison {
    background-color: var(--bg-light);
}

.comparison__table {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--primary);
    color: var(--bg-white);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

td {
    color: var(--text-dark);
    font-size: 14px;
}

.check {
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
}

.cross {
    color: #999;
    font-weight: 700;
    font-size: 18px;
}

/* ========================================
   セクション：Testimonials
   ======================================== */
.testimonials {
    background-color: var(--bg-white);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    position: relative;
}

.testimonial__badge {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.testimonial__text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.9;
}

.testimonial__author {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.testimonial__role {
    font-size: 12px;
    color: var(--text-light);
}

/* ========================================
   セクション：Pricing
   ======================================== */
.pricing {
    background-color: var(--bg-light);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.pricing__card {
    background-color: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing__card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
}

.pricing__card--featured {
    border-color: var(--accent);
    transform: scale(1.05);
}

.pricing__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing__name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: 10px;
}

.pricing__description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    min-height: 60px;
}

.pricing__features {
    text-align: left;
    margin-bottom: 30px;
    font-size: 13px;
    color: var(--text-dark);
}

.pricing__features li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pricing__features li::before {
    content: '✓ ';
    color: var(--accent);
    font-weight: 700;
    margin-right: 8px;
}

/* ========================================
   セクション：FAQ
   ======================================== */
.faq {
    background-color: var(--bg-white);
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
}

.faq__item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq__question {
    background-color: var(--bg-light);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
    transition: all 0.3s ease;
}

.faq__question:hover {
    background-color: var(--primary);
    color: var(--bg-white);
}

.faq__toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq__item.active .faq__toggle {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--bg-white);
}

.faq__item.active .faq__answer {
    padding: 20px;
    max-height: 500px;
}

.faq__text {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   セクション：Final CTA
   ======================================== */
.final-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #2a2a2a 100%);
    color: var(--bg-white);
    text-align: center;
    padding: 100px 20px;
}

.final-cta h2 {
    color: var(--bg-white);
    font-size: 48px;
    margin-bottom: 20px;
}

.final-cta .subtitle {
    color: #ddd;
    margin-bottom: 50px;
}

.final-cta p {
    color: #ffffff;
}

/* ========================================
   セクション：Footer
   ======================================== */
footer {
    background-color: var(--primary);
    color: #999;
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid #2a2a2a;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.footer__links {
    margin-bottom: 20px;
}

.footer__links a {
    margin: 0 15px;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 20px;
    }

    .section {
        padding: 50px 0;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 24px;
    }

    .problems__grid,
    .values__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .solution__grid {
        grid-template-columns: 1fr;
    }

    .cases__grid {
        grid-template-columns: 1fr;
    }

    .pricing__card--featured {
        transform: scale(1);
    }

    .flow__timeline {
        max-width: 100%;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 12px 8px;
    }

    .final-cta h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .final-cta h2 {
        font-size: 24px;
    }
}

/* ========================================
   スクロールアニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
