/* ===========================
   index.html — page-specific styles
   =========================== */

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 10, 15, 0.55) 0%,
    rgba(5, 10, 15, 0.35) 60%,
    rgba(5, 10, 15, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-family: var(--font-jp);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.9;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.8s both;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Ticker ── */
.ticker-wrap {
  background: var(--black);
  color: var(--gray-300);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: ticker 30s linear infinite;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Section base ── */
.section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 8px;
}

.section-subtitle {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0.1em;
}

.section-footer {
  text-align: center;
  margin-top: 48px;
}

/* ── News ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.news-tag.new {
  background: var(--dark-blue);
}

.news-body {
  padding: 0 4px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.8;
}

/* ── Category ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.category-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.06);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,10,15,0.75) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  color: var(--white);
}

.category-overlay h3 {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.category-overlay p {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.category-arrow {
  font-family: var(--font-en);
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Featured products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-100);
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
  color: var(--gray-700);
  z-index: 2;
}

.product-card:hover .product-wishlist {
  opacity: 1;
}

.product-wishlist:hover {
  background: var(--white);
  color: var(--black);
}

.product-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--dark-blue);
  color: var(--white);
  font-family: var(--font-en);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
}

.product-badge.new {
  background: var(--black);
}

.product-info {
  padding: 14px 4px 4px;
}

.product-origin {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-blue);
  display: block;
  margin-bottom: 5px;
}

.product-name {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  margin-bottom: 5px;
  line-height: 1.4;
}

.product-note {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.product-price {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
}

.product-price span {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* ── Philosophy ── */
.philosophy-section {
  position: relative;
  padding: 120px 0;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.philosophy-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.philosophy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 15, 0.65);
}

.philosophy-content {
  position: relative;
  z-index: 2;
}

.philosophy-eyebrow {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mid-blue);
  margin-bottom: 20px;
}

.philosophy-section h2 {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.philosophy-text {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 2;
  margin-bottom: 40px;
}

/* ── Cafe teaser ── */
.cafe-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cafe-teaser-desc {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 2;
  margin: 16px 0 24px;
}

.cafe-list-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cafe-list-preview li {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cafe-list-preview li span {
  color: var(--accent);
  font-weight: 500;
}

.cafe-teaser-img {
  overflow: hidden;
  border-radius: var(--radius);
}

.cafe-teaser-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.cafe-teaser-img:hover img {
  transform: scale(1.03);
}

/* ── Instagram grid ── */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 40px;
}

.insta-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.insta-item:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cafe-teaser-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Dify chatbot fixed override ── */
#dify-chatbot-bubble-button {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
}

#dify-chatbot-bubble-window {
  position: fixed !important;
  bottom: 90px !important;
  right: 24px !important;
  z-index: 9999 !important;
}

/* チャットウィンドウ内ヘッダー背景色をコーヒーブラウンに */
#dify-chatbot-bubble-window .bg-primary-600 {
  background-color: #3b2314 !important;
}

#dify-chatbot-bubble-window .bg-primary-700 {
  background-color: #2e1b0f !important;
}

#dify-chatbot-bubble-window .text-primary-600,
#dify-chatbot-bubble-window .text-primary-700 {
  color: #3b2314 !important;
}

/* 送信ボタンの色 */
#dify-chatbot-bubble-window .bg-blue-700 {
  background-color: #3b2314 !important;
}

/* アシスタントのアイコン画像を差し替え */
#dify-chatbot-bubble-window img[alt="bot"] {
  content: url('../4304_color.png') !important;
}

#dify-chatbot-bubble-window .bot-icon img {
  content: url('../4304_color.png') !important;
}
