/* ===========================
   トップページ専用スタイル
   =========================== */

/* ===========================
   スクロールアニメーション
   =========================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延アニメーション（複数要素がある場合） */
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero {
    position: relative;
    height: 600px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

/* 背景画像コンテナ */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* 各背景画像 */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-image.active {
    opacity: 1;
}

/* 3つの背景画像 */
.hero-bg-image.bg1 {
    background-image: url('../images/slide1.jpg');
    background-position: center center;
}

.hero-bg-image.bg2 {
    background-image: url('../images/slide2.jpg');
    background-position: center center;
}

.hero-bg-image.bg3 {
    background-image: url('../images/slide3.jpg');
    background-position: center center;
}

/* 白いオーバーレイ */
.white-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px 10px;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-logo {
    max-width: 180px;
    height: auto;
    margin-bottom: 35px;
    animation: fadeInDown 1s ease-out;
    filter: 
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.85))
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.8))
        drop-shadow(0 1px 3px rgba(255, 255, 255, 0.75));
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 1),
        0 0 12px rgba(255, 255, 255, 1),
        0 0 6px rgba(255, 255, 255, 0.95),
        0 3px 8px rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-mission {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.9;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    text-shadow: 
        0 0 18px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 1),
        0 0 5px rgba(255, 255, 255, 0.95),
        0 2px 6px rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: none;
}

/* スライドインジケーター */
.slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(13, 59, 93, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--secondary-teal);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0, 168, 150, 0.5);
}

.dot:hover {
    background: var(--secondary-teal);
    opacity: 0.8;
}

/* ===========================
   アニメーション
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ===========================
   MVVセクション
   =========================== */
.mvv-section {
    padding: 100px 20px;
    background: var(--bg-light);
}

.mvv-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 60px;
}

.en-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #00A896;
    background: #E6F7F5;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* MVV縦1列レイアウト */
.mvv-vertical {
    max-width: 900px;
    margin: 0 auto;
}

.mvv-item {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.mvv-item:last-child {
    margin-bottom: 0;
}

.mvv-item .en-label {
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.mvv-item-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #00A896;
    margin-bottom: 20px;
}

.mvv-item-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

/* Values内部の3カラムグリッド */
.values-inner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background: var(--bg-light);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
}

.value-keyword {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.value-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   ロゴセクション
   =========================== */
.logo-section {
    padding: 100px 20px;
    background: var(--bg-white);
}

.logo-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-story {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.logo-story-visual {
    text-align: center;
}

.logo-story-image {
    max-width: 250px;
    width: 100%;
    height: auto;
}

.logo-story-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.logo-story-item {
    background: white;
    padding: 25px 30px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    border-left: 4px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.logo-story-subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.logo-story-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.logo-story-message {
    background: linear-gradient(135deg, #d4f1ec 0%, #cce7f5 100%);
    padding: 40px 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 168, 150, 0.15);
    grid-column: 1 / -1;
}

.logo-story-message p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-primary);
    font-weight: 500;
}

.logo-story-message strong {
    color: var(--secondary-teal);
    font-size: 1.3rem;
    font-weight: 700;
}

/* ===========================
   レスポンシブ
   =========================== */
@media (max-width: 768px) {
    .hero {
        height: 450px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-mission {
        font-size: 1rem;
        margin-bottom: 35px;
    }
    
    .hero-logo {
        max-width: 130px;
        margin-top: 10px;
        margin-bottom: 25px;
    }
    
    .main-section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }
    
    .mvv-vertical {
        max-width: 100%;
    }
    
    .mvv-item {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .mvv-item-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .mvv-item-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .values-inner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    .value-keyword {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .value-description {
        font-size: 0.9rem;
    }
    
    .logo-story {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .logo-story-image {
        max-width: 180px;
    }
    
    .logo-story-item {
        padding: 20px 25px;
    }
    
    .logo-story-subtitle {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .logo-story-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .logo-story-message {
        padding: 30px 25px;
    }
    
    .logo-story-message p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .logo-story-message strong {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 320px;
    }
    
    .hero-content {
        margin-top: 25px;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-mission {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 50px;
    }
    
    .hero-logo {
        max-width: 100px;
        margin-top: 10px;
        margin-bottom: 20px;
    }
    
    .slide-indicators {
        bottom: 10px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active {
        transform: scale(1.2);
    }
    
    .main-section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .mvv-item {
        padding: 20px 18px;
        margin-bottom: 18px;
    }
    
    .mvv-item-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .mvv-item-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .values-inner-grid {
        gap: 10px;
        margin-top: 18px;
    }
    
    .value-card {
        padding: 18px 12px;
    }
    
    .value-keyword {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .value-description {
        font-size: 0.85rem;
    }
    
    .logo-story-image {
        max-width: 160px;
    }
    
    .logo-story-item {
        padding: 18px 20px;
    }
    
    .logo-story-subtitle {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .logo-story-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .logo-story-message {
        padding: 25px 20px;
    }
    
    .logo-story-message p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .logo-story-message strong {
        font-size: 1.1rem;
    }
}
