/* ベースリセットとフォント */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    background-color: #f9fafb; /* bg-gray-50 */
    color: #374151; /* text-gray-800 */
    min-height: 100vh;
}

/* 汎用的なコンテナとセクション */
.container {
    max-width: 1280px; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 6rem; /* py-24 */
    padding-bottom: 6rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem; /* mb-16 */
}

.sub-heading {
    color: #1e3a8a; /* text-blue-900 */
    font-weight: 700;
    font-size: 0.875rem; /* text-sm */
    letter-spacing: 0.05em; /* tracking-widest */
    text-transform: uppercase;
    margin-bottom: 0.5rem; /* mb-2 */
}

.main-heading {
    font-size: 2.25rem; /* text-3xl/4xl */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
}

.section-intro {
    margin-top: 1rem; /* mt-4 */
    color: #4b5563; /* text-gray-600 */
    max-width: 42rem; /* max-w-2xl */
    margin-left: auto;
    margin-right: auto;
}

.hidden-mobile {
    display: none;
}
@media (min-width: 768px) {
    .hidden-mobile {
        display: inline;
    }
}

/* --- ナビゲーション (Navigation) --- */
.fixed-nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    background-color: transparent;
    padding-top: 1.5rem; /* py-6 */
    padding-bottom: 1.5rem;
}

.fixed-nav.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    padding-top: 1rem; /* py-4 */
    padding-bottom: 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: 'Noto Serif', serif; 
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700;
    letter-spacing: 0.05em; /* tracking-wider */
    cursor: pointer;
    transition: color 0.3s ease;
}
.fixed-nav:not(.scrolled) .logo-text {
    color: #fff;
}
.fixed-nav.scrolled .logo-text {
    color: #1e3a8a; /* text-blue-900 */
}

/* Desktop Menu */
.desktop-menu {
    display: none;
    gap: 2rem; /* space-x-8 */
}
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
}

.desktop-menu a {
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}
.fixed-nav:not(.scrolled) .desktop-menu a {
    color: #e5e7eb; /* text-gray-200 */
}
.fixed-nav.scrolled .desktop-menu a {
    color: #4b5563; /* text-gray-600 */
}
.desktop-menu a:hover {
    color: #06b6d4; /* hover:text-cyan-500 */
}

/* Mobile Menu */
.menu-toggle {
    border: none;
    background: none;
    cursor: pointer;
}
.fixed-nav:not(.scrolled) .menu-toggle {
    color: #fff;
}
.fixed-nav.scrolled .menu-toggle {
    color: #374151; /* text-gray-800 */
}

.mobile-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
}
.mobile-menu-dropdown.is-open {
    display: flex;
}
.mobile-menu-dropdown a {
    text-align: left;
    color: #374151;
    font-weight: 500;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
}
.mobile-menu-dropdown a:last-child {
    border-bottom: none;
}


/* --- ヒーローセクション (Hero Section) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* グラデーション */
    background-image: linear-gradient(to bottom right, #1e3a8a, #3730a3, #0f172a); 
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
    z-index: 0;
    /* 背景画像 */
    background-image: url('../img/night_earth.avif');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}
@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-text-area {
    margin-right: auto;
}
@media (min-width: 768px) {
    .hero-text-area {
        width: 66.666667%; /* md:w-2/3 */
    }
}

.hero-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem; /* mb-6 */
    line-height: 1.2;
}
@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem; /* md:text-6xl */
    }
}
.hero-title span {
    color: #22d3ee; /* text-cyan-400 */
}

.hero-subtitle {
    font-size: 1.125rem; /* text-lg */
    color: #d1d5db; /* text-gray-300 */
    margin-bottom: 2.5rem; /* mb-10 */
    line-height: 1.7;
}
@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem; /* md:text-xl */
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* gap-4 */
    justify-content: center;
    align-items: center;
}
@media (min-width: 768px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}

