body { font-family: 'Segoe UI', sans-serif; margin: 0; background: #f5f5f5; }
header {
    background: #222;
    color: #fff;
    padding: 1rem 2rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.header-flex {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}
nav {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}
nav a {
    color: #fff;
    margin-right: 1.5rem;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: #4caf50;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
nav a:hover {
    background: #388e3c;
    color: #fff;
    text-decoration: none;
}
.banner { background: #4caf50; color: #fff; padding: 2rem; text-align: center; }
.categories {
    display: flex;
    flex-direction: row; /* 横一列に変更 */
    align-items: flex-start;
    gap: 1.2rem;
    margin: 2rem auto;
    max-width: 100%;
    justify-content: center;
}
.category {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px #ccc;
    text-align: center;
    min-width: 120px;
    max-width: 180px;
    margin: 0;
}
.category a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.2;
    display: block;
}
footer { background: #222; color: #fff; text-align: center; padding: 1rem; margin-top: 2rem; }
.site-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.brand-logo {
    height: 90px;
    width: auto;
    margin: 0;
    display: block;
}
.header-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.slideshow-container {
    max-width: 700px;
    margin: 2rem auto;
    position: relative;
}
.slide {
    display: none;
}
.slide-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px #bbb;
}
.slideshow-dots {
    text-align: center;
    margin-top: 0.5rem;
}
.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
    cursor: pointer;
}
.dot.active {
    background-color: #4caf50;
}
.category-dropdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}
.category-label {
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.1rem;
}
.category-dropdown {
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #bbb;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 2px 8px #eee;
}
.category.dropdown {
    position: relative;
}
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 180px;
    background: #fff;
    box-shadow: 0 2px 8px #bbb;
    border-radius: 6px;
    z-index: 10;
    padding: 0.5rem 0;
}
.dropdown-content a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: #222;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.dropdown-content a:hover {
    background: #f0f0f0;
}
.category.dropdown:hover .dropdown-content,
.category.dropdown:focus-within .dropdown-content {
    display: block;
}
.login-container {
    max-width: 350px;
    margin: 3rem auto 2rem auto;
    background: #fff;
    padding: 32px 24px 28px 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px #ccc;
    text-align: center;
}
.login-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
#login-form label {
    text-align: left;
    font-weight: bold;
}
#login-form input {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 1rem;
}
#login-form button {
    padding: 0.7rem;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
}
#login-form button:hover {
    background: #388e3c;
}
#register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
#register-form label {
    text-align: left;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
#register-form input {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 1rem;
}
#register-form button {
    padding: 0.7rem;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}
#register-form button:hover {
    background: #388e3c;
}
.login-link {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #4caf50;
    text-decoration: none;
}
.login-link:hover {
    text-decoration: underline;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.98rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #4caf50;
}
.footer-logo {
    text-align: center;
    margin-bottom: 0.5rem;
}
.footer-brand-logo {
    height: 32px;
    width: auto;
    vertical-align: middle;
    opacity: 0.85;
}
.footer-copy {
    text-align: center;
    font-size: 0.95rem;
}
.recommend-section, .special-section {
    max-width: 1000px;
    margin: 2.5rem auto 1.5rem auto;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #eee;
}
.recommend-section h3, .special-section h3 {
    margin-bottom: 1.2rem;
    color: #388e3c;
    font-size: 1.3rem;
    text-align: left;
}
.recommend-list, .special-list {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.recommend-item, .special-item {
    width: 200px;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 1px 6px #ddd;
    text-align: center;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
    transition: box-shadow 0.2s;
}
.recommend-item:hover, .special-item:hover {
    box-shadow: 0 4px 16px #bbb;
}
.recommend-item img, .special-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.7rem;
    border-radius: 4px;
    background: #f0f0f0;
}
.item-title {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 0.3rem 0 0.2rem 0;
    color: #222;
}
.item-price {
    font-size: 1rem;
    color: #d32f2f;
}
.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.95em;
    margin-right: 0.5em;
}
.products-container {
    max-width: 1100px;
    margin: 2.5rem auto 2rem auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #eee;
    padding: 2rem 1.5rem;
}
.products-container h2 {
    margin-bottom: 1.5rem;
    color: #388e3c;
    font-size: 1.4rem;
}
.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}
.product-item {
    width: 220px;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: 0 1px 6px #ddd;
    text-align: center;
    padding: 1rem 0.5rem 1.2rem 0.5rem;
    transition: box-shadow 0.2s;
}
.product-item:hover {
    box-shadow: 0 4px 16px #bbb;
}
.product-item img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.7rem;
    border-radius: 4px;
    background: #f0f0f0;
}
.products-filter {
    margin-bottom: 1.5rem;
    text-align: right;
}
#category-select {
    font-size: 1rem;
    padding: 0.3rem 1rem;
    border-radius: 5px;
    border: 1px solid #bbb;
}
.products-main-flex {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto 2rem auto;
}
.products-filter-menu {
    width: 230px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px #eee;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    height: fit-content;
}
.products-filter-menu h3 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #388e3c;
}
.filter-group {
    margin-bottom: 1.2rem;
}
.filter-group label {
    font-weight: bold;
    font-size: 0.98rem;
}
.products-filter-menu select,
.products-filter-menu input[type="text"] {
    width: 100%;
    padding: 0.3rem 0.5rem;
    margin-top: 0.3rem;
    border-radius: 5px;
    border: 1px solid #bbb;
    font-size: 1rem;
}
.products-filter-menu button[type="submit"] {
    width: 100%;
    padding: 0.6rem;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.products-filter-menu button[type="submit"]:hover {
    background: #388e3c;
}
.products-container {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #eee;
    padding: 2rem 1.5rem;
}
.no-products {
    padding: 2rem 0;
    text-align: center;
    color: #888;
    font-size: 1.1rem;
}
.cart-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center; /* 中央寄せに変更 */
    margin-top: 2rem;
}
.cart-btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: #e0e0e0;
    color: #222;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.cart-btn:hover {
    background: #bdbdbd;
}
.cart-btn-main {
    background: #4caf50;
    color: #fff;
}
.cart-btn-main:hover {
    background: #388e3c;
}
.input-note {
    font-size: 0.95em;
    color: #888;
    margin-left: 8px;
}
.header-search-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-top: 8px;
    gap: 0;
}

