:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #ff6b6b;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --accent: #4cc9f0;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.nav-menu {
    position: absolute;
    right: 0;
    display: flex;
    list-style: none;
    align-items: center;
}

.logo {
    margin-right: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu .btn{
    color:white;
}

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



.nav-menu a:hover {
    color: var(--primary);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
}

.hamburger-lines {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: auto;
}

.line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: all 0.3s ease-in-out;
    position: absolute;
    border-radius: 2px;
}

.line1 {
    top: 0;
    transform-origin: center;
}

.line2 {
    top: 50%;
    transform: translateY(-50%);
}

.line3 {
    bottom: 0;
    transform-origin: center;
}

.mobile-menu-btn.active .line1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-btn.active .line2 {
    opacity: 0;
}

.mobile-menu-btn.active .line3 {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

main {
    padding-top: 100px;
}

section {
    margin-top: 100px;
    margin-bottom: 4rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

p {
    margin-bottom: 1rem;
}

.philosophy-box {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

#message {
    scroll-margin-top: 100px;
}

.message-container {
    display: flex;
    gap: 3rem;
    background: var(--light);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.message-image {
    flex: 0 0 300px;
}

.message-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-content {
    flex: 1;
    height: 400px;
    overflow-y: auto;
}

.ceo-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.ceo-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark);
}

.message-motto {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 2rem 0;
    text-align: center;
}

.message-text p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.creed-list {
    list-style: none;
}

.creed-list li {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.creed-list li strong {
    color: var(--primary);
}

#sustainability {
    scroll-margin-top: 100px;
}

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

.sustainability-item {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sustainability-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 180px 0 100px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    width: 100%;
    max-width: 600px;
    text-align: left;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-10deg);
    border: 5px solid rgba(255, 255, 255, 0.1);
}

.hero-image::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: rgba(76, 201, 240, 0.3);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    filter: blur(20px);
}

.hero-buttons {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: flex-start;
}

.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact h2 {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
    text-align: center;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 50px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 600px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 50px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

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

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

.mb-5 {
    margin-bottom: 50px;
}

.btn-secondary {
    background-color: #ff6b6b;
}

.btn-secondary:hover {
    background-color: #ff5252;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

.footer-container {
    display: flex;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
}

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

.animate {
    animation: fadeIn 0.6s ease forwards;
}

@media (max-width: 992px) {
    .message-container {
        flex-direction: column;
    }

    .message-image {
        flex: none;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-container {
        flex-direction: column;
    }
    
    .footer-links {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        padding: 70px 0 20px;
        box-shadow: -4px 0 8px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        display: none;
    }

    .nav-menu.active {
        display: block;
        transform: translateX(0);
    }

    .mobile-menu-btn {
        z-index: 1001;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .nav-menu li a.btn {
        margin: 15px 20px;
        background: var(--primary);
        color: white;
        width: 85%;
    }

    .mobile-menu-btn {
        display: block;
        padding: 8px;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu-btn.active svg {
        transform: rotate(90deg);
    }

    .mobile-menu-btn svg {
        transition: transform 0.3s ease;
    }
    
    .sustainability-grid {
        grid-template-columns: 1fr;

    .company-page h2 {
  margin-top: 120px; /* ヘッダーに被らないようにする */
}
.page-bg-blue {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  padding: 100px 0;
  min-height: 100vh;
}


    }
}