.btn {
    padding: 1rem 2rem; /* px-8 py-4 */
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #06b6d4; /* bg-cyan-500 */
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
    background-color: #0891b2; /* hover:bg-cyan-600 */
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #fff;
    color: #1e3a8a; /* hover:text-blue-900 */
}


/* --- サービスセクション (Services Section) --- */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* gap-8 */
}
@media (min-width: 768px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem; /* p-8 */
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6; /* border border-gray-100 */
    position: relative;
}
.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* hover:shadow-xl */
}

.icon-wrapper {
    width: 3.5rem; /* w-14 h-14 */
    height: 3.5rem;
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem; /* mb-6 */
    transition: background-color 0.3s ease;
}

/* Service 1 specific hover */
.service-card:nth-child(1):hover .icon-wrapper { background-color: #2563eb; } /* blue-600 */
.service-card:nth-child(1):hover .icon-wrapper svg { color: #fff; }

/* Service 3 specific hover */
.service-card:nth-child(3):hover .icon-wrapper { background-color: #4f46e5; } /* indigo-600 */
.service-card:nth-child(3):hover .icon-wrapper svg { color: #fff; }

/* Service 4 specific hover */
.service-card:nth-child(4):hover .icon-wrapper { background-color: #059669; } /* emerald-600 */
.service-card:nth-child(4):hover .icon-wrapper svg { color: #fff; }


.card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    margin-bottom: 1rem; /* mb-4 */
}

.card-description {
    color: #4b5563; /* text-gray-600 */
    font-size: 0.875rem; /* text-sm */
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-list {
    list-style: none;
    font-size: 0.875rem;
    color: #6b7280;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.card-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-list li::before {
    content: '';
    width: 0.375rem; /* w-1.5 h-1.5 */
    height: 0.375rem;
    background-color: #06b6d4; /* bg-cyan-500 */
    border-radius: 50%;
    flex-shrink: 0;
}

.card-list.list-blue li::before {
    background-color: #2563eb; /* bg-blue-600 */
}

/* Highlight Card (Digital Marketing) */
.highlight-card {
    background-color: #fff;
    border: 2px solid #cffafe; /* border-cyan-100 */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}
@media (min-width: 768px) {
    .highlight-card {
        transform: translateY(-1rem); /* md:-translate-y-4 */
    }
}
.highlight-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #06b6d4;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-bottom-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.highlight-card .icon-wrapper {
    background-color: #cffafe; /* cyan-100 */
}
.highlight-card .icon-wrapper svg {
    color: #0891b2; /* cyan-600 */
}
.highlight-card .icon-wrapper:hover {
    background-color: #06b6d4; /* hover:bg-cyan-500 */
}
.highlight-card .icon-wrapper:hover svg {
    color: #fff;
}


/* --- 統計/ハイライトセクション (Stats/Highlight Section) --- */
.stats-section {
    background-color: #1e3a8a; /* bg-blue-900 */
    padding-top: 4rem;
    padding-bottom: 4rem;
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    border-top: 1px solid #1e40af; /* divide-y/x-blue-800 */
}
@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        border-top: none;
        display: flex; /* Flexboxで区切り線を実現するため */
    }
}

.stat-item {
    padding: 1rem;
    border-top: 1px solid #1e40af;
}
@media (min-width: 768px) {
    .stat-item {
        border-top: none;
        padding: 0 2rem;
    }
    .stat-item:not(:last-child) {
        border-right: 1px solid #1e40af;
    }
}

.stat-sub {
    color: #22d3ee; /* text-cyan-400 */
    font-weight: 700;
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 0.5rem;
}

.stat-main {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
}

.stat-detail {
    color: #d1d5db; /* text-gray-300 */
    font-size: 0.875rem;
    margin-top: 0.5rem;
}


/* --- 会社概要セクション (About Section) --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* gap-16 */
    align-items: center;
}
@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
    }
}

.about-image-area {
    width: 100%;
}
@media (min-width: 768px) {
    .about-image-area {
        width: 50%; /* md:w-1/2 */
    }
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    display: block;
}

.image-deco-cyan, .image-deco-blue {
    display: none;
}
@media (min-width: 768px) {
    .image-deco-cyan, .image-deco-blue {
        display: block;
        position: absolute;
        border-radius: 0.5rem;
    }
}

.image-deco-cyan {
    bottom: -1.5rem; /* -bottom-6 */
    right: -1.5rem; /* -right-6 */
    width: 6rem; /* w-24 */
    height: 6rem; /* h-24 */
    background-color: #06b6d4; /* bg-cyan-500 */
    z-index: 5;
}

.image-deco-blue {
    top: -1.5rem; /* -top-6 */
    left: -1.5rem; /* -left-6 */
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    border: 4px solid #bfdbfe; /* border-blue-200 */
    z-index: 5;
}

.about-text-area {
    width: 100%;
}
@media (min-width: 768px) {
    .about-text-area {
        width: 50%; /* md:w-1/2 */
    }
}

.about-text-area .main-heading {
    margin-bottom: 1.5rem;
}

.company-info-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-block {
    background-color: #fff;
    padding: 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    min-width: 120px;
    flex-basis: auto;
    flex-grow: 1;
}

.info-block.full-width {
    flex-grow: 1;
}

.info-label {
    font-size: 0.75rem;
    color: #6b7280;
}

.info-value {
    font-weight: 700;
}


/* --- 採用セクション (Careers Section) --- */
.careers-section {
    position: relative;
    overflow: hidden;
}

.skew-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 33.333333%; /* w-1/3 */
    height: 100%;
    background-color: #eff6ff; /* bg-blue-50 */
    transform: skewX(12deg) translateX(5rem); /* skew-x-12 translate-x-20 */
}

