/* ========================================
   リセット & 基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0f2c;
    --secondary-color: #1a1f3a;
    --accent-color: #3b82f6;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ローディング画面
======================================== */
.pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.pre-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 900;
    color: white;
    letter-spacing: 0.1em;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ========================================
   ページラッパー
======================================== */
.page-wrapper {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.page-wrapper.visible {
    opacity: 1;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 60px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

/* ロゴ */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.15em;
    display: inline-block;
}

.header.scrolled .logo-text {
    color: var(--primary-color);
}

.logo-text .char {
    display: inline-block;
    transition: var(--transition);
}

.logo a:hover .char {
    transform: translateY(-3px);
}

.logo a:hover .char:nth-child(2) {
    transition-delay: 0.05s;
}

.logo a:hover .char:nth-child(3) {
    transition-delay: 0.1s;
}

/* メインナビゲーション */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

.main-nav a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    position: relative;
    transition: var(--transition);
}

.header.scrolled .main-nav a {
    color: var(--text-color);
}

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

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

/* メニュートグル（モバイル用） */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    z-index: 1001;
}

.header.scrolled .menu-toggle {
    color: var(--primary-color);
}

.menu-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.menu-icon {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.menu-icon span {
    width: 100%;
    height: 2px;
    background: white;
    transition: var(--transition);
    transform-origin: center;
}

.header.scrolled .menu-icon span {
    background: var(--primary-color);
}

/* メニューアクティブ時のアニメーション */
.menu-toggle.active .menu-icon span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .menu-icon span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle.active .menu-text {
    opacity: 0;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 44, 0.7) 0%, rgba(59, 130, 246, 0.5) 100%);
    z-index: 2;
}

.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.image-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(80px, 15vw, 180px);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    animation: heroFadeIn 1.2s ease-out;
}

.hero-logo .char {
    display: inline-block;
    animation: heroFloat 3s ease-in-out infinite;
}

.hero-logo .char:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-logo .char:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 2;
    margin-bottom: 60px;
    animation: heroFadeIn 1.2s ease-out 0.3s backwards;
}

.hero-tagline .line {
    display: block;
}

/* スクロールインジケーター */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: heroFadeIn 1.2s ease-out 0.6s backwards;
}

.scroll-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, white, transparent);
    animation: scrollLineMove 1.5s ease-in-out infinite;
}

@keyframes scrollLineMove {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(20px); opacity: 0.3; }
}

/* ========================================
   セクション共通スタイル
======================================== */
.section {
    position: relative;
    padding: 120px 60px;
}

.section-line {
    width: 100%;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 80px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(40px, 6vw, 80px);
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.section-title .char.space {
    width: 0.3em;
}

.section-title.animate .char {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-lighter);
    text-transform: uppercase;
}

/* ========================================
   ABOUTセクション
======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-message {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-message.animate {
    opacity: 1;
    transform: translateY(0);
}

.message-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.message-text {
    font-size: 16px;
    line-height: 2;
    color: var(--text-light);
}

.company-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.company-info.animate {
    opacity: 1;
    transform: translateY(0);
}

.info-grid {
    display: grid;
    gap: 30px;
}

.info-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-lighter);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.info-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.8;
}

/* ========================================
   BUSINESSセクション
======================================== */
.business-section {
    background: #f8f9fa;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.business-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.business-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.business-item:nth-child(2) {
    transition-delay: 0.2s;
}

.business-item:nth-child(3) {
    transition-delay: 0.4s;
}

.business-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.business-item:hover .business-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 44, 0);
    transition: var(--transition);
}

.business-item:hover .image-overlay {
    background: rgba(10, 15, 44, 0.3);
}

.business-content {
    padding: 40px 30px;
}

.business-number {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.business-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.business-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ========================================
   PRODUCTSセクション
======================================== */
.products-carousel-wrapper {
    position: relative;
    padding: 40px 0;
}

.products-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.product-item {
    flex: 0 0 280px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.product-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 30px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 25px;
    text-align: center;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-light);
}

/* カルーセルコントロール */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-btn .arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transition: var(--transition);
}

.prev-btn .arrow {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.next-btn .arrow {
    transform: rotate(45deg);
    margin-right: 3px;
}

.carousel-btn:hover .arrow {
    border-color: white;
}

.carousel-progress {
    width: 100%;
    height: 2px;
    background: var(--border-color);
    margin-top: 30px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

/* ========================================
   NEWSセクション
======================================== */
.news-section {
    background: #f8f9fa;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.news-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.news-item.hidden {
    display: none;
}

.news-item.show {
    display: block;
}

.news-link {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px 0;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

.news-line {
    grid-column: 1 / -1;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 10px;
}

.news-link:hover {
    transform: translateX(10px);
}

.news-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-lighter);
}

.news-category {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 15px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    text-align: center;
    width: fit-content;
}

.news-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: 60px;
}

.more-btn {
    padding: 15px 40px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

.more-icon {
    width: 10px;
    height: 10px;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: var(--transition);
}

.more-btn:hover .more-icon {
    transform: rotate(45deg) translateY(3px);
}

/* ========================================
   CONTACTセクション
======================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.contact-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-info.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-lighter);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-value {
    font-size: 18px;
    font-weight: 500;
    color: var(--primary-color);
}

.contact-note {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
}

/* フォーム */
.contact-form-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.contact-form-wrapper.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    padding: 18px 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-arrow {
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
}

/* ========================================
   フッター
======================================== */
.footer {
    position: relative;
    padding: 100px 60px 40px;
    color: white;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 15, 44, 0.9) 0%, rgba(26, 31, 58, 0.9) 100%);
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 3;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(60px, 10vw, 100px);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 60px;
}

.footer-logo .char {
    display: inline-block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* ========================================
   トップに戻るボタン
======================================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(10, 15, 44, 0.3);
}

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

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.arrow-up {
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(-45deg);
    margin-top: 5px;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
    .header {
        padding: 20px 30px;
    }
    
    .section {
        padding: 80px 30px;
    }
    
    /* モバイルメニュー */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: var(--primary-color);
        padding: 100px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .main-nav.mobile-open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 20px 0;
        font-size: 18px;
        color: white !important;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .main-nav a:hover {
        color: var(--accent-color) !important;
        transform: translateX(10px);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        font-size: 60px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .news-link {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }
    
    .news-line {
        margin-bottom: 5px;
    }
    
    .product-item {
        flex: 0 0 220px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .main-nav {
        max-width: 100%;
    }
}