.header-search-input {
    padding: 8px 16px;
    border: 1px solid #bfc8d6;
    border-radius: 24px 0 0 24px;
    font-size: 1rem;
    background: #f8fafc;
    width: 240px;
    outline: none;
    transition: border 0.2s;
}

.header-search-input:focus {
    border: 1.5px solid #2a5d9f;
    background: #fff;
}

.header-search-btn {
    padding: 8px 20px;
    border: none;
    background: #2a5d9f;
    color: #fff;
    border-radius: 0 24px 24px 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: bold;
}

.header-search-btn:hover {
    background: #17406a;
}

.register-container {
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.register-container h2 {
    text-align: center;
    margin-bottom: 16px;
}

.register-container .register-note {
    text-align: center;
    font-size: 1rem;
    color: #2a5d9f;
    margin-bottom: 24px;
}

.register-content {
    display: flex;
    gap: 36px;
    justify-content: space-between;
}

.register-terms {
    flex: 1;
    max-width: 50%;
    font-size: 0.95rem;
    color: #444;
}

.register-terms h3 {
    font-size: 1.2rem;
    color: #2a5d9f; /* 青系の色で視認性を向上 */
    font-weight: bold;
    margin-bottom: 12px;
    text-align: left;
    border-bottom: 2px solid #bfc8d6; /* 下線を追加して強調 */
    padding-bottom: 4px;
}

.register-form {
    flex: 1;
    max-width: 50%;
}

.register-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.register-form input[type="email"],
.register-form input[type="password"] {
    padding: 10px 12px;
    border: 1px solid #bfc8d6;
    border-radius: 4px;
    font-size: 1rem;
    background: #f8fafc;
}

.register-form button {
    padding: 12px 0;
    background: #2a5d9f;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.register-form button:hover {
    background: #17406a;
}

/* 細いバナー */
.top-banner {
    display: flex;
    align-items: center;
    background: #2a5d9f;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.9rem;
    position: relative;
}

.top-banner span {
    flex: 1; /* これでspanが左、ボタンが右端に寄る */
}

.banner-menu {
    position: relative;
    /* margin-left: auto; ←不要です */
}

.banner-menu button {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.banner-menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 1000;
}

.banner-menu ul li {
    padding: 4px 12px;
}

.banner-menu ul li a {
    text-decoration: none;
    color: #2a5d9f;
}

.banner-menu ul li a:hover {
    text-decoration: underline;
}

.banner-menu ul.hidden {
    display: none;
}

.banner-menu ul.visible {
    display: block;
}

.nav-banner-menu {
    display: inline-block;
    position: relative;
    margin-left: 12px;
}

.nav-banner-menu button {
    background: #2a5d9f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-banner-menu button:hover {
    background: #17406a;
}

.nav-banner-menu ul {
    position: absolute;
    top: 110%;
    right: 0;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 1000;
    min-width: 220px;         /* ←幅を広げる */
    max-width: 340px;         /* 必要に応じて最大幅も指定 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    white-space: normal;      /* 折り返し許可 */
    left: auto;               /* 右端基準 */
    right: 0;                 /* 右端に揃える */
    transform: translateX(-5%); /* -60% → -5% に調整して右寄りに */
}

.nav-banner-menu ul li {
    padding: 4px 16px;
}

.nav-banner-menu ul li a {
    text-decoration: none;
    color: #2a5d9f;
}

.nav-banner-menu ul li a:hover {
    text-decoration: underline;
}

.nav-banner-menu ul.hidden {
    display: none;
}

.nav-banner-menu ul.visible {
    display: block;
}

@media (max-width: 900px) {
    .register-main-flex {
        flex-direction: column;
        gap: 18px;
        max-width: 98vw;
        align-items: stretch;
    }
    .register-terms, .login-container {
        max-width: 100%;
        display: block;
    }
}
@media (max-width: 600px) {
    .register-content {
        flex-direction: column;
        gap: 24px;
    }
    .register-terms,
    .register-form {
        max-width: 100%;
    }
    .nav-banner-menu ul {
        min-width: 140px;
        max-width: 98vw;
        transform: none;
    }
}