/* ============================================
   華石魔法店 テーマ連動CSS v4
   ============================================ */

:root {
  --magic-accent: #c8a050;
  --magic-gold:   #c8a050;
  --magic-glow:   rgba(200,160,80,.30);
  --magic-bg:     #faf9f6;
}

/* ---- 背景 ---- */
body { background-color: var(--magic-bg); }

/* ---- ナビホバー ---- */
.c-nav-item > a,
.c-nav-hasMenu {
  transition: color 0.25s, text-shadow 0.25s;
}
.c-nav-item > a:hover,
.c-nav-hasMenu:hover {
  color: var(--magic-accent) !important;
  text-shadow: 0 0 10px var(--magic-glow);
}
.c-nav-item.is-active > a {
  color: var(--magic-accent) !important;
}
.c-nav-menu {
  border: 1px solid rgba(200,160,80,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* ---- 見出しSVG ---- */
.c-caption svg path,
.c-caption svg { fill: var(--magic-gold); }
.c-caption { filter: drop-shadow(0 1px 4px var(--magic-glow)); }

/* ---- MV下端フェード ---- */
.p-top-mv { position: relative; }
.p-top-mv::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 30%;
  background: linear-gradient(to bottom, transparent, var(--magic-bg));
  pointer-events: none;
}

/* ============================================
   ABOUTセクション
   ============================================ */

/* margin-top:25px; をテンプレート側で指定されているのでリセット */
.c-about-pic img {
  margin-top: 0 !important;
  border-radius: 12px;
  display: block;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* 画像コンテナ：ゴールドフレーム */
.c-about .c-about-inner,
.c-about-inner {
  align-items: flex-start !important;
}

.c-about .c-about-content,
.c-about-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
  align-self: flex-start !important;
}

.c-about-caption {
  display: none;
  margin: 0 !important;
  padding: 0 !important;
}

.c-about-pic {
  align-self: flex-start;
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.45s ease, transform 0.45s ease;
  box-shadow:
    0 0 0 2px rgba(200,160,80,.55),
    0 0 0 5px rgba(140,100,40,.15),
    0 8px 32px rgba(0,0,0,.25),
    0 0 28px rgba(200,160,80,.18);
}
.c-about-pic:hover {
  box-shadow:
    0 0 0 2px rgba(220,180,100,.90),
    0 0 0 6px rgba(160,120,50,.25),
    0 12px 40px rgba(0,0,0,.30),
    0 0 48px rgba(200,160,80,.38);
  transform: scale(1.015);
}
.c-about-pic:hover img {
  transform: scale(1.03);
}

/* テキスト左アクセントライン */
.c-about-text {
  margin-top: 0 !important;
}

.c-about-text-term { color: var(--magic-gold); }
.c-about-text-desc {
  margin-top: 0 !important;
  border-left: 2px solid rgba(200,160,80,.40);
  padding-left: 14px;
  line-height: 2.0;
}

/* VIEW MORE ボタン */
.c-about-more {
  display: block;
  margin-top: 8px;
  margin-left: auto;
  padding: 10px 32px;
  background: linear-gradient(135deg, #c8a050, #a07830);
  color: #fff !important;
  border-radius: 3px;
  letter-spacing: 0.12em;
  font-size: 13px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.2s;
  border-bottom: none !important;
  text-align: center;
  width: fit-content;
}
.c-about-more:hover {
  box-shadow: 0 4px 20px rgba(200,160,80,.55);
  transform: translateY(-2px);
  color: #fff !important;
  opacity: 1 !important;
}

/* スクロールフェードイン */
.c-about-pic,
.c-about-content {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.c-about-pic     { transform: translateX(-28px); }
.c-about-content { transform: translateX(28px); }
.c-about-pic.is-visible,
.c-about-content.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* スマホ */
@media screen and (max-width: 767px) {
  .c-about-pic {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    transform: translateY(-20px) !important;
  }
  .c-about-pic.is-visible {
    transform: translateY(0) !important;
  }
  .c-about-content {
    width: 100% !important;
    transform: translateY(20px) !important;
  }
  .c-about-content.is-visible {
    transform: translateY(0) !important;
  }
  .c-about-more {
    display: block;
    text-align: center;
    margin-top: 20px;
  }
}

/* ============================================
   商品カード
   ============================================ */
.c-products-item.c-card {
  background: #fff;
  border: 1px solid #ece8e0;
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform   0.38s cubic-bezier(0.34,1.56,0.64,1),
    box-shadow  0.38s ease,
    border-color 0.38s ease;
}
.c-card:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow:
    0 12px 36px var(--magic-glow),
    0 0 0 1px var(--magic-accent);
  border-color: var(--magic-accent);
}
.c-card-pic { overflow: hidden; position: relative; }
.c-card-pic img {
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
  margin-top: 0 !important;
}
.c-card:hover .c-card-pic img { transform: scale(1.07); }

.c-card-pic::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 45%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.c-card:hover .c-card-pic::after {
  animation: cardShimmer 0.6s ease forwards;
}
@keyframes cardShimmer {
  0%  { left: -80%; opacity: 0; }
  8%  { opacity: 1; }
  100%{ left: 130%; opacity: 0; }
}
.c-card-price-number.proper { color: var(--magic-gold); }

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.c-products-item { animation: fadeInCard 0.5s ease both; }
.c-products-item:nth-child(1)  { animation-delay: 0.04s; }
.c-products-item:nth-child(2)  { animation-delay: 0.08s; }
.c-products-item:nth-child(3)  { animation-delay: 0.12s; }
.c-products-item:nth-child(4)  { animation-delay: 0.16s; }
.c-products-item:nth-child(5)  { animation-delay: 0.20s; }
.c-products-item:nth-child(6)  { animation-delay: 0.24s; }
.c-products-item:nth-child(7)  { animation-delay: 0.28s; }
.c-products-item:nth-child(8)  { animation-delay: 0.32s; }
.c-products-item:nth-child(n+9){ animation-delay: 0.36s; }

/* ============================================
   ボタン・その他
   ============================================ */
.c-btn,
.c-btn-large {
  background: linear-gradient(135deg, var(--magic-accent) 0%, var(--magic-gold) 100%);
  border: none;
  color: #fff;
  letter-spacing: 0.08em;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.c-btn:hover,
.c-btn-large:hover {
  box-shadow: 0 4px 20px var(--magic-glow);
  transform: translateY(-2px);
  color: #fff;
}
.c-btn:active,
.c-btn-large:active { transform: translateY(0); }

.p-item-submit button,
.p-item-submit input[type="submit"],
.p-item-submit a {
  background: linear-gradient(135deg, var(--magic-accent), var(--magic-gold)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 3px 14px var(--magic-glow) !important;
  transition: all 0.3s ease !important;
}
.p-item-submit button:hover,
.p-item-submit input[type="submit"]:hover,
.p-item-submit a:hover {
  box-shadow: 0 6px 24px var(--magic-glow) !important;
  transform: translateY(-2px) !important;
}

.c-pickup-item {
  border: 1px solid #ece8e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.35s, transform 0.35s;
}
.c-pickup-item:hover {
  box-shadow: 0 8px 28px var(--magic-glow);
  transform: translateY(-4px);
}
.c-pickup-price-number { color: var(--magic-gold); }

.c-related-item {
  border: 1px solid #ece8e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.c-related-item:hover {
  box-shadow: 0 6px 20px var(--magic-glow);
  transform: translateY(-3px);
}
.c-related-price-number { color: var(--magic-gold); }

.c-contact { border-top: 1px solid rgba(200,160,80,.12); }
.l-footer   { border-top: 1px solid rgba(200,160,80,.12); }

.l-footer-sns-icon { transition: filter 0.25s, transform 0.25s; }
.l-footer-sns-icon:hover {
  filter: drop-shadow(0 0 4px var(--magic-glow));
  transform: scale(1.12);
}

.p-top-bar a { color: #7a6040; transition: color 0.25s; }
.p-top-bar a:hover { color: var(--magic-accent); }

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: #f5f3ee; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--magic-accent), var(--magic-gold));
  border-radius: 3px;
}

.c-search-input:focus {
  border-color: var(--magic-accent) !important;
  box-shadow: 0 0 8px var(--magic-glow);
  outline: none;
}

.c-news-item {
  border-bottom: 1px solid #ece8e0;
  transition: background 0.2s;
}
.c-news-item:hover { background: rgba(200,160,80,.04); }

.p-blog-card {
  border: 1px solid #ece8e0;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.p-blog-card:hover {
  box-shadow: 0 6px 22px var(--magic-glow);
  transform: translateY(-3px);
}
