/* リセットと基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'keifont', sans-serif;
    color: #333;
    background-color: #f0f0f0;
    line-height: 1.6;
}

header {
    background-color: #282c34;
    color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-container img.logo {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 2rem;
    margin-top: 60px; /* Headerの高さ分 */
}

/* 各セクションの間にスペースを追加 */
section:not(:first-of-type) {
    margin-top: 3rem; /* セクション間のスペース */
}

h1, h2 {
    margin-bottom: 1rem;
}

ul {
    list-style: disc;
    margin-left: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem; /* フッターとの間のスペース */
}

form label {
    margin: 0.5rem 0 0.2rem;
}

form input, form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #404654;
}

footer {
    background-color: #282c34;
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}
/* ボタンスタイル */
a.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

a.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

a.button:active {
    background-color: #004080;
    transform: translateY(0);
}

/* 他のスタイルはそのまま */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Keifont', sans-serif;
    color: #ffffff;
    background-color: #8f8f8f;
    line-height: 1.6;
}

header {
    background-color: #282c34;
    color: #ffffff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-container img.logo {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

section {
    padding: 2rem;
    margin-top: 60px; /* Headerの高さ分 */
}

/* 各セクションの間にスペースを追加 */
section:not(:first-of-type) {
    margin-top: 3rem; /* セクション間のスペース */
}

h1, h2 {
    margin-bottom: 1rem;
}

ul {
    list-style: disc;
    margin-left: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem; /* フッターとの間のスペース */
}

form label {
    margin: 0.5rem 0 0.2rem;
}

form input, form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    background-color: #282c34;
    color: #ffffff;
    border: none;
    padding: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #404654;
}

footer {
    background-color: #282c34;
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}
