/* CSSリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* canvas背景 */
canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

.company-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.company-image {
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s;
    border-radius: 8px;
}

.company-image:hover {
    transform: scale(1.05);
}

/* モーダル用スタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: 5% auto;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* フェードイン効果 */
.fade {
    animation: fadeIn 1s ease-in forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 共通テキストスタイル */
.center-text {
    position: absolute;
    top: 40%;
    left: 4%;
    transform: translateY(-50%);
    font-family: "Moirai One", system-ui;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.company-text {
    position: absolute;
    top: calc(40% + 8rem);
    left: 4%;
    font-family: "Moirai One", system-ui;
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.kroran-text {
    position: absolute;
    top: calc(40% + 12rem);
    left: 4%;
    font-family: "ZCOOL QingKe HuangYou", sans-serif;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.company-stuff-text {
    position: absolute;
    top: calc(40% + 17rem);
    left: 4%;
    font-family: "Klee One", cursive;
    font-size: 1.1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* aboutページ用 */
.about-text {
    position: absolute;
    top: calc(40% + 8rem);
    left: 4%;
    font-family: "Klee One", cursive;
    font-size: 1.5rem;
    color: white;
    line-height: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* リンクデザイン */
a.link {
    color: white;
    text-decoration: underline;
    font-size: 1.2rem;
    font-family: "Klee One", cursive;
}

.about-text {
    position: absolute;
    top: 20%;
    left: 10%;
    font-family: "Klee One", cursive;
    font-size: 1.5rem;
    color: white;
    line-height: 2.5rem;
}
