body {
    margin: 0;
    font-family: "Helvetica", sans-serif;
    background: white;
    color: #fff;
    
}

/* ナビゲーション */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    gap: 24px;
    /*background: rgba(0, 0, 0, 0.3);*/
    /*backdrop-filter: blur(6px);*/
    z-index: 10;
    display: flex;
    align-items: center;
}


.nav-logo {
    margin-right: 40px; /* ← ロゴと他リンクの間隔を広げる */
    font-weight: 700;
    font-size: 18px;
}


.nav a {
    color: black;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

    .nav a:hover {
        opacity: 0.6;
    }


/* 画面中央に配置するためのラッパー */
.main-wrapper {
    display: flex;
    justify-content: center; /* 横中央 */
    align-items: center; /* 縦中央 */
    min-height: 100vh; /* 画面の高さ全体 */
    /*padding-top: 100px;*/ /* ← ナビの高さ分だけ下げる */
    box-sizing: border-box;
}

.contact-container {
    max-width: 700px;
    margin: 60px auto;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
    text-align: center;
}

h1 {
    margin-bottom: 24px;
    color: black;
}

.contact-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: black;
}

    .contact-message a {
        /*color: #0078ff;*/
        color: black;
        /*font-weight: bold;*/
        text-decoration: none;
    }

        .contact-message a:hover {
            text-decoration: underline;
        }


@media (max-width: 768px) {
html, body {
    overscroll-behavior: none;
    overflow: hidden;
    height: 100%;
}

.main-wrapper {
    min-height: calc(100vh - 80px); /* ナビの高さぶん引く */
    padding-top: 80px; /* ナビの高さ */
}

    .nav {
        display: flex;
        flex-wrap: wrap; /* ← これがポイント */
        gap: 12px 20px; /* 上下12px、左右20px の余白 */
        padding: 20px;
    }

    .nav-logo {
        width: 100%; /* ← ロゴだけ1行目に固定 */
        margin-bottom: 10px;
    }

    .nav a {
        color: #1e293b;
        text-decoration: none;
        font-size: 14px;
        transition: opacity 0.3s ease;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 9%;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 9%;
    }
    .contact-message a {
        /*color: #0078ff;*/
        color: black;
        /*font-weight: bold;*/
        text-decoration: none;
        font-size:12px;
    }
    .contact-message {
        font-size: 12px;
    }
}