/* Reset and base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
    background: linear-gradient(135deg, #FFD700 0%, #800080 100%);
    min-height: 100vh;
    color: white;
}

.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}

/* Header styles */
header {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 10;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Particle animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Services section */
.services {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* 追加のスタイル */
.page-header {
    padding: 120px 0 60px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* 企業情報ページのスタイル */
.company-info {
    padding: 60px 0;
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-table th {
    width: 30%;
    text-align: left;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
}

/* お問い合わせフォームのスタイル */
.contact-form {
    padding: 60px 0;
}

.contact-form form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.required {
    color: #ff4444;
    margin-left: 4px;
}

.form-group button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* アニメーション用のスタイル */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ページ読み込み時のアニメーション */
.nav-links a {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.2s; }
.nav-links a:nth-child(2) { animation-delay: 0.3s; }
.nav-links a:nth-child(3) { animation-delay: 0.4s; }
.nav-links a:nth-child(4) { animation-delay: 0.5s; }

.hero-content {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

/* アニメーション用の初期状態 */
.sr-only {
    visibility: hidden;
}

/* CEOメッセージセクション */
.ceo-message {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-text {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.message-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.message {
    line-height: 2;
    opacity: 0.9;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.ceo-sign {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.ceo-sign span {
    font-size: 1rem;
    opacity: 0.8;
}

.signature {
    height: 40px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.signature:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .message-content {
        padding: 2rem;
    }
    
    .message-text h2 {
        font-size: 2rem;
    }
    
    .message {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .signature {
        height: 32px;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .message-content {
        padding: 2rem;
    }
}

/* 企業情報ページのサイン画像 */
.company-table .signature {
    height: 24px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    vertical-align: middle;
    margin: 2px 0;
}

.company-table .signature:hover {
    opacity: 1;
}