body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

.hero {
    background-image: url('webp_images/00000.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh; /* 高さを広げる */
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
    animation-delay: 0.5s;
}

.cta-button {
    background-color: #00796b;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    opacity: 0;
    visibility: hidden;
    animation: slideIn 1.5s ease-in-out forwards;
    animation-delay: 1s;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.cta-button:hover {
    background-color: #004d40;
    transform: scale(1.05);
}

.section {
    padding: 30px 5%; /* 空間をさらに詰める */
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #00796b;
    border-bottom: 2px solid #00796b;
    display: inline-block;
    padding-bottom: 10px;
}

.samd-content, .case-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.illustration-right {
    max-width: 45%; /* 画像サイズを大きく */
    height: auto;
    margin-left: 20px;
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.text-content {
    flex: 1;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.illustration {
    max-width: 35%; /* 画像サイズをさらに小さく */
    height: auto;
    margin-left: 20px;
    border-radius: 8px;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.case-content .cta-button {
    margin-top: 20px; /* ボタンをテキストの下に配置 */
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.section p, .section ul {
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.section ul {
    list-style: none;
    padding: 0;
}

.section ul li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.section ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #00796b;
}

.framework-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.framework-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.contact-section {
    background-color: #00796b; /* 背景色を変更 */
    color: white; /* テキストの色を白に */
    padding: 50px 0; /* セクションのパディングを調整 */
}

.contact-section .container {
    text-align: center; /* テキストを中央揃え */
    background: none; /* 背景を削除 */
    padding: 0;
    border: none;
    box-shadow: none;
    padding: 0 10px;
}

.contact-section h2 {
    color: white; /* 見出しの色を白に */
    border-bottom: none; /* 下線を削除 */
}

.contact-section .cta-button {
    background-color: #004d40; /* ボタンの背景色を変更 */
    color: white;
}

.contact-section .cta-button:hover {
    background-color: #00332e; /* ホバー時の背景色を変更 */
}

.contact-details p {
    margin: 10px 0; /* マージンを調整 */
}

footer {
    background-color: #f8f8f8;
    color: #333;
    text-align: center;
    padding: 20px 5%;
    border-top: 1px solid #e7e7e7;
}

footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 0;
}

footer p {
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center; /* コピーライトをセンターに */
}

.nowrap {
    white-space: nowrap;
}

.animated {
    opacity: 0;
}

.fadeIn {
    animation: fadeIn 1.5s forwards;
}

.slideIn {
    animation: slideIn 1.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
        visibility: hidden;
    }
    to {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 767px) {
    /* スマートフォン向けのスタイル */
    .samd-content, .case-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: column-reverse;
    }

    .illustration-right {
        min-width: 100%;
        max-height: 300px;
        margin: 20px;
        object-fit: cover;
        border-radius: 8px;
        opacity: 0;
        animation: fadeIn 1.5s forwards;
    }

    .samd-content .illustration-right {
        object-position: 50% 30%;
    }

    .hero h1 {
        font-size: 2em;
        margin-bottom: 20px;
        opacity: 0;
        animation: fadeIn 2s ease-in-out forwards;
    }

    footer nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 100%;
    }

    footer nav ul li {
        flex: 0 0 calc(50% - 10px); /* 各要素の幅を50%に設定し、間隔を考慮 */
    }
}

