/* ================================================
   株式会社Metis - メインスタイルシート
   ================================================ */

/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #3f3f3f;
    line-height: 1.7;
    overflow-x: hidden;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* カラーパレット */
:root {
    --primary-blue: #1E88E5;
    --primary-blue-light: #42A5F5;
    --primary-blue-dark: #1565C0;
    --text-primary: #1a1a1a;
    --text-secondary: #3f3f3f;
    --text-light: #999999;
    --bg-light: #fafafa;
    --white: #ffffff;
    --shadow-light: 0 2px 20px rgba(30, 136, 229, 0.08);
    --shadow-medium: 0 8px 40px rgba(30, 136, 229, 0.12);
    --border-light: rgba(30, 136, 229, 0.1);
}

/* ================================================
   ヘッダー
   ================================================ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(201, 228, 250, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    width: 100%;
    max-width: none;
    margin: 0rem 0rem ;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem 1rem 3rem;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

/* ロゴスタイル */
.logo-title {
    display: flex;
    align-items: center;
}

.logo-title img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-title:hover img {
    transform: scale(1.05);
}

.logo-text-container {
    margin-left: 8px;
    display: flex;
    flex-direction: column;
}

.logo-main-text {
    font-size: 25px;
    font-weight: bold;
    color: var(--text-secondary);
    line-height: 1.2;
}

.logo-sub-text {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
    margin-right: 0rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-secondary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ================================================
   ヒーローセクション
   ================================================ */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero/hero-bg.png') center/cover no-repeat;
    color: #fff;
    padding: 120px 20px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero2-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/careers/Careers-image.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 100px;
    text-align: left;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: left;
}

.hero-text {
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-text .sub-en {
    font-size: 1rem;
    font-style: italic;
    color: #d0d0d0;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-text .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.hero2-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/careers/Careers-image.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 100px;
    text-align: left;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: left;
}

.hero2-text {
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero2-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero2-text .sub-en {
    font-size: 1rem;
    font-style: italic;
    color: #d0d0d0;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}


.hero2-text .lead {
    font-size: 1.4rem;
    margin-bottom: 0px;
    color: #f0f0f0;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}



.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 1.3s forwards;
}

.cta-buttons a {
    margin: 0 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}


/* ================================================
   ボタンスタイル
   ================================================ */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
}

.btn-outline-light {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline-light:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* ================================================
   セクション共通スタイル
   ================================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ================================================
   ビジョンセクション
   ================================================ */
.vision {
    padding: 8rem 0;
    background: #F8FAFC;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.vision-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.vision-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vision-card:hover .vision-image img {
    transform: scale(1.1);
}

.vision-content {
    padding: 2rem;
    text-align: center;
}

.vision-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.vision-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================================
   会社概要セクション
   ================================================ */
.about {
    padding: 8rem 0;
    background: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.about-content .tagline {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
}

.about-image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.about-image.large {
    grid-row: span 2;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ================================================
   サービスセクション
   ================================================ */
.services {
    padding: 8rem 0;
    background: #F8FAFC;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 5rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.8), rgba(30, 136, 229, 0.6));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-header {
    padding: 2rem 2rem 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-content {
    padding: 1.5rem 2rem 2rem;
}

.service-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--primary-blue-dark);
}

.service-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-link:hover::after {
    transform: translateX(4px);
}

/* ================================================
   CTAセクション
   ================================================ */
.cta-section {
    background: linear-gradient(to right, #d4ecff, #eaf6ff);
    text-align: center;
    padding: 80px 20px;
}

.cta-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

.cta-section .lead {
    font-size: 1.2rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ================================================
   フッター
   ================================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.7;
    font-size: 1rem;
}

.footer-section a:hover {
    color: var(--primary-blue-light);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

/* ================================================
   スクロールトップボタン
   ================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

/* ================================================
   アニメーション効果
   ================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ================================================
   スクロールインジケーター（グロー効果）- 修正版
   ================================================ */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    margin-left: -50px; /* 要素の半分の幅を指定して中央配置 */
    width: 100px; /* 固定幅を設定 */
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    color: white;
    opacity: 0;
    animation: fadeInUpFixed 1s ease 2s forwards;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3;
    pointer-events: auto;
}

.scroll-indicator:hover {
    transform: scale(1.05); /* translateXを除去 */
}

.glow-text {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: textGlowFixed 3s infinite;
    margin-bottom: 0.8rem;
    font-weight: 500;
    white-space: nowrap; /* テキストの改行を防ぐ */
    text-align: center;
}

.triangle-arrow {
    font-size: 1.5rem;
    animation: trianglePulseFixed 2s infinite;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    text-align: center;
}

.scroll-indicator:hover .triangle-arrow {
    color: var(--primary-blue-light);
    transform: scale(1.1); /* 個別のtransform */
}

/* 修正されたアニメーション */
@keyframes fadeInUpFixed {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlowFixed {
    0%, 100% { 
        text-shadow: 
            0 0 5px rgba(255,255,255,0.5),
            0 0 10px rgba(255,255,255,0.3);
    }
    50% { 
        text-shadow: 
            0 0 10px rgba(255,255,255,0.8),
            0 0 20px rgba(255,255,255,0.6),
            0 0 30px rgba(255,255,255,0.4);
    }
}

@keyframes trianglePulseFixed {
    0%, 100% { 
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(5px) scale(1.1);
        opacity: 1;
    }
}

/* レスポンシブ対応 - 修正版 */
@media (max-width: 768px) {
    .scroll-indicator {
        bottom: 1.5rem;
        margin-left: -40px;
        width: 80px;
    }
    
    .glow-text {
        font-size: 0.8rem;
    }
    
    .triangle-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        bottom: 1rem;
        margin-left: -35px;
        width: 70px;
    }
    
    .glow-text {
        font-size: 0.7rem;
    }
    
    .triangle-arrow {
        font-size: 1rem;
    }
}

/* アクセシビリティ: 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    .glow-text {
        animation: none;
        text-shadow: 0 0 5px rgba(255,255,255,0.5);
    }
    
    .triangle-arrow {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
        opacity: 1;
    }
}

/* より確実な位置固定 */
.hero-section {
    position: relative; /* 親要素を相対位置に */
}