.relative-z-10 {
    position: relative;
    z-index: 10;
}

.careers-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .careers-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.career-intro {
    margin-top: 1rem;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
@media (min-width: 768px) {
    .career-intro {
        width: 50%; /* md:w-1/2 */
        margin-top: 0;
    }
}

.career-job-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .career-job-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.job-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}
.job-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a; /* text-blue-900 */
    margin-bottom: 0.5rem;
}

.job-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.job-link {
    color: #0891b2; /* text-cyan-600 */
    font-weight: 700;
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.25rem;
}
.job-link:hover {
    text-decoration: underline;
}


/* --- お問い合わせセクション (Contact Section) --- */
.contact-area {
    max-width: 56rem; /* max-w-4xl */
    margin-left: auto;
    margin-right: auto;
}

.section-header.text-white .main-heading {
    color: #fff;
}

.contact-form-wrapper {
    background-color: #fff;
    color: #374151; /* text-gray-800 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    padding: 2rem;
}
@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: 3rem;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444; /* text-red-500 */
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.form-input:focus {
    border-color: #06b6d4; /* focus:border-cyan-500 */
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2); /* focus:ring-cyan-200 */
}

.form-submit-area {
    text-align: center;
    padding-top: 1rem;
}

.btn-submit {
    /* bg-gradient-to-r from-blue-600 to-cyan-500 */
    background-image: linear-gradient(to right, #2563eb, #06b6d4);
    color: #fff;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-submit:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


/* --- フッター (Footer) --- */
.footer-section {
    background-color: #0f172a; /* bg-slate-900 */
    color: #94a3b8; /* text-slate-400 */
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid #1e293b; /* border-t border-slate-800 */
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

.footer-logo {
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .footer-logo {
        margin-bottom: 0;
    }
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover, .hover-cyan:hover {
    color: #22d3ee; /* hover:text-cyan-400 */
}

.footer-copyright {
    text-align: center;
    font-size: 0.75rem;
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
}
@media (min-width: 768px) {
    .footer-copyright {
        text-align: left;
    }
}

.policy-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.policy-modal.policy-show {
    display: flex;
}
.policy-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.policy-modal-content {
    position: relative;
    width: 90%;
    height: 85%;
    max-width: 800px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    animation: fadein .2s ease;
}
.policy-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.policy-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 26px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}
@keyframes fadein {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}