/* =====================================================================
   YouTube紹介 動画一覧ページ  専用CSS
   ---------------------------------------------------------------------
   ・すべてのクラス名は「hsyt-」で始まります(既存サイトとの衝突防止)
   ・すべてのルールは .hsyt(ページ専用の親要素)の中だけに効きます
   ・html / body / * / a / img など、サイト全体に効くセレクタは一切ありません
   ・既存サイトのCSSが万一まぎれ込んでも崩れないよう、必要最小限の
     「打ち消し」だけ .hsyt の中で行っています
   ===================================================================== */

.hsyt {
  --hsyt-ink: #191919;
  --hsyt-frame-line: #dcc6b4;
  --hsyt-frame-bg: #fffdf8;
  --hsyt-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  padding: 48px 20px 88px;
  color: #000;
  font-family: var(--hsyt-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.hsyt *,
.hsyt *::before,
.hsyt *::after { box-sizing: border-box; }

/* 既存サイトのタグ指定が漏れてきても影響を受けないよう、この中だけ初期化 */
.hsyt :where(h1, h2, p, ul, li, figure, small, span, a, img) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-shadow: none;
  float: none;
  letter-spacing: inherit;
}
.hsyt :where(ul) { list-style: none; }
.hsyt :where(img) { display: block; max-width: 100%; height: auto; }
.hsyt :where(h1, h2)::before,
.hsyt :where(h1, h2)::after { content: none; }
.hsyt :where(a) { color: inherit; text-decoration: none; }

.hsyt-inner { width: 100%; max-width: 1200px; margin: 0 auto; }

/* ---------------------------------------------------------------
   ヒーロー(スマホ:センター揃えの縦並び)
   --------------------------------------------------------------- */
.hsyt-hero { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hsyt-hero__title { display: flex; flex-direction: column; align-items: center; width: 100%; font-size: inherit; font-weight: 700; line-height: 1; }

/* 吹き出し */
.hsyt-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80%;
  max-width: 352px;
  height: 1.942em;
  padding: 0 0.5em 0.1em;
  border-radius: 999px;
  background: var(--hsyt-ink);
  color: #fff;
  font-size: clamp(11px, 4.1vw, 21px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}
.hsyt-pill__small { font-size: 0.539em; font-weight: 700; margin-left: 0.1em; padding-top: 0.6em; }
.hsyt-pill__tail { position: absolute; left: 50%; top: calc(100% - 1px); width: 1.13em; height: 0.98em; margin-left: -0.565em; transform: rotate(180deg); }
.hsyt-pill__tail img { width: 100%; height: 100%; }

.hsyt-hero__logo { display: block; width: min(75%, 320px); height: auto; margin: 42px 0 0; }
.hsyt-hero__logo img { width: 100%; height: auto; }

/* 「チャンネルで ご紹介 いただきました!!」(em指定=全体を拡大縮小できる) */
.hsyt-lead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; margin-top: 27px; font-size: clamp(16px, 5.6vw, 38px); font-weight: 700; line-height: 1; white-space: nowrap; }
.hsyt-lead__row1 { display: contents; }
.hsyt-lead__a { flex: 0 0 100%; font-size: 1em; line-height: 1.25; text-align: center; }
.hsyt-lead__b { margin: 0.05em 0 0; font-size: 2.0605em; line-height: 1.2; }
.hsyt-lead__c { display: block; margin: 0 0 0 0.14em; font-size: 1.1339em; line-height: 1.2; text-align: center; }

/* 丸いバッジ(中身はすべて % 指定=大きさが変わってもズレない) */
.hsyt-badge { position: relative; flex: none; width: min(70%, 272px); aspect-ratio: 1 / 1; margin-top: 32px; }
.hsyt-badge img { position: absolute; display: block; max-width: none; height: auto; }
.hsyt-badge__ring { left: 0; top: 0; width: 100%; height: 100%; }
.hsyt-badge__t1 { left: 32.217%;  top: 25.468%; width: 35.104%; }
.hsyt-badge__t2 { left: 13.551%;  top: 36.505%; width: 30.373%; }
.hsyt-badge__t3 { left: 46.554%;  top: 39.765%; width:  6.934%; }
.hsyt-badge__t4 { left: 55.220%;  top: 36.492%; width: 31.225%; }
.hsyt-badge__line { left: 12.850%; top: 60.280%; width: 74.300%; }

/* ---------------------------------------------------------------
   「動画一覧」見出し
   --------------------------------------------------------------- */
.hsyt-list { margin-top: 76px; }
.hsyt-list__head { display: flex; align-items: center; }
.hsyt-list__label {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 36px;
  padding: 0 44px 0.27em 40px;
  border-radius: 50px;
  background: var(--hsyt-ink);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.hsyt-list__label img { width: 12px; height: 14px; margin-right: 10px; }
.hsyt-list__line { flex: 1; height: 1px; margin-left: 20px; background: #000; }

/* ---------------------------------------------------------------
   動画カード
   --------------------------------------------------------------- */
.hsyt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 92px 0;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}
.hsyt-card { display: block; width: 100%; max-width: 480px; margin: 0 auto; }

.hsyt-card__thumb {
  display: block;
  aspect-ratio: 360 / 206;
  padding: 3.4px;
  border: 1.46px solid var(--hsyt-frame-line);
  border-radius: 15px;
  background: var(--hsyt-frame-bg);
  overflow: hidden;
}
.hsyt-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  transition: transform .5s ease;
}

.hsyt-card__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  margin-top: 14px;
  padding: 0 34px 0.1em;
  border-radius: 12px;
  background: var(--hsyt-ink);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .3s ease;
}
.hsyt-card__chev {
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 14px;
  margin-top: -7px;
  transition: transform .3s ease;
}

