* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 176, 55, 0.3);
    color: #1e3a5f;
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 1s ease-in-out;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-bottom-color: rgba(201, 176, 55, 0.5);
}

/* ヘッダーのダークテーマ */
header.dark-theme {
    background: rgba(30, 30, 30, 0.95);
    border-bottom-color: rgba(201, 176, 55, 0.5);
    color: #ffffff;
}

header.dark-theme.scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ダークテーマ時のロゴ色反転 */
header.dark-theme .logo img {
    filter: invert(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.contact-btn {
    background: #c9b037;
    color: white;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #c9b037;
}

.contact-btn:hover {
    background: #b5a032;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 176, 55, 0.3);
}

.login-link {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-link:hover {
    color: #c9b037;
    border-color: #c9b037;
    background: rgba(201, 176, 55, 0.1);
}

/* ログインリンクのダークテーマ */
header.dark-theme .login-link {
    color: #ffffff;
}

header.dark-theme .login-link:hover {
    color: #c9b037;
    background: rgba(201, 176, 55, 0.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #c9b037;
    border-bottom: 2px solid #c9b037;
    padding-bottom: 2px;
}

/* ナビゲーションリンクのダークテーマ */
header.dark-theme .nav-links a {
    color: #ffffff;
}

header.dark-theme .nav-links a:hover {
    color: #c9b037;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border: 2px solid #c9b037;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    min-width: 750px;
    max-width: 900px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: min-content;
    gap: 2rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ドロップダウンメニューのダークテーマ */
header.dark-theme .dropdown-menu {
    background: #2a2a2a;
    border-color: #c9b037;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

header.dark-theme .dropdown-category h4 {
    color: #ffffff;
}

header.dark-theme .dropdown-category a {
    color: #e9ecef;
    white-space: nowrap;
}

header.dark-theme .dropdown-category a:hover {
    color: #c9b037;
}

.dropdown-category h4 {
    color: #1e3a5f;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c9b037;
}

.dropdown-category a {
    display: block;
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-bottom: none !important;
    white-space: nowrap;
}

.dropdown-category a:hover {
    color: #c9b037;
    padding-left: 0.5rem;
    border-bottom: none !important;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-links {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
        margin-left: 0;
        align-self: flex-end;
    }

    .contact-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .login-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .dropdown-menu {
        min-width: 300px;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        left: -100px;
    }
}

/* カテゴリ数に応じたドロップダウンレイアウト調整 */
.dropdown-menu:has(.dropdown-category:only-child) {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.dropdown-menu:has(.dropdown-category:nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgb(30, 30, 30) 0%, rgb(20, 20, 20) 100%);
    color: white;
    height: 100vh;
    min-height: 600px;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Background Video */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-video.loaded {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 176, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

/* 白いオーバーレイ */
.hero-white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 1) 100%);
    z-index: 20;
    opacity: 1;
    transition: opacity 3s ease-out;
}

.hero-white-overlay.fade-out {
    opacity: 0;
}

.hero-content {
    position: relative;
    z-index: 15;
    width: 100%;
    max-width: none;
    padding: 0 40px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 6.5rem);
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-top: 0;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    text-align: left;
    white-space: nowrap;
}

.hero-company-name {
    display: block;
    font-size: 0.12em;
    font-weight: 700;
    opacity: 0.8;
    margin-top: clamp(2rem, 5vh, 4rem);
    margin-bottom: 0;
    padding-bottom: 0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

.hero-title-line1 {
    display: block;
    margin-top: 0;
    margin-bottom: 0.2rem;
    padding-top: 0;
    white-space: nowrap;
    line-height: 1.1;
}

.hero-title-line2 {
    display: block;
    margin-left: clamp(2rem, 10vw, 6rem);
    font-size: 0.9em;
    white-space: nowrap;
}

.hero-title-subtext {
    display: block;
    margin-left: clamp(17rem, 42vw, 35rem);
    margin-top: 0.5rem;
    font-size: 0.3em;
    opacity: 0.7;
    font-weight: 600;
    text-align: left;
    margin-right: clamp(1rem, 5vw, 4rem);
    white-space: nowrap;
    max-width: calc(100vw - clamp(18rem, 47vw, 39rem));
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    margin-top: 4rem;
    margin-bottom: 3rem;
    opacity: 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: 0;
    color: #e9ecef;
    text-align: right;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.hero-subtitle.animate-in {
    opacity: 0.9;
    transform: translateY(0);
}

.subtitle-line1,
.subtitle-line2 {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 25;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-arrow {
    width: 2px;
    height: 3rem;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 50%, transparent 100%);
    position: relative;
    animation: scroll-bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #ffffff;
    animation: arrow-bounce 2s infinite;
}

.scroll-text {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0.7;
    letter-spacing: 0.1em;
    font-weight: 300;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes arrow-bounce {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.cta-button {
    display: inline-block;
    background: #c9b037;
    color: white;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(201, 176, 55, 0.4);
    border: 2px solid #c9b037;
}

.cta-button:hover {
    background: #b5a032;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 176, 55, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.hero.dark-theme .cta-button:hover {
    background: #b5a032;
    box-shadow: 0 6px 20px rgba(201, 176, 55, 0.4);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: #ffffff;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(201, 176, 55, 0.05) 0%, transparent 50%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #1e3a5f;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 176, 55, 0.05), rgba(30, 58, 95, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #c9b037;
    box-shadow: 0 10px 25px rgba(201, 176, 55, 0.2);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #c9b037;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #1e3a5f;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: #495057;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: #f8f9fa;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(30, 58, 95, 0.05) 0%, transparent 50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #1e3a5f;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: #495057;
    position: relative;
    z-index: 2;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 176, 55, 0.05), rgba(30, 58, 95, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #c9b037;
    box-shadow: 0 8px 20px rgba(201, 176, 55, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #c9b037;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.stat-item div:last-child {
    color: #495057;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: #1e3a5f;
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(201, 176, 55, 0.1) 0%, transparent 70%);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    max-width: 600px;
    text-align: left;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    color: #333333;
    padding: 3rem;
    border-radius: 10px;
    border: 2px solid #c9b037;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9b037;
    box-shadow: 0 0 0 3px rgba(201, 176, 55, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c757d;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: #c9b037;
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201, 176, 55, 0.3);
}

.submit-btn:hover {
    background: #b5a032;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 176, 55, 0.4);
}

/* Footer */
footer {
    background: #1a3352;
    color: #e9ecef;
    text-align: center;
    padding: 3rem 0;
    border-top: 2px solid #c9b037;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 500px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .hero-title-line2 {
        margin-left: clamp(1rem, 8vw, 3rem);
        font-size: 0.9em;
    }

    .hero-title-subtext {
        margin-left: clamp(8.5rem, 35vw, 17.5rem);
        margin-right: clamp(0.5rem, 3vw, 1.5rem);
        font-size: 0.35em;
        text-align: left;
        max-width: calc(100vw - clamp(9rem, 38vw, 19rem));
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-content {
        padding: 0 20px;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.service-card,
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Particle effect */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(201, 176, 55, 0.4);
    border-radius: 50%;
    animation: particleFloat 25s infinite linear;
}

@keyframes particleFloat {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}