/* 基本設定 */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

/* ロゴ */
.logo {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease;
}
.logo:hover {
    transform: scale(1.05);
}
.main-logo {
    max-width: 300px;
    height: auto;
}

/* メインカバー */
.main-cover {
    position: relative;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
}
.main-cover img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.main-cover .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    /*background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 191, 255, 0.6));*/
    padding: 40px;
    border-radius: 20px;
}
.catchphrase {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 20px;
}
.main-cover h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
}

/* アニメーション */
.animate-logo {
    animation: slideIn 1s ease-out;
}
.animate-text {
    animation: fadeInUp 1.2s ease-out;
}
@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 小規模アピールセクション */
.appeal-section {
    position: relative;
    height: 30vh; /* 高さは調整可能 */
    min-height: 200px;
    overflow: hidden;
    background: #f5f7fa; /* 画像が読み込まれない場合のフォールバック */
}
.appeal-section img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.7; /* 背景画像を薄くしてテキストを強調 */
}
.appeal-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 123, 255, 0.7); /* メインカバーと調和する青系 */
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* アイコンとテキストの間隔 */
}

/* アイコン */
.appeal-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
}

/* テキスト */
.appeal-text {
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    font-weight: 600;
    margin: 0;
}

/* アニメーション */
.slide-from-left {
    animation: slideFromLeft 1.2s ease-out forwards;
}
.slide-from-right {
    animation: slideFromRight 1.2s ease-out forwards;
}

@keyframes slideFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 数値実績 */
#stats {
    background: linear-gradient(to bottom, #e9ecef, #f5f7fa);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

/* カードデザイン（高さ統一） */
.modern-card {
    display: flex;
    flex-direction: column;
    min-height: 450px; /* 高さ統一 */
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}
.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.card-body {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.card-title, .modern-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
}
.card-text, .modern-card ul {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}
.modern-card ul {
    padding-left: 20px;
    list-style-type: disc;
}
.btn-modern {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; /* ボタンを下に固定 */
}
.btn-modern:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 実績と事業内容 */
#portfolio, #services {

}
#portfolio h2, #services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

/* お客様の声 */
.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.testimonial-card p {
    font-style: italic;
    color: #555;
}
.testimonial-card h5 {
    margin-top: 10px;
    font-weight: 600;
    color: #007bff;
}

/* チーム紹介 */
.team-card {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.team-card h5 {
    font-weight: 600;
    color: #222;
}
.team-card p {
    color: #555;
}

/* 団体の歴史 */
.history-step {
    position: relative;
    padding: 20px 40px;
    background: white;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.history-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #007bff, #00bfff);
}
.history-step-title {
    font-weight: 600;
    color: #007bff;
}

/* サービス提供までの流れ */
.process-step {
    display: flex;
    align-items: center;
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.process-step img {
    width: 70px;
    height: 70px;
    margin-right: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.process-step h4 {
    font-weight: 600;
    color: #333;
}

/* トップに戻るボタン */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #00bfff);
    border-radius: 50%;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.scroll-to-top:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #0056b3, #00bfff);
}
/* 背景画像付きセクションの共通スタイル */
.bg-image-section {
    position: relative;
    background-size: cover; /* 画像をコンテナ全体にフィットさせる */
    background-position: center; /* 中央に配置 */
    background-repeat: no-repeat; /* 繰り返しを防ぐ */
    background-attachment: fixed; /* スクロール時に固定 */
    overflow: hidden;
    width: 100%; /* 横幅を確実に100%に */
}
.bg-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0); /* 暗めのオーバーレイ */
    z-index: 1;
}
.bg-image-section > * {
    position: relative;
    z-index: 2; /* コンテンツがオーバーレイの上に */
}

/* 各セクションごとの背景画像 */
#portfolio.bg-image-section {
    background-image: url('img/portfolio-bg.jpg');
}
#services.bg-image-section {

}
#team.bg-image-section {
    background-image: url('img/team-bg.jpg');
}
/* レスポンシブ対応 */
@media (max-width: 576px) {
    .main-cover {
        height: 50vh;
    }
    .main-logo {
        max-width: 200px;
    }
    .catchphrase {
        font-size: 1.2rem;
    }
    .main-cover h1 {
        font-size: 2rem;
    }
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    .process-step img {
        margin: 0 0 15px 0;
    }
    .modern-card {
        min-height: 400px; /* スマホでは少し低めに */
    }
    .appeal-section {
        height: 25vh;
    }
    .appeal-icon {
        font-size: 1.8rem;
    }
    .appeal-text {
        font-size: 1.1rem;
    }
    .appeal-overlay {
        padding: 15px 20px;
        flex-direction: column; /* モバイルでは縦に並べる */
        gap: 10px;
    }
    .bg-image-section {
        background-attachment: scroll; /* モバイルでは固定を解除 */
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        flex: 1 1 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .col-md-4 {
        flex: 1 1 33.33%;
        max-width: 33.33%;
    }
}