body {
    font-family: Arial, sans-serif;
    background-color: #f0f8ff; /* 明るい青みがかった白 */
    color: #333; /* テキスト色をダークグレーに */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh; /* ビューポートの高さを最低限の高さに設定 */
    display: flex;
    flex-direction: column;
}

.intro-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: white;
    color: black;
    z-index: 10;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    flex-direction: column;
    overflow: hidden;
}

.intro-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid black;
    animation: typing 2s steps(12) forwards, blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 12ch; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: black; }
}

.loading-animation {
    display: none; /* 最初は非表示 */
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.loading-bar {
    width: 80%; /* 元の80%の7倍に設定 */
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
    margin-bottom: 10px;
}

.loading-progress {
    width: 0;
    height: 100%;
    background-color: #007acc;
    transition: width 0.2s;
}

.loading-percentage {
    font-size: 1.2em;
    color: #007acc;
}

.page-content {
    flex: 1 0 auto; /* ページコンテンツがフレックスコンテナ内で伸縮するように設定 */
    opacity: 0;
    transform: scale(1.2); /* ズームアウトからスタート */
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out; /* ゆっくりとズームイン */
}

.page-content.visible {
    opacity: 1;
    transform: scale(1);
}

.hide {
    display: none;
}

header, .container, footer {
    position: relative;
    z-index: 1;
}

.introduction {
    text-align: center;
    margin: 2em 0;
}

.introduction h2 {
    text-align: center;
    color: #007acc; /* テーマカラー */
}

.introduction p {
    text-align: center;
    margin: 1em 0;
    color: #666;
}

/* スライドショーの画像を上から隙間なく表示させる */
.slide img {
    width: 100%;
    height: 100vh; /* ビューポートの高さに合わせる */
    object-fit: cover; /* 画像がコンテナを覆うように調整 */
}

/* スライドショーなどの既存のスタイル */
.slideshow {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.slide {
    display: none;
    transition: opacity 0.5s ease-in-out;
}

.active {
    display: block;
    opacity: 1;
}

.center-logo {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    z-index: 1;
}

/* その他の既存のスタイル */
header {
    background-color: rgba(0, 122, 204, 0.8); 
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}



nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav img.logo {
    height: 40px;
    margin-right: auto; /* ロゴを左に固定 */
    padding-left: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    font-weight: bold;
}

nav a:hover {
    color: #ffd700;
}

.intro p {
    text-align: center;
    margin: 10px 0;
    color: #666;
}

.business-overview ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.business-overview li {
    margin: 10px 0;
}

.business-overview a {
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
}

.business-overview a:hover {
    color: #333;
}

.works {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 5em;
}

.work-item {
    text-align: center;
    margin: 1em;
    flex-basis: calc(25% - 2em);
}

.work-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 651;
    object-fit: cover;
}

footer {
    background-color: #007acc;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
}