.hsyt-card__thumb:focus-visible,
.hsyt-card__btn:focus-visible { outline: 3px solid #e6a100; outline-offset: 3px; }

@media (hover: hover) {
  .hsyt-card:hover .hsyt-card__thumb img { transform: scale(1.04); }
  .hsyt-card__btn:hover { background: #4a4a4a; }
  .hsyt-card__btn:hover .hsyt-card__chev { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hsyt-card__thumb img, .hsyt-card__btn, .hsyt-card__chev { transition: none; }
  .hsyt-card:hover .hsyt-card__thumb img { transform: none; }
}

/* ---------------------------------------------------------------
   タブレット縦(600px〜)
   --------------------------------------------------------------- */
@media (min-width: 600px) {
  .hsyt { padding: 64px 32px 100px; }
  .hsyt-list { margin-top: 64px; }
  .hsyt-list__label { height: 40px; font-size: 20px; padding: 0 35px 0.27em 33px; }
  .hsyt-list__line { margin-left: 30px; }
  .hsyt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; margin-top: 44px; }
  .hsyt-card { max-width: none; }
  .hsyt-card__btn { height: 62px; font-size: 22px; margin-top: 15px; }
}

/* ---------------------------------------------------------------
   600px〜:ヒーローは Figma(1200×540の枠)と同じ配置のまま、幅に合わせて縮尺だけ変える
   --u = 1px分の長さ(枠の幅 ÷ 1200)。1200px以上では 1u = 1px = Figmaどおり
   --------------------------------------------------------------- */
@media (min-width: 600px) {
  .hsyt-hero { display: block; position: relative; container-type: inline-size; width: 80%; margin: 0 auto; aspect-ratio: 1200 / 540; text-align: left; }
  .hsyt-hero > * { --u: calc(100cqw / 1200); }
  .hsyt-hero__title { display: block; position: static; width: auto; }

  .hsyt-pill {
    position: absolute; left: 0; top: 0;
    width: calc(776 * var(--u)); height: calc(70 * var(--u));
    max-width: none; padding: 0 0 0.1em;
    font-size: calc(36.044 * var(--u));
  }
  .hsyt-pill__tail { left: calc(624 * var(--u)); margin-left: 0; }

  .hsyt-hero__logo { position: absolute; left: 0; top: calc(124 * var(--u)); width: calc(586 * var(--u)); margin: 0; }

  .hsyt-lead { position: absolute; left: 0; top: calc(288 * var(--u)); margin: 0; font-size: calc(56.092 * var(--u)); }
  .hsyt-lead { display: block; }
  .hsyt-lead__row1 { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; }
  .hsyt-lead__a { flex: none; position: relative; top: -0.24em; height: 1.25em; }
  .hsyt-lead__b { margin: 0 0 0 0.1em; }
  .hsyt-lead__c { display: block; margin: 0.566em 0 0 5.566em; text-align: left; }

  .hsyt-badge { position: absolute; left: calc(746 * var(--u)); top: 0; width: calc(447.5 * var(--u)); margin: 0; }
}

/* ---------------------------------------------------------------
   1024px〜:カードを3列に
   --------------------------------------------------------------- */
@media (min-width: 1024px) {
  .hsyt { padding: 72px 40px 120px; }
  .hsyt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; }
  .hsyt-card__btn { height: 66px; font-size: 22px; }
}

/* ---------------------------------------------------------------
   1248px〜:Figmaデザインどおり(コンテンツ幅1200px)
   ヒーローは 1200 × 520 の枠に絶対配置
   --------------------------------------------------------------- */
@media (min-width: 1248px) {
  .hsyt { padding: 72px 24px 120px; }

  .hsyt-list { margin-top: 38px; }
  .hsyt-list__label { width: 182px; height: 40px; padding: 0 0 0.27em 38px; font-size: 20px; }
  .hsyt-list__label img { margin-right: 12px; }
  .hsyt-list__line { margin-left: 38px; }

  .hsyt-grid { gap: 91px 60px; margin-top: 55px; }
  .hsyt-card__btn { height: 66px; margin-top: 15px; font-size: 24.29px; letter-spacing: 0.97px; }
  .hsyt-card__chev { right: 18px; width: 10.4px; height: 18.5px; margin-top: -9.25px; }
}
