@charset "UTF-8";

.hero-section {
    position: relative;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
}

/* 背景画像とグラデーションの合成 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 34, 77, 0.85) 0%, rgba(0, 86, 179, 0.6) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    width: 100%;
    text-align: left;
}

/* テキストコンテンツの装飾 */
.hero-content {
    max-width: 600px;
    color: #ffffff;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e2e8f0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- 商品一覧セクション --- */
.items-section {
    padding: 80px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    color: var(--text-main);
}

/* グリッドレイアウト */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 商品カード */
.item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

/* 詳細ページへのリンク領域 */
.item-detail-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.item-detail-link:hover .item-image {
    transform: scale(1.05);
}

.item-detail-link:hover .item-name {
    color: var(--primary-color);
}

.item-image-wrapper {
    aspect-ratio: 4 / 3;
    background-color: #f1f3f5;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-body-top {
    padding: 20px 20px 0;
}

.item-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 3行で三点リーダー表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* カード下部（価格・ボタン） */
.item-bottom {
    padding: 20px;
    margin-top: auto;
}

.item-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 15px;
}

.item-price span {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-muted);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
        min-height: 300px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-desc {
        font-size: 0.95rem;
    }
    .item-grid {
        grid-template-columns: 1fr;
    }
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* スマホ対応のため追加 */
    gap: 15px;
}

.logo {
    flex-shrink: 0;
}

/* 検索バーのデザイン */
.header-search {
    flex-grow: 1;
    max-width: 400px;
    margin: 0 20px;
}

.header-search form {
    display: flex;
    background: #f1f3f5;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.header-search input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.95rem;
    outline: none;
}

.header-search button {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.header-search button:hover {
    color: var(--primary-color);
}

/* スマホ対応（検索バー） */
@media (max-width: 768px) {
    .header-search {
        order: 3; /* ロゴとナビの下に配置 */
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
}

/* ホバー時のアニメーション*/
.item-detail-link:hover .no-image-placeholder {
    transform: scale(1.05);
}