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

html {
    scroll-behavior: smooth;
}

/* ベーススタイル */
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

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

/* ナビゲーション */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #666;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #1a1a1a;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #1a1a1a;
    font-weight: 500;
}

/* ヒーローセクション */


.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    will-change: transform;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #666;
    margin-bottom: 60px;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-company {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.9s forwards;
}

.company-name-jp {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Noto Sans JP', sans-serif;
}

.company-name-en {
    font-size: 1rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #999;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
    transition: opacity 0.3s ease;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: #ccc;
    animation: scrollAnimation 2s infinite;
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 300;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollAnimation {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}*/

/* セクション共通スタイル */
.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-number {
    display: block;
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
}

/* 企業理念セクション */
.philosophy-section {
    padding: 150px 0;
    background: #ffffff;
}

.philosophy-statement {
    text-align: center;
    margin-bottom: 120px;
}

.philosophy-text {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.8;
    color: #1a1a1a;
    font-weight: 300;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
}

.business-areas {
    max-width: 1000px;
    margin: 0 auto;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 60px;
}

.business-item {
    display: flex;
    gap: 30px;
    padding: 40px 0;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.business-item:hover {
    transform: translateY(-5px);
}

.business-item:last-child {
    border-bottom: none;
}

.business-number {
    font-size: 1rem;
    color: #999;
    font-weight: 300;
    width: 40px;
    flex-shrink: 0;
}

.business-content {
    flex: 1;
}

.business-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
}

.business-description {
    color: #666;
    line-height: 1.7;
    font-weight: 300;
}

/* 統計セクション */
.stats-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 5px;
    font-weight: 400;
    font-family: 'Noto Sans JP', sans-serif;
}

.stat-unit {
    font-size: 0.9rem;
    color: #999;
    font-weight: 300;
    letter-spacing: 0.1em;
}

/* 会社情報セクション */
.company-section {
    padding: 150px 0;
    background: #ffffff;
}

.company-content {
    max-width: 900px;
    margin: 0 auto;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 80px;
}

.company-info-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.info-block-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Noto Sans JP', sans-serif;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.info-label {
    color: #999;
    font-size: 0.95rem;
    font-weight: 300;
    min-width: 120px;
    flex-shrink: 0;
}

.info-value {
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.6;
    flex: 1;
}

/* お問い合わせセクション */
.contact-section {
    padding: 150px 0;
    background: #1a1a1a;
    color: #ffffff;
}

.contact-section .section-number,
.contact-section .section-title,
.contact-section .section-subtitle {
    color: #ffffff;
}

.contact-section .section-subtitle {
    color: #ccc;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 50px;
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
}

.contact-phone {
    margin-bottom: 40px;
}

.phone-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-link:hover {
    transform: scale(1.05);
}

.phone-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.05em;
    display: block;
}

.contact-hours {
    color: #ccc;
}

.hours-text {
    font-size: 1rem;
    margin: 8px 0;
    font-weight: 300;
}

/* フッター */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 40px;
    border-top: 1px solid #333;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 10px;
}

.footer-tagline {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-text {
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 選択テキストのカスタマイズ */
::selection {
    background: rgba(26, 26, 26, 0.1);
    color: #1a1a1a;
}

/* フォーカス状態のカスタマイズ */
a:focus,
button:focus {
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .stats-grid {
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .philosophy-section,
    .company-section,
    .contact-section {
        padding: 100px 0;
    }
    
    .stats-section {
        padding: 80px 0;
    }
    
    .philosophy-statement {
        margin-bottom: 80px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .business-item {
        flex-direction: column;
        gap: 20px;
        padding: 30px 0;
    }
    
    .business-number {
        width: auto;
    }
    
    .stats-grid {
        gap: 50px;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-label {
        min-width: auto;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        display: none;
    }
    
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .philosophy-section,
    .company-section,
    .contact-section {
        padding: 80px 0;
    }
    
    .stats-section {
        padding: 60px 0;
    }
}

/* プリントスタイル */
@media print {
    .nav,
    .scroll-indicator {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .philosophy-section,
    .company-section,
    .contact-section,
    .stats-section {
        padding: 40px 0;
    }
}

/* ダークモード対応（システム設定による） */
@media (prefers-color-scheme: dark) {
    /* 必要に応じてダークモードのスタイルを追加 */
}

/* 動きを減らす設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-line {
        animation: none;
    }
}