/* --- CSS Variables --- */
:root {
    --color-primary: #1e3a8a;
    /* Deep Navy - Trust */
    --color-primary-dark: #172554;
    --color-accent: #d97706;
    /* Muted Gold/Orange - Partner/Warmth */
    --color-accent-light: #f59e0b;
    --color-text-main: #1f2937;
    --color-text-sub: #4b5563;
    --color-bg-light: #f8fafc;
    --color-bg-contrast: #eef2ff;
    /* Slightly blueish tint for contrast */
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Serif JP', serif;

    --spacing-container: 1200px;
    --header-height: 80px;

    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
    font-family: var(--font-base);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

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

.btn-block {
    width: 100%;
    display: block;
}

/* --- Animation Utilities --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- 2.1 Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    z-index: 1001;
    transition: color 0.4s ease;
}

.header.scrolled .logo {
    color: var(--color-primary);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-white);
    position: relative;
}

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

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

.header.scrolled .nav-link {
    color: var(--color-text-main);
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 4px;
    background-color: var(--color-accent);
    color: var(--color-white);
}

.header-cta:hover {
    background-color: var(--color-accent-light);
    color: white;
    text-decoration: none;
}

.header-cta::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    transition: all 0.3s ease;
}

.header.scrolled .hamburger span {
    background-color: var(--color-primary);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: var(--color-primary);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: var(--color-primary);
}

/* --- 2.2 Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-color: var(--color-primary-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
    animation: zoomBg 20s infinite alternate;
}

@keyframes zoomBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(20, 30, 60, 0.9) 0%, rgba(30, 58, 138, 0.7) 60%, rgba(30, 58, 138, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--color-white);
    max-width: 880px;
    padding-left: 5%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 611px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}
.br580{
        display: none;
    }
@media (max-width: 580px) {
    .hero-actions {
        flex-direction: column;
        gap: 20px;
    }

    .container {
        width: 100%;

    }
    .br580{
        display: block;
    }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 150px;
    background: var(--color-bg-light);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    z-index: 3;
}

/* --- 2.3 Assignment Section --- */
.assignment {
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 4;
    width: 100%;
    overflow: hidden;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
    line-height: 1.4;
}

.section-title span {
    background: linear-gradient(120deg, transparent 0%, transparent 60%, rgba(217, 119, 6, 0.2) 60%, rgba(217, 119, 6, 0.2) 100%);
}

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

.assignment-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-base);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.assignment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-top-color: var(--color-accent);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 58, 138, 0.1);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary-dark);
}

.card-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

.bg-decoration-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    z-index: -1;
    white-space: nowrap;
    font-family: var(--font-base);
    pointer-events: none;
}

/* --- 2.4 Value Proposition Section --- */
.value-prop {
    background-color: var(--color-white);
}

.value-container {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.value-item:nth-child(even) {
    flex-direction: row-reverse;
}

.value-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.value-item:hover .value-image-wrapper img {
    transform: scale(1.05);
}

.value-content {
    flex: 1;
    position: relative;
}

.value-number {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(217, 119, 6, 0.1);
    line-height: 1;
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: -1;
    font-family: var(--font-base);
}

.value-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 20px;
}

.value-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.value-desc {
    color: var(--color-text-sub);
    font-size: 1.05rem;
    line-height: 1.9;
}

.value-decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.03), rgba(217, 119, 6, 0.03));
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* --- 2.5 Services Section --- */
.services {
    background-color: var(--color-bg-light);
    background-image: radial-gradient(var(--color-primary-dark) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    background-color: #f8fafc;
}

.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 250, 252, 0.95);
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(217, 119, 6, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon-box {
    width: 64px;
    height: 64px;
    background-color: rgba(238, 242, 255, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.service-card:hover .service-icon-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1) rotate(3deg);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.service-list {
    list-style: none;
    width: 100%;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--color-text-sub);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.service-list li:last-child {
    margin-bottom: 0;
}

/* --- 2.6 Pricing Plan Section --- */
.pricing {
    background-color: var(--color-white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    /* カードの高さを中央揃えに */
    margin-bottom: 60px;
}

.pricing-card {
    background-color: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 推薦プラン（真ん中）のスタイル */
.pricing-card.popular {
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.15);
    transform: scale(1.05);
    z-index: 2;
    padding-top: 60px;
    /* バッジ用スペース */
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.plan-price {
    margin: 20px 0;
    color: var(--color-text-main);
}

.price-currency {
    font-size: 1.2rem;
    vertical-align: top;
    margin-right: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-base);
}

.price-period {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.price-tax {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    display: block;
    margin-top: 5px;
}

.plan-hours {
    background-color: var(--color-bg-light);
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    display: inline-block;
    width: 100%;
}

.plan-features {
    margin-bottom: 30px;
    text-align: left;
    flex-grow: 1;
    /* 下部のボタンを揃えるため */
}

.plan-features li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text-sub);
}

.plan-features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.pricing-note {
    text-align: center;
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-note-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.pricing-note-list li {
    position: relative;
    padding-left: 24px;
    text-align: left;
}

.pricing-note-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

/* --- 2.7 Comparison Section --- */
.comparison {
    background-color: var(--color-bg-light);
    padding-bottom: 120px;
}

.comparison-wrapper {
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    padding: 60px 40px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Grid Layout for Comparison */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 20px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Header Row */
.comparison-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 10px;
}

.header-cell {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.header-cell.migiude {
    color: var(--color-accent);
    font-size: 1.5rem;
    position: relative;
}

.header-cell.migiude::after {
    content: 'Recommended';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    background-color: var(--color-accent);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    font-family: var(--font-base);
}

/* Content Cells */
.label-cell {
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.label-icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-bg-contrast);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.data-cell {
    background-color: #f3f4f6;
    padding: 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--color-text-sub);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.data-cell.highlight {
    background-color: rgba(217, 119, 6, 0.05);
    border: 2px solid rgba(217, 119, 6, 0.2);
    color: var(--color-text-main);
    font-weight: 500;
}

.cell-title {
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 1.1rem;
}

.highlight .cell-title {
    color: var(--color-accent);
}

/* --- 2.8 About Us Section --- */
.about {
    padding: 120px 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80%;
    height: 100%;
    background-color: var(--color-bg-contrast);
    z-index: 1;
    border-radius: 12px;
}

.about-content {
    flex: 1;
}

.about-label {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    display: block;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}

.about-text {
    color: var(--color-text-sub);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 2;
}

.about-signature {
    margin-top: 40px;
    font-family: var(--font-heading);
}

.about-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.about-role {
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

/* --- 2.9 Contact Section Styles (New) --- */
.contact {
    background-color: var(--color-bg-light);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-size: 0.95rem;
}

.form-label span {
    color: #ef4444;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-main);
    background-color: #fafafa;
    transition: var(--transition-base);
}

.form-input::placeholder {
    color: #a0aec0;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--color-text-sub);
}

.form-check input {
    accent-color: var(--color-accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form-submit-wrapper {
    text-align: center;
}

/* --- 2.10 Footer Styles (New) --- */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    color: rgba(255, 255, 255, 0.8);
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links li a, .footer-contact li {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s;
}

.footer-links li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.header-cta{
    position: relative;
}

.btn-tel{
    position: relative;
}

.btn-tel::before{
    content: "";
    background-image: url('img/tell.svg');
    width: 18px;
    height: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 4px;
    margin-right: 4px;
}
.header-cta::before{
    content: "";
    background-image: url('img/tell.svg');
    width: 18px;
    height: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    top: 4px;
    margin-right: 4px;
}

/* --- Responsive Styles --- */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 60px;
        gap: 50px;
    }

    .pricing-card.popular {
        transform: scale(1);
        order: -1;
        /* モバイルでは人気プランを一番上に */
    }

    .pricing-note-list {
        flex-direction: column;
        gap: 15px;
        /*  align-items: center; */
    }

    /* Comparison Responsive */
    .comparison-wrapper {
        padding: 30px 20px;
    }

    .comparison-header {
        display: none;
        /* Hide header on mobile, use internal labels */
    }

    .comparison-row {
        grid-template-columns: 1fr;
        gap: 15px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 40px;
        background-color: white;
    }

    .comparison-row:last-child {
        margin-bottom: 0;
    }

    .label-cell {
        font-size: 1.2rem;
        justify-content: center;
        margin-bottom: 10px;
    }

    .data-cell {
        text-align: center;
        padding: 20px;
    }

    /* Add pseudo-labels for mobile context */
    .data-cell::before {
        display: block;
        font-size: 0.8rem;
        color: #9ca3af;
        margin-bottom: 5px;
        font-weight: 700;
    }

    .data-cell:nth-child(2)::before {
        content: '直接雇用（正社員・パート）';
    }

    .data-cell:nth-child(3)::before {
        content: 'MIGIUDE（本サービス）';
        color: var(--color-accent);
    }

    /* About Us Responsive */
    .about-wrapper {
        flex-direction: column-reverse;
        gap: 50px;
    }

    .about-image {
        width: 90%;
        margin: 0 auto;
    }

    .about-title {
        font-size: 1.75rem;
        text-align: center;
    }

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

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

    /* Contact & Footer Responsive */
    .contact-form-wrapper {
        padding: 40px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        flex-direction: column-reverse;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        color: var(--color-text-main);
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    .hero-shape {
        height: 80px;
        width: 70%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Value Proposition Responsive */
    .value-container {
        gap: 80px;
    }

    .value-item,
    .value-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }

    .value-number {
        font-size: 4rem;
        top: -30px;
        left: 0;
    }

    .value-title {
        font-size: 1.5rem;
    }

    /* Services Responsive */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px;
    }
}