/* =====================================================
   HEISEI MART — MODERN REDESIGN SYSTEM
   ===================================================== */

:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1f2430;

  --text: #f5f7fa;
  --muted: #a7b0be;
  --accent: #c62828;

  --radius: 16px;
}

/* =====================================================
   BASE RESET
===================================================== */

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* =====================================================
   TYPOGRAPHY
===================================================== */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

p {
  color: var(--muted);
}

/* =====================================================
   GLOBAL LAYOUT SYSTEM
===================================================== */

section {
  width: 100%;
  padding: 5rem 0;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =====================================================
   LINKS
===================================================== */

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =====================================================
   FLOATING SOCIAL BAR
===================================================== */
.floating {
    position: fixed;
    top: 2rem;
    left: 2rem;

    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.6rem 0.8rem;

    background: rgba(15,17,21,0.85);
    backdrop-filter: blur(12px);

    border-radius: 999px;
    z-index: 100;
}

.floating img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    cursor: pointer;
    transition: transform .2s;
}

.floating .logo {
    width: 4.5rem;
    height: auto;
}

@media (max-width: 768px){
  .floating{
    top: auto;
    bottom: 2rem;
  }
}

/* =====================================================
   HERO / SLIDESHOW
===================================================== */


.hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /*background-image: url("assets/heiseifrontpic.jpg");
  background-size: cover;*/
  background-color: rgb(22, 200, 80);
  overflow: hidden;
}

@media( max-width: 768px){
  .hero{
    min-height: 20vh;
  }
}

/* soft aesthetic glow */
/*.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.6), transparent 70%);
  top: -150px;
  right: -150px;
  filter: blur(40px);
  opacity: 0.7;
}*/

/* content block */
.hero-content {
  position: relative;
  max-width: 720px;
  z-index: 2;
}

/* title */
.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #1f1f1f;
}

/* subtitle */
.hero p {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #5a5a5a;
  line-height: 1.6;
}

/* buttons */
.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn.primary {
  background: #1f1f1f;
  color: white;
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: #000;
}

.btn.secondary {
  border: 1px solid #1f1f1f;
  color: #1f1f1f;
}

.btn.secondary:hover {
  background: rgba(0,0,0,0.05);
}



.gallery {
  width: 100%;
}

.gallery-grid {
    width: min(1100px, 92%);
    margin: 2rem auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;

    border-radius: 12px;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.gallery-grid img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

/* =====================================================
   NEWS SECTION (CAROUSEL CARDS)
===================================================== */

.news {
  background: var(--surface);
}

.news-scroll {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.news-item {
  flex: 0 0 320px;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s ease;
}

.news-item:hover {
  transform: translateY(-6px);
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-item p {
  padding: 1rem;
}

/* =====================================================
   SPECIALS / PRODUCTS GRID
===================================================== */

.specials {
  text-align: center;
}

.spec_prods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  width: min(1100px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
}

.product-name {
  margin-top: 0.75rem;
  font-weight: 600;
}

.product-price {
  margin-top: 0.4rem;
  color: var(--accent);
}

/* =====================================================
   SOCIAL / VISIT SECTIONS
===================================================== */

.social-block {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
  width: 100%;
  padding: 2rem;
  margin-top: 5rem;
  background: #0b0d10;
  text-align: center;
  color: var(--muted);
}
