@charset "UTF-8";

/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #faf9f6;
  /* Off-white */
  --color-text: #5a4e4d;
  /* Soft Brown */
  --color-primary: #ffb7b2;
  /* Vibrant Pink */
  --color-secondary: #fff5e6;
  /* Warm Beige */
  --color-accent: #c7ceea;
  /* Periwinkle */
  --color-glass: rgba(255, 255, 255, 0.65);
  --color-white: #ffffff;

  /* Fonts */
  --font-main: 'Zen Maru Gothic', sans-serif;

  /* Layout */
  --header-height: 80px;
  --max-width: 1000px;
  --border-radius: 12px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 32px;
  --spacing-xl: 64px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  /* Fallback */
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  /* For particles */
  min-height: 100vh;
}

/* Slideshow Container */
#bg-slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.bg-slide.active {
  opacity: 1;
}

/* Overlay to ensure text readability */
#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Particle Container */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -20px;
  background: #6d4c41;
  /* Chocolate Brown */
  border-radius: 50%;
  box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.2), 2px 2px 5px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-120vh) scale(0.5);
    opacity: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-radius: var(--border-radius);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Huge Watermark Typography */
.section::before {
  content: attr(data-watermark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.3);
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -5px;
}

.section__title {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  color: var(--color-text);
  display: inline-block;
  border-bottom: 3px dotted var(--color-primary);
  padding-bottom: 5px;
}

.section-desc {
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .section-desc {
    margin-bottom: 60px;
    /* 40px or more as requested */
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  height: var(--header-height);
  background-color: var(--color-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
}

.header__logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.header__logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header__nav {
  display: none;
  /* Mobile first: hidden by default */
}

/* Desktop Nav */
@media (min-width: 768px) {
  .header__nav {
    display: block;
  }

  .nav__list {
    display: flex;
    gap: var(--spacing-lg);
  }

  .nav__item a {
    font-size: 1rem;
    font-weight: 500;
  }

  .hamburger {
    display: none;
  }
}

/* Mobile Nav (Drawer) */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: right 0.3s ease-in-out;
  z-index: 200;
  padding: var(--spacing-xl) var(--spacing-md);
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.nav-mobile-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--spacing-sm);
  display: flex;
  /* Ensure it takes space */
  align-items: center;
  justify-content: center;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile .nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  text-align: center;
}

.nav-mobile .nav__item a {
  font-size: 1.2rem;
  display: block;
  padding: var(--spacing-sm);
}

/* Hamburger Menu Button */
.hamburger {
  display: block;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 201;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 3px;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  bottom: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-glass);
  backdrop-filter: blur(5px);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  margin-top: var(--spacing-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer__text {
  font-size: 0.9rem;
}

/* ==========================================================================
   Home (index.html)
   ========================================================================== */
.kv {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}

.kv img {
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

.kv__copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius);
  text-align: center;
  width: 80%;
  max-width: 700px;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.kv__copy h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.kv__copy p {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .kv__copy h2 {
    font-size: 2.5rem;
  }

  .kv__copy p {
    font-size: 1.2rem;
  }
}

.home-nav {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.home-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background-color: var(--color-glass);
  backdrop-filter: blur(5px);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  color: var(--color-text);
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, background-color 0.3s;
}

.home-nav__link:hover {
  transform: translateY(-5px);
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==========================================================================
   Concept (concept.html)
   ========================================================================== */
.concept-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
}

.concept-row {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  align-items: center;
  width: 100%;
}

.concept-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.concept-img img {
  display: block;
  width: 100%;
  height: auto;
}

.concept-text {
  text-align: center;
  max-width: 600px;
}

.concept-text h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.concept-text p {
  margin-bottom: var(--spacing-md);
}

@media (min-width: 768px) {

  .concept-content,
  .concept-row {
    flex-direction: row;
    text-align: left;
    justify-content: center;
    align-items: center;
  }

  .concept-img {
    flex: 1;
  }

  .concept-text {
    flex: 1;
  }
}

/* ==========================================================================
   News (news.html)
   ========================================================================== */
/* ==========================================================================
   News (Asymmetrical Layout)
   ========================================================================== */
.news-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

/* News Item Link (Wrapper) */
.news-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1 1 280px;
  max-width: 450px;
}

