/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic Pro", "メイリオ", sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* ヘッダー */
header {
    margin-bottom: 30px;
}

#title {
    text-align: center;
    padding: 20px;
    background-color: #4a6fa5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#title h1 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* メインコンテンツ */
main {
    margin-bottom: 40px;
}

/* メッセージセクション */
#message {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#message p {
    margin-bottom: 15px;
}

#message p:last-child {
    margin-bottom: 0;
}

/* ナビゲーション */
nav#map {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    align-items: center;
}

nav#map span {
    font-weight: bold;
    color: #4a6fa5;
}

nav#map a {
    color: #4a6fa5;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #4a6fa5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav#map a:hover {
    background-color: #4a6fa5;
    color: white;
}

nav#map a:focus {
    outline: 2px solid #4a6fa5;
    outline-offset: 2px;
}

/* 注意事項セクション */
#role {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#role h2 {
    color: #4a6fa5;
    border-bottom: 2px solid #4a6fa5;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#role ul {
    list-style-type: none;
    padding-left: 20px;
}

#role li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

#role li::before {
    content: "?";
    color: #4a6fa5;
    position: absolute;
    left: 0;
}

#role li:last-child {
    margin-bottom: 0;
}

#important {
    color: #d32f2f;
    font-weight: bold;
}

/* フッター（管理人情報） */
footer {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#Administrator p {
    margin-bottom: 10px;
}

#Administrator span {
    font-weight: bold;
    color: green;
    background-color: #f0f8f0;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin: 0 4px;
}

#contact-info {
    margin-top: 20px;
}

#bluesky, #mail {
    margin: 15px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.email {
    font-family: monospace;
    background-color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 5px;
}

/* リンクスタイル */
a {
    color: #4a6fa5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #4a6fa5;
    outline-offset: 2px;
}

/* 区切り線 */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 20px 0;
}

/* アクセシビリティ用のユーティリティ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    #title h1 {
        font-size: 20px;
    }

    nav#map {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    nav#map a {
        text-align: center;
        display: block;
    }
    
    #Administrator span {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}