@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


figure.affiliate-card {
  text-align: center;
  margin: 20px auto;
  max-width: 320px;
}
figure.affiliate-card img {
  border-radius: 8px;
  transition: transform 0.2s ease;
}
figure.affiliate-card img:hover {
  transform: scale(1.03);
}
figure.affiliate-card figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
}


/* ==== 新入荷スライダー全体 ==== */

.ny-slider-block {
  margin: 1em 0;
}

/* 上部ヘッダー（タイトル + カレンダー） */
.ny-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

.ny-slider-title {
  font-weight: bold;
}

/* カレンダー */
.ny-date-form {
  margin: 0;
}

.ny-date-form input[type="date"] {
  font-size: 12px;
  padding: 2px 4px;
}

/* 横スクロールのラッパー */
.ny-slider-wrapper {
  overflow-x: auto;
  padding: 8px 0;
}

/* 中身の横並びレーン */
.ny-slider {
  display: flex;
  gap: 12px;
  scroll-snap-type: x mandatory;
}

/* 各カード */
.ny-item {
  position: relative;
  flex: 0 0 180px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

/* 差額上位のカード用 */
.ny-item.ny-highlight {
  background: #fff7c0;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
}

/* 画像部分 */
.ny-img-link img {
  width: 100%;
  height: auto;
  display: block;
}

.ny-noimg {
  width: 100%;
  padding-top: 75%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #eee;
}

/* ==== 以下テキスト系 ==== */

.ny-info {
  padding: 6px 8px 8px;
  font-size: 12px;
}

.ny-title {
  margin: 0 0 4px;
  font-weight: bold;
  line-height: 1.3;
}

.ny-title a {
  color: inherit;
  text-decoration: none;
}

.ny-title a:hover {
  text-decoration: underline;
}

.ny-prices {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.ny-price { color: #e60033; font-weight: bold; }

.ny-sagaku-minus { color: #e60033; }
.ny-sagaku-plus  { color: #0066cc; }

.ny-label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  border-bottom-right-radius: 6px;
  z-index: 5;
}

.ny-label-down { background: #e60033; }
.ny-label-up   { background: #0066cc; }

.ny-label-main {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #f39c12;
  border-bottom-left-radius: 6px;
  z-index: 6;
}


/* ================================
   Daily Dashboard
================================ */

.daily-dashboard {
  max-width: 960px;
  margin: 2.5rem auto;
  padding: 1.8rem 2.2rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-size: 14px;
  box-sizing: border-box;
}

.daily-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.daily-date { font-size: 0.85rem; color: #888; }

.daily-date-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.daily-date-form input[type="date"] {
  padding: 0.15rem 0.4rem;
  font-size: 0.85rem;
}

.daily-date-form button {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.8rem;
  background: linear-gradient(135deg, #4c6fff, #8f8dff);
  color: #fff;
  cursor: pointer;
}

.daily-section { margin-top: 1.8rem; }

.daily-section-title {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: #333;
}

.daily-section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.4em;
  margin-right: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b6b, #ff9f43);
}

/* — 注目ワード — */
.daily-keyword-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: #fafafa;
  overflow: hidden;
}

.daily-keyword-item {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px dashed #e7e7e7;
}

.daily-keyword-item:last-child { border-bottom: none; }

.daily-keyword-rank { width: 3rem; font-weight: 700; color: #ff6b6b; }
.daily-keyword-word { flex: 1; font-weight: 500; color: #333; }
.daily-keyword-ratio { width: 4rem; text-align: right; font-size: 0.85rem; }

/* — 注目商品 — */
.daily-products-wrapper { margin-top: 0.4rem; overflow-x: auto; }
.daily-products-table { width: 100%; border-collapse: collapse; min-width: 520px; }

.daily-products-table th, .daily-products-table td {
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}

.daily-products-table thead th {
  background: #fafafa;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

.daily-col-site { width: 9rem; white-space: nowrap; }
.daily-col-price { width: 7rem; text-align: right; }

.daily-product-title a { color: #0066cc; text-decoration: none; }
.daily-product-title a:hover { text-decoration: underline; }

/* — レポート — */
.daily-report {
  margin-top: 0.4rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: #fafafa;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap;
}

/************************************
** スマホ対応
************************************/
@media (max-width: 640px) {
  .daily-dashboard {
    margin: 1.5rem auto;
    padding: 1.3rem 1.2rem;
  }
  .daily-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .daily-date-form { align-self: flex-end; }
  .daily-products-table { min-width: 0; font-size: 0.9rem; }
}


/* =========================================
   ★ 新着フィギュア（sintyaku）画像を正方形にする
========================================= */

.sintyaku-square .ny-item {
  flex: 0 0 150px;
}

/* 正方形の枠を作成 */
.sintyaku-square .ny-img-link {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 正方形 */
  overflow: hidden;
}

/* 画像を完全に正方形でトリミング表示 */
.sintyaku-square .ny-img-link img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
}