.news-item {
  height: 100%;
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.news-item:nth-child(odd) {
  transform: rotate(1deg);
}

.news-item:nth-child(even) {
  transform: rotate(-1deg);
}

.news-item:hover {
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.news-item:hover::before {
  opacity: 0.1;
}

.news-meta {
  display: flex;
  gap: var(--spacing-md);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.news-date {
  color: #888;
}

.news-tag {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
}

.news-title {
  font-weight: bold;
}

@media (min-width: 768px) {
  .news-item-link {
    flex: 0 0 calc(50% - (var(--spacing-lg) / 2));
    /* Gap is shared, so width is (100% - gap) / 2 */
  }

  .news-item {
    flex-direction: row;
    align-items: baseline;
    gap: var(--spacing-lg);
  }

  .news-meta {
    margin-bottom: 0;
    min-width: 200px;
  }
}

/* ==========================================================================
   Item (item.html)
   ========================================================================== */
/* ==========================================================================
   Item (Bento Grid)
   ========================================================================== */
.item-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  width: 100%;
}

.item-grid .item-card {
  flex: 1 1 300px;
  max-width: 320px;
}

.item-card {
  background-color: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid white;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* =========================================
   Floating Minne Button
   ========================================= */
.minne-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-decoration: none;
  animation: float 3s ease-in-out infinite;
  cursor: pointer;
}

.minne-fab:hover .minne-fab__icon {
  transform: scale(1.1);
}

.minne-fab:hover .minne-fab__text {
  transform: scale(1.05);
}

.minne-fab__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid white;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.minne-fab__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.minne-fab__text {
  background: white;
  padding: 10px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  white-space: nowrap;
  transition: transform 0.3s ease;
  border: 2px solid var(--color-primary);
}

/* Triangle for speech bubble */
.minne-fab__text::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  /* Arrow pointing right */
  border-style: solid;
  border-color: transparent transparent transparent var(--color-primary);
}

.minne-fab__text::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 7px 0 7px 7px;
  border-style: solid;
  border-color: transparent transparent transparent white;
  z-index: 1;
}


@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Adjust position for mobile if needed */
@media (max-width: 768px) {
  .minne-fab {
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    /* Stack vertically on very small screens, Text first (top), Icon second (bottom) */
    align-items: flex-end;
    /* Align right */
    gap: 8px;
  }

  .minne-fab__icon {
    width: 64px;
    height: 64px;
  }

  .minne-fab__text {
    font-size: 12px;
    padding: 8px 12px;
    /* Adjust arrow for top placement since we are stacking vertically */
    margin-bottom: 4px;
  }

  /* Re-position arrow for vertical stack */
  .minne-fab__text::after {
    top: 100%;
    right: 20px;
    transform: none;
    border-width: 8px 8px 0 8px;
    /* Arrow pointing down */
    border-color: var(--color-primary) transparent transparent transparent;
  }

  .minne-fab__text::before {
    top: 100%;
    right: 21px;
    transform: none;
    border-width: 7px 7px 0 7px;
    border-color: white transparent transparent transparent;
  }
}


/* ==========================================================================
   Episode (episode.html)
   ========================================================================== */
.episode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .episode-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.episode-card {
  background-color: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid white;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.episode-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.episode-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.episode-card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.episode-card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.episode-card-items {
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.episode-card-desc {
  font-size: 0.9rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  /* Standard property */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Episode Modal Specifics */
.episode-modal-content {
  max-width: 900px;
  width: 90%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Container for both galleries */
.episode-gallery-container {
  width: 100%;
  background-color: #f0f0f0;
  border-bottom: 1px solid #eee;
}

/* Mobile Gallery (Vertical Scroll) */
.gallery-sp {
  display: block;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  padding: var(--spacing-md);
}

.gallery-sp .gallery-track {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.gallery-sp img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* PC Gallery (Image Switcher) */
.gallery-pc {
  display: none;
}

@media (min-width: 768px) {
  .episode-modal-content {
    flex-direction: row;
    /* Side-by-side on PC */
    align-items: stretch;
  }

  /* Reset Mobile Gallery */
  .gallery-sp {
    display: none;
  }

  .episode-gallery-container {
    width: 50%;
    border-bottom: none;
    border-right: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: #f9f9f9;
  }

  /* Show PC Gallery */
  .gallery-pc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: var(--spacing-md);
    justify-content: center;
  }

  .gallery-pc-main {
    width: 100%;
    height: 0;
    flex: 1;
    /* Fill available space */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
  }

  .gallery-pc-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Navigation Arrows */
  .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 10;
  }

  .gallery-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  /* Thumbnails */
  .gallery-pc-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
  }

  .gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
    border: 2px solid transparent;
  }

  .gallery-thumb:hover,
  .gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
  }

  /* Info Area on PC */
  .episode-info {
    width: 50%;
    height: 100%;
    overflow-y: auto;
  }
}

