/* Reset CSS */
*, *::before, *::after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul[role="list"], ol[role="list"] {
    list-style: none;
}

html:focus-within {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
}

img, picture {
    max-width: 100%;
    display: block;
}

input, button, textarea, select {
    font: inherit;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Main CSS */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}


p {

    line-height: 1.6;
    margin-bottom: 1.5rem;
}
h1, h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}
p {
    margin-bottom: 20px;
}
ul {
    padding-left: 20px;
}
a {
    color: #0066cc;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
#contactForm {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 30px;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
}
/* フォーム要素のスタイルを更新 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
    margin-bottom: 5px; /* 下部のマージンを追加 */
}

textarea {
    height: 100px;
    vertical-align: top; /* テキストエリアを上揃えに */
    resize: vertical; /* 垂直方向のリサイズのみ許可 */
}

input[type="submit"] {
    background-color: #0066cc;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}
input[type="submit"]:hover {
    background-color: #0052a3;
}
.error {
    color: red;
    font-size: 0.9em;
    margin-bottom: 15px;
}
/* テキストエリアの親要素にフレックスボックスを適用 */
.form-group {
    display: flex;
    flex-direction: column;
}

/* エラーメッセージのマージンを調整 */
.form-group .error {
    margin-top: 5px;
    margin-bottom: 10px;
}

#formFeedback {
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
}
#formFeedback.success {
    background-color: #d4edda;
    color: #155724;
}
#formFeedback.error {
    background-color: #f8d7da;
    color: #721c24;
}

.site-footer {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* 制作サイトセクション */
.my-sites {
    background-color: #f8f9fa;
    padding: 2rem 1.5rem;
    border-top: 1px solid #e9ecef;
}

.my-sites-content {
    max-width: 700px;
    margin: 0 auto;
}

.my-sites h2 {
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.sites-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.sites-list li {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.sites-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sites-list a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.sites-list a:hover {
    color: #0052a3;
    text-decoration: none;
}