body {
    background-color: #000;
    color: #fff;
    font-family: 'Noto Serif JP', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 20px;
    text-align: center;
}

canvas {
    border: 1px solid #666;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    max-width: 100%;
    height: auto;
}

.controls {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* メイン操作ボタン */
button {
    padding: 10px 20px;
    border-radius: 99px;
    border: 1px solid #fff;
    background: #fff;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    font-family: 'Noto Serif JP', serif;
    text-decoration: none;
    /* aタグ用 */
    display: inline-block;
    /* aタグ用 */
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.5);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 生成ボタンを強調 */
#btnGenerate {
    background: #00c853;
    border-color: #00e676;
    color: #002b11;
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.55);
    transform: translateY(-1px);
}

#btnGenerate:hover {
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.8);
}

#btnGenerate:disabled {
    background: #1e3b2f;
    border-color: #2b5a46;
    color: #7fa896;
    box-shadow: none;
    transform: none;
}

/* サイトナビゲーション用エリア */
.site-nav {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
    font-size: 0.9rem;
}

/* ナビゲーションリンクボタン（少し控えめなデザイン） */
.nav-link {
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #666;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover {
    color: #d35400;
    /* オレンジ */
    border-color: #d35400;
}

.meta {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #666;
    font-family: monospace;
}

.ad-space {
    margin-top: 30px;
    width: 100%;
    max-width: 728px;
    min-height: 100px;
    /* 高さを確保 */
    text-align: center;
    background: #111;
    /* 広告未ロード時も場所がわかるように */
    border: 1px dashed #333;
    position: relative;
    overflow: hidden;
}

/* 広告未表示時に文字を出す（本番で広告が出れば隠れます） */
.ad-space::before {
    content: "AD SPACE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 0.8rem;
    z-index: 0;
    pointer-events: none;
}

/* 広告要素が重なれば文字は隠れる */
.ad-space ins {
    position: relative;
    z-index: 1;
    background: #000;
    /* 広告背景 */
}