.episode-info {
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.episode-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.episode-meta {
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.episode-label {
  font-weight: bold;
  margin-right: 8px;
}

.episode-items {
  color: var(--color-primary);
}

.episode-desc {
  line-height: 1.8;
  white-space: pre-wrap;
}

.episode-actions {
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
}

/* Scrollbar for gallery */
.episode-gallery::-webkit-scrollbar {
  height: 8px;
}

.episode-gallery::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.episode-gallery::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.episode-gallery::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}



.item-card:hover {
  z-index: 5;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.item-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.item-card__body {
  padding: var(--spacing-md);
  text-align: left;
}

.item-card__title {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.item-card__price {
  font-weight: bold;
  color: #9c8481;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.item-card__desc {
  font-size: 0.9rem;
  color: #666;
}

/* ==========================================================================
   SNS (sns.html)
   ========================================================================== */
.sns-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  max-width: 400px;
  margin: 0 auto;
}

.sns-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background-color: var(--color-glass);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-weight: bold;
  gap: var(--spacing-sm);
  transition: background-color 0.3s;
}

.sns-btn--instagram {
  color: #E1306C;
  border: 1px solid #E1306C;
}

.sns-btn--twitter {
  color: #000000;
  border: 1px solid #000000;
}

.sns-btn--threads {
  color: #000000;
  border: 1px solid #000000;
}

.sns-btn--youtube {
  color: #FF0000;
  border: 1px solid #FF0000;
}

.sns-btn--minne {
  color: #d99b5a;
  border: 1px solid #d99b5a;
}

.sns-btn:hover {
  background-color: var(--color-secondary);
}

/* ==========================================================================
   Catalog Styles (Regular Grid for item.html)
   ========================================================================== */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  width: 100%;
}

.catalog-grid .item-card {
  /* Reset Bento spans if they leak, though simple class separation prevents it */
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto;
  aspect-ratio: 1 / 1.4;
  /* taller cards */
  cursor: pointer;
}

.catalog-grid .item-card__body {
  transform: translateY(0);
  /* Always visible on catalog? Or keep hover? Let's keep hover effect but maybe simpler */
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  /* Hidden by default */
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: var(--spacing-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transform: scale(0.8) rotateX(10deg);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1) rotateX(0);
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  z-index: 10;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.modal-img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  max-height: 400px;
}

.modal-info h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.modal-price {
  font-size: 1.5rem;
  color: var(--color-primary);
  /* Use pink/vibrant color */
  font-weight: bold;
  display: block;
  margin-bottom: var(--spacing-md);
}

.modal-desc {
  font-size: 1.1rem;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
    align-items: flex-start;
  }

  .modal-img {
    width: 50%;
  }

  .modal-info {
    width: 50%;
  }
}

/* ==========================================================================
   Search Bar
   ========================================================================== */
.search-container {
  margin-bottom: var(--spacing-lg);
  display: flex;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 500px;
  padding: var(--spacing-md);
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  /* Pillow shape */
  font-size: 1rem;
  color: var(--color-text);
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  text-align: center;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(255, 183, 178, 0.3);
  /* Pink glow */
  border-color: var(--color-primary);
}

.search-input::placeholder {
  color: #999;
}

/* ==========================================================================
   Minne Button
   ========================================================================== */
/* ==========================================================================
   Minne Button & Modal Actions
   ========================================================================== */
.modal-actions {
  display: flex;
  justify-content: center;
  margin-top: var(--spacing-lg);
}

.btn-minne {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 50px;
  /* Touch target > 44px */
  padding: 0 var(--spacing-lg);
  background-color: #EBAD6A;
  /* Minne Orange-ish */
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 25px;
  /* Pill shape */
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(235, 173, 106, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  border: 2px solid transparent;
}

.btn-minne:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(235, 173, 106, 0.5);
  background-color: #d99b5a;
}

.btn-minne:active {
  transform: translateY(0);
}

/* Support for disabled state if URL is missing */
.btn-minne.disabled {
  background-color: #ccc;
  box-shadow: none;
  pointer-events: none;
  cursor: default;
}

/* ==========================================================================
   Tag Filter (item.html)
   ========================================================================== */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tag-chip {
  background: var(--color-glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s;
}

.tag-chip:hover,
.tag-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Tags on Card */
.item-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: var(--spacing-sm);
}

.item-card__tag {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
  color: #888;
}

/* ==========================================================================
   News Detail (news-detail.html)
   ========================================================================== */
.news-detail {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background: var(--color-glass);
  padding: var(--spacing-xl);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-detail__header {
  border-bottom: 1px solid #ddd;
  padding-bottom: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.news-detail__meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
}

.news-detail__title {
  font-size: 2rem;
  color: var(--color-text);
  line-height: 1.4;
}

.news-detail__content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.news-detail__content p {
  margin-bottom: var(--spacing-lg);
}

.news-detail__content h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid var(--color-primary);
  padding-left: var(--spacing-sm);
}

.news-detail__content img {
  margin: var(--spacing-lg) 0;
  width: 100%;
  border-radius: var(--border-radius);
}

.news-back-link {
  margin-top: var(--spacing-xl);
  text-align: center;
}

.news-back-link a {
  display: inline-block;
  padding: 10px 20px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-weight: bold;
  color: var(--color-text);
}

.news-back-link a:hover {
  background: var(--color-primary);
  color: white;
}