/* ========== GLOBAL RESET ========== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", "Segoe UI", sans-serif;
  background: #ffffff;
  color: #444;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ========== PAGE WRAPPER ========== */

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
}


/* ========== HEADER / LOGO / NAV ========== */

header {
  text-align: center;
  margin-bottom: 24px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%; /* optional: keep round */
}

.brand-name {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  margin-bottom: 14px;
}

header .brand-name img{
  height: 18px !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  font-size: 12px;
  text-transform: lowercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.main-nav a {
  position: relative;
  padding-bottom: 3px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #999;
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 60%;
}


/* ========== ANNOUNCEMENT BAR ========== */

.announcement {
  margin: 0 auto 28px;
  max-width: 100%;
  font-size: 11px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 8px 4px;
}

.announcement-icon {
  min-width: 18px;
  min-height: 18px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}


/* ========== GRID LAYOUT ========== */

/* 1 column on small screens */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}


/* ========== FLIP CARD TILES (FAKE FLIP) ========== */

/* container for each card */
.tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;       /* square card */
  cursor: pointer;
}

/* inner card wrapper */
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f7f7f7;
  border-radius: 4px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* front + back faces, stacked */
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* front image */
.card-front {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s ease;
}

/* soft zoom on hover (desktop) */
.tile:hover .card-front img {
  transform: scale(1.08);
}

/* default states */
.card-front {
  opacity: 1;
  transform: rotateY(0deg);
}

/* back face, pinned to top-left */
.card-back {
  opacity: 0;
  transform: rotateY(10deg);
  padding: 16px;
  display: flex;
  align-items: flex-start;   /* content starts at top */
  justify-content: flex-start;
}

/* flipped states */
.tile.flipped .card-front {
  opacity: 0;
  transform: rotateY(-10deg);
}

.tile.flipped .card-back {
  opacity: 1;
  transform: rotateY(0deg);
}

/* back content pinned to top, full width */
.card-back-content {
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
  width: 100%;
}

.glaze-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.glaze-info {
  margin: 0 0 6px 0;
}

.glaze-maker {
  margin: 0;
  font-style: italic;
  color: #888;
}


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

footer {
  text-align: center;
  font-size: 11px;
  color: #b0b0b0;
  margin-top: 32px;
}


/* ========== SIDE LABELS (DESKTOP ONLY) ========== */

.side-label {
  display: none;
}


/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet ≥ 600px */
@media (min-width: 600px) {
  .page {
    padding: 28px 24px 40px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Small desktop ≥ 900px */
@media (min-width: 900px) {
  .page {
    padding: 32px 24px 48px;
  }

  header {
    margin-bottom: 32px;
  }

  .brand-name {
    font-size: 20px;
  }

  .main-nav {
    gap: 24px 32px;
    font-size: 13px;
  }

  .announcement {
    max-width: 680px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop ≥ 1200px */
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .side-label {
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: lowercase;
    color: #b5b5b5;
  }

  .side-label.left {
    left: 12px;
  }

  .side-label.right {
    right: 12px;
    transform: translateY(-50%) rotate(90deg);
  }
}

.tutorial-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tutorial-btn:hover {
  opacity: 0.85;
}


