@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* =========================================================
   Root Colors (最小限)
========================================================= */
:root {
  --color-primary: #e09264; /* 紫（メイン） */
  --color-accent:  #e09264; /* 黄色（アクセント／CTA既定） */
  --color-danger:  #f11e1e; /* 赤（警告・ボタン） */
}

/* =========================================================
   Common
========================================================= */

/* 記事本文の基本余白 */
.l-mainContent__inner > .post_content {
  margin: 1.5em 0;
}

.post_content h2 {
  margin: 2em 0;
}

/* =========================================================
   Components
========================================================= */

/* CTAボタン（共通） */
.cta-button {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--color-accent);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  border-radius: 48px;
  padding: 16px 24px;
  width: 100%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* 光の筋 */
.cta-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: sparkle 4s infinite;
}

/* キラッの動き（短時間だけ走る） */
@keyframes sparkle {
  0%   { left: -30%; opacity: 0; }
  10%  { left: 120%; opacity: 1; }
  11%  { opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

.cta-button--secondary {
  background-color: var(--color-primary);
}

/* =========================================================
   Video Area
========================================================= */

.video-area {
  position: relative;
  text-align: center;
}

/* 動画プレイヤー */
.video-area video {
  display: block;
  background-color: #333;
  width: 100%;
  height: 400px;
}

.video-area__label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 6px 10px 5px;
  background: var(--color-danger);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: 6px;
  pointer-events: none;
}

/* CTAブロック余白 */
.video-area__cta {
  margin-top: 16px;
}

/* 再生時間ラベル */
.video-area__cta-volume {
  color: #999;
  font-size: 14px;
  margin: 10px 0;
  display: block;
}
.video-area__cta-volume::before { content: "<"; margin-right: 4px; }
.video-area__cta-volume::after  { content: ">"; margin-left: 4px; }

/* =========================================================
   Product Area
========================================================= */

/* コンテナ */
.product-area {
  margin-bottom: 24px;
}

/* 作品情報テーブル */
.product-area__table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.product-area__table th,
.product-area__table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.product-area__table th {
  /* メインに寄せた淡色 */
  background: #f0f4ff; /* tableの青→メイン寄せ */
  color: #111;
  font-weight: 600;
  width: 140px;
  white-space: nowrap;
}

.product-area__table tr:nth-child(even) td {
  background: #f9fafc;
}

.product-area__table td { color: #222; }

.product-area__table td a {
  /* color: var(--color-primary); */
  font-weight: 600;
  text-decoration: underline;
}

.product-area__table td a:hover {
  color: #333bd6; /* 濃い紫 */
}

.product-area__table tr:last-child th,
.product-area__table tr:last-child td {
  border-bottom: none;
}

/* ジャンルタグ */
.product-area__table-tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  background: #f0f4ff;
  border: 1px solid #ccd4ff;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.product-area__table-tag:hover {
  background: var(--color-primary);
  color: #f0f4ff !important;
}

/* サンプル画像 */
.product-area__img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.product-area__img img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.product-area__img-item { position: relative; display: inline-block; }

.product-area__img-label {
  position: absolute;
  top: 6px;
  left: 6px;
  background-color: var(--color-accent);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.product-area__img-label:hover {
  background: #ffeb66; /* 明るい黄 */
  color: #fff;
}

/* CTA */
.product-area__cta-button {
  text-align: center;
  margin-top: 16px;
}

.product-area__button {
  background-color: var(--color-danger);
  border-radius: 48px;
  width: 80%;
}

/* =========================================================
   Related Area
========================================================= */

/* 関連リスト全体 */
.related-area__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* リンク全体 */
.related-area__item a { text-decoration: none; }

/* 各カード */
.related-area__item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.related-area__item:hover { transform: translateY(-2px); }

/* サムネイル */
.related-area__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形 */
  overflow: hidden;
}
.related-area__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ラベル */
.related-area__label {
  font-size: 14px;
  text-align: center;
  padding: 6px;
  color: #777;
}

/* =========================================================
   Responsive (SP)
========================================================= */

@media screen and (max-width: 768px) {

  /* Video Area */
  .video-area { margin-bottom: 36px; }
  .video-area video { height: 220px; }

  .video-area__button {
    width: 100%;
    font-size: 16px;
    padding: 16px 0;
  }

  /* Product Area */
  .product-area__table,
  .product-area__table th,
  .product-area__table td {
    font-size: 14px;
    line-height: 1.5;
  }
  .product-area__table-tag {
    white-space: normal;
    font-size: 12px;
    padding: 3px 7px;
  }
  .product-area__card {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .product-area__card-img img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .product-area__cta-button {
    width: 100%;
    align-items: center;
  }

  /* Related Area */
  .related-area__list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  /* Image Area */
  .image-area__gallery {
    gap: 10px;
  }
}
