/* style.css (メイン - スマホ対応版) */

/* 基本設定と背景 */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden; /* 横スクロールバーを非表示 */
}

body {
    background-color: #000000;
    font-family: 'Zen Old Mincho', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    color: #f0f8ff; /* 基本文字色 */
    box-sizing: border-box;
}

/* 星空エフェクト */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none; /* 星がクリックの邪魔にならないように */
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ロゴエリア */
.logo-area {
    font-size: 2em;
    text-align: center;
    padding: 20px 10px 5px 10px;
    margin-bottom: 10px;
    font-family: 'Zen Old Mincho', serif;
    color: #f0f8ff;
    text-shadow: 0 0 5px red, 0 0 10px orange, 0 0 15px yellow, 0 0 20px green, 0 0 25px blue, 0 0 30px indigo, 0 0 35px violet;
}

/* コンテナ */
.container {
    display: flex;
    flex-direction: column;
    width: 95%;
    max-width: 1100px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin: 10px auto 20px auto;
    box-sizing: border-box;
}

/* メニューバー */
.menu-bar {
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
    flex-wrap: wrap;
    font-family: 'Zen Old Mincho', serif;
}

.menu-bar a {
    color: #00ff00;
    text-decoration: none;
    padding: 8px 15px;
    margin: 5px 8px;
    border-radius: 5px;
    transition: color 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
    font-family: 'Zen Old Mincho', serif;
    font-size: 1em;
    cursor: pointer;
}

.menu-bar a:hover,
.menu-bar a.active {
    color: #ffffff;
    background-color: rgba(0, 255, 0, 0.2);
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

/* コンテンツエリア */
.content-area {
    padding: 20px;
    color: #f0f8ff;
    width: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: 'Zen Old Mincho', serif;
    flex-grow: 1;
}

.content-area h2,
.content-area h3 {
    color: #ffffff;
    font-family: 'Zen Old Mincho', serif;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}
.content-area h2:first-child,
.content-area h3:first-child {
    margin-top: 0;
}

.content-area h2 {
    font-size: 1.8em;
}

.content-area h3 {
    font-size: 1.4em;
}

.content-area p,
.content-area li {
    font-size: 1em;
    line-height: 1.8;
    color: #f0f8ff;
    font-family: 'Zen Old Mincho', serif;
    margin-bottom: 1em;
}

.content-area p:last-child,
.content-area ul:last-child,
.content-area div:last-child > p:last-child {
     margin-bottom: 0;
}

.content-area ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 1em;
}

.content-area strong {
    color: #ffffff;
    font-weight: bold;
}

.home-content p strong,
.home-content ul li strong,
.home-content .message-highlight strong {
    text-shadow: 0 0 4px red, 0 0 8px orange, 0 0 12px yellow, 0 0 16px green, 0 0 20px blue, 0 0 24px indigo, 0 0 28px violet;
}

.home-content .message-highlight {
    font-weight: bold;
    margin-top: 1.5em;
}

.content-area a {
    color: #00ff00;
    text-decoration: underline;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.content-area a:hover {
    color: #ffffff;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
}

.contact-content small {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #cccccc;
    line-height: 1.6;
}

.content-area hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2.5em 0;
}

/* --- レスポンシブ設定 --- */
@media screen and (max-width: 768px) {
    .logo-area { font-size: 1.8em; padding-top: 15px; }
    .menu-bar a { font-size: 0.9em; padding: 7px 12px; margin: 4px 6px; }
    .content-area { padding: 15px; }
    .content-area h2 { font-size: 1.6em; }
    .content-area h3 { font-size: 1.3em; }
    .content-area p, .content-area li { font-size: 0.95em; line-height: 1.7; }
}

@media screen and (max-width: 480px) {
    .logo-area { font-size: 1.5em; padding-top: 10px; padding-bottom: 0; margin-bottom: 8px; }
    .menu-bar { padding: 5px 0; }
    .menu-bar a { font-size: 0.85em; padding: 6px 10px; margin: 3px 5px; }
    .content-area { padding: 10px; }
    .content-area h2 { font-size: 1.4em; }
    .content-area h3 { font-size: 1.2em; }
    .content-area p, .content-area li { font-size: 0.9em; line-height: 1.6; }
    .contact-content small { font-size: 0.85em; }
}

/* --- スクロールバーを非表示にする --- */

/* Webkit系ブラウザ (Chrome, Safari, Edgeなど) */
.content-area::-webkit-scrollbar {
    display: none;
}

/* Firefox, IE, Edge */
.content-area {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}
