/* static/style.css */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #35424a;
    color: #ffffff;
    padding: 1rem 0;
    text-align: center;
    border-bottom: #03b0a0 3px solid;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header h1 a {
    color: #ffffff;
    text-decoration: none;
}

header h1 a:hover {
     color: #03b0a0;
}

nav {
    background: #35424a;
    color: #ffffff;
    padding: 0.5rem 0;
    text-align: center;
}

nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

nav ul li {
    display: inline;
    margin: 0 10px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
}

nav a:hover {
    color: #03b0a0;
}

main {
    padding: 20px;
    margin: 20px auto;
    max-width: 960px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2, h3 {
    color: #35424a;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-item {
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    flex: 1 1 calc(33% - 20px);
    box-sizing: border-box;
    min-width: 180px;
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.product-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.product-item a {
    text-decoration: none;
    color: #333;
}

.product-item a:hover {
    color: #03b0a0;
}

.product-detail {
    /* スタイルが必要であれば追加 */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
    color: #333;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

form div {
    margin-bottom: 15px;
}

form label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

form button {
    background-color: #35424a;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

form button:hover {
    background-color: #03b0a0;
}

.error {
    color: red;
    font-weight: bold;
}

.success {
    color: green;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #35424a;
    color: #ffffff;
    margin-top: 20px;
}