/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* 背景固定レイヤー */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../資料/背景000.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #007bff;
}

/* メインコンテンツ */
.main-content {
    position: relative;
    z-index: 1;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 22, 37, 0);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.2;
}

.title-main {
    display: block;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.title-sub {
    display: block;
    font-size: 2rem;
    color: #ffd700;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-character {
    flex: 0 0 300px;
}

.goyo-character {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* セクション共通スタイル */
section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.6);
    margin: 80px 0;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #ffd700);
    border-radius: 2px;
}

/* 歴史セクション */
.history-content {
    max-width: 800px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    margin-bottom: 50px;
    align-items: flex-start;
    gap: 30px;
}

.history-year {
    flex: 0 0 120px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #007bff;
}

.history-text h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.history-text p {
    line-height: 1.8;
    color: #666;
}

/* 事業内容セクション */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.business-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.business-item h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #007bff;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 10px;
}

.business-item ul {
    list-style: none;
}

.business-item li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.business-item li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #007bff;
    font-size: 0.8rem;
}

/* ビジョンセクション */
.vision-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.vision-text {
    width: 100%;
}

.vision-text h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #007bff;
}

.vision-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}


/* フッター */
.footer {
    background: rgba(33, 37, 41, 0.88);
    color: white;
    padding: 50px 0 20px;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.company-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.company-info p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-logo img {
    height: 60px;
    width: auto;
    filter: brightness(1.2);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* パララックス効果 */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .background-layer {
        background-attachment: scroll;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-character {
        flex: 0 0 200px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    /* スクロールアニメーション */
    .animate-element {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }
    
    .animate-element.animate-in {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* ページ読み込み時のアニメーション */
    body {
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    body.loaded {
        opacity: 1;
    }
    
    /* 追加のホバー効果 */
    .hero-character:hover .goyo-character {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
    
    
    /* スクロールバーのカスタマイズ */
    ::-webkit-scrollbar {
        width: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #007bff, #ffd700);
        border-radius: 4px;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #0056b3, #ffed4e);
    }
    
    .history-year {
        flex: none;
        width: 150px;
        margin: 0 auto;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-content {
        text-align: center;
    }
    
    .vision {
        margin-bottom: 120px !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    section {
        padding: 60px 0;
        margin: 50px 0;
    }
    
    section:last-of-type {
        margin-bottom: 100px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .title-sub {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav ul {
        gap: 10px;
    }
    
    .nav a {
        font-size: 0.8rem;
    }
    
    
    .vision {
        margin-bottom: 100px !important;
    }
}
