* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ヘッダー */
header {
    background-color: #222;
    color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.hamburger {
    font-size: 32px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

/* スライドサイドメニュー */
#side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #222;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

#side-menu.open {
    left: 0;
}

#side-menu ul {
    padding: 80px 20px 20px;
    margin: 0;
    list-style: none;
}

#side-menu li {
    padding: 15px 0;
    border-bottom: 1px solid #444;
}

#side-menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

#side-menu a:hover {
    background-color: #333;
}

/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
}

.overlay.show {
    display: block;
}

/* メインコンテンツ */
main {
    margin-top: 70px;
    padding: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* お知らせスライダー */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    background: white;
}

.slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 40px 30px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #222;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 15px; }
.next { right: 15px; }

/* 商品カード */
.product-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    margin-top: 0;
    color: #1976d2;
}

.product-card button {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s;
}

.product-card button:hover:not(:disabled) {
    background: #1565c0;
}

.product-card button:disabled {
    background: #999;
    cursor: not-allowed;
}

/* ビジターボックス */
.visitors-box {
    margin: 40px auto;
    padding: 20px 30px;
    border: 3px solid #1976d2;
    width: fit-content;
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

/* フォーム */
form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
    max-width: 800px;
}

input[type="text"], input[type="password"], textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

button[type="submit"] {
    background: #43a047;
    color: white;
    padding: 14px 28px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

button[type="submit"]:hover {
    background: #388e3c;
}

/* フラッシュメッセージ */
.flash-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    background: #d4edda;
    color: #155724;
}

/* フッター */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 30px;
    margin-top: 60px;
    font-size: 14px;
}

footer a {
    color: #64b5f6;
    text-decoration: none;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header-container h1 {
        font-size: 20px;
    }

    .hamburger {
        font-size: 28px;
    }

    main {
        padding: 15px;
    }

    .slide {
        font-size: 18px;
        padding: 30px 20px;
    }

    .visitors-box {
        font-size: 22px;
        padding: 15px 20px;
    }

    form {
        padding: 20px;
    }

    #side-menu {
        width: 250px;
        left: -250px;
    }
}