body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #ffffff;
}

header {
    background-color: #ff3333;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
    left: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ヘッダー内のコンテナを追加 */
.header-container {
    max-width: 940px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .soku2-logo{
    width: 80px;
    height: auto;
    vertical-align: middle;
}

.header-left .soku2-logo:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right .x-logo,
.header-right .discord-logo,
.header-right .navi-logo,
.header-right .note-logo {
    width: 30px;
    height: auto;
    vertical-align: middle;
}

.header-right .x-logo:hover,
.header-right .discord-logo:hover,
.header-right .navi-logo:hover,
.header-right .note-logo:hover {
    opacity: 0.8;
}

footer {
    background-color: #ff3333;
    text-align: center;
    color: white;
    bottom: 0;
    z-index: 1000;
    font-size: 12px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: white;
}

footer a:hover {
    color: #ff3333;
    text-decoration: underline;
}

footer p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    margin: 5px;
}

footer .x-logo {
    width: 30px;
    height: auto;
    vertical-align: middle;
}

h1 {
    font-size: 28px;
    color: white;
    margin: 0;
}

h2 {
    font-size: 23px;
    margin: 15px 0;
}

h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

h4 {
    font-size: 18px;
    margin: 0 0 15px 0;
}

a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00b6ff;
    text-decoration: underline;
}

.content br {
    margin-bottom: 20px;
}

.content {
    flex: 1;
    width: 100%;
    max-width: 940px;
    min-width: 320px;
    margin: 10px auto;
    color: #333;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
}

.content a {
    color: #ff3333;
}

.note {
    font-size: 12px;
    border-radius: 5px;
    line-height: 1.6;
    box-sizing: border-box;
}

.note ul {
    padding-left: 20px;
    list-style: disc;
}

.note li {
    margin-bottom: 8px;
}

.note p {
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
}

p {
    margin-top: 0px;
    margin-bottom: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        text-align: left;
    }
    
    .header-left,
    .header-right {
        justify-content: flex-start;
    }
    
    .header-right {
        justify-content: flex-end;
    }
}

@media (max-width: 980px) {
    .content {
        margin: 10px 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .content {
        margin: 10px 15px;
        max-width: calc(100% - 30px);
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .content {
        margin: 10px 10px;
        max-width: calc(100% - 20px);
        padding: 10px;
    }
}