@charset "utf-8";

/* =========================================================
   TOPページ固有スタイル
   - HERO / PICK UP / ブランド一覧 / 大判ビジュアル
   - スガキヤのこだわり / スーちゃんのあそび場 / アプリ訴求
   - お知らせ / ECバナー / 4カード / SNS列
   ※ 共通変数(--red 等)は common.css に依存
   ========================================================= */

/* ===========================================================
   HERO
   =========================================================== */
/* 背景は白基調。グレーになるのは スガキヤブランド と SNSバナー(sec-sns) のみ */
/* TOPはヘッダーを動画に重ねる（YouTubeのチャンネル名を隠す）→ ヒーローを最上部から表示 */
main { margin-top: 0; background: var(--white); }
.sec-hero {
  position: relative;
  aspect-ratio: 16 / 9;   /* 横幅いっぱい → 高さは動画比率で自動（上下左右で切れない） */
  overflow: hidden;
  background: var(--black);
}
/* PC/SP切替：既定はPC動画を表示・SP動画は隠す */
.sec-hero .hero-yt--sp { display: none; }
/* YouTube動画をファーストビューいっぱいにカバー表示。操作不可（pointer-events無効） */
.sec-hero .hero-yt {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--black);
}
/* 透明オーバーレイで iframe へのホバー/クリックを遮断 → 停止等のYouTube UIを出さない */
.sec-hero .hero-yt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.sec-hero .hero-yt iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* マウス操作・一時停止を無効化 */
}

.sec-hero .heroComlink {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    z-index: 100;
}
.sec-hero .heroComlink a {
    display: flex;
    align-items: center;
    color: var(--white);
    line-height: 1.5;
    background-color: #2d2b2b;
    border: 1px solid var(--gray-dark);
    padding: 18px 32px 18px 40px;
    gap: 18px;
    font-weight: 700;
    transition: transform .2s;
}
.sec-hero .heroComlink a:hover {
    transform: translateY(-4px);   
}
.sec-hero .heroComlink a button {
     width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 0;
    padding: 0;
}
.sec-hero .heroComlink a button::before {
    content: "";
    display: block;
    width: 12px;
    height: 14px;
    background: var(--white);
    clip-path: polygon(0 0, 0 100%, 100% 50%);
}


/* ===== SP：縦型Shorts動画に切替（≤768px）===== */
@media (max-width: 768px) {
  .sec-hero { aspect-ratio: 9 / 16; }          /* 縦型に */
  .sec-hero .hero-yt--pc { display: none; }
  .sec-hero .hero-yt--sp { display: block; }
  /* 16:9プレイヤー内の中央縦バンド(9:16)を画面幅に合わせて拡大＝黒帯なしフルブリード */
  .sec-hero .hero-yt--sp iframe {
    inset: auto;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% * 256 / 81);              /* ≈3.16倍 */
    height: 100%;
  }
}

/* ===========================================================
   セクション見出し（TOP固有）
   - タイトルは Noto Sans JP
   - 飾り英字はタイトルと同色
   =========================================================== */
.heading h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 38px;
}
.heading .en {
  font-family: var(--font-sans);
  color: var(--red);
  font-weight: 700;
  font-size: 18px;
}
/* タイトル上のリボン飾り（TOP固有） */
.heading::before {
  content: "";
  display: block;
  width: 40px;
  height: 23px;
  margin: 0 auto 14px;
  background: url(../imgs/common/icon_ribbon.svg) no-repeat center / contain;
}

/* ===========================================================
   PICK UP
   =========================================================== */
.sec-pickup {
  padding: 150px 0;
  background: var(--white);
  overflow-x: clip;
}
.pickup-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pickup-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .2s;
}
.pickup-card:hover { transform: translateY(-4px); }
.pickup-card img {
  width: 100%;
  height: auto;
  display: block;
}
.pickup-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}
.pickup-arrows button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0;           /* ◀▶ のテキスト(絵文字)を隠す */
  padding: 0;
}
/* 円の中の三角はCSSで描画 */
.pickup-arrows button::before {
  content: "";
  display: block;
  width: 12px;
  height: 14px;
  background: var(--red);
}
.pickup-arrows .pickup-prev::before { clip-path: polygon(100% 0, 100% 100%, 0 50%); } /* 左向き ◀ */
.pickup-arrows .pickup-next::before { clip-path: polygon(0 0, 0 100%, 100% 50%); }     /* 右向き ▶ */

/* ===== slick有効時：PICK UPを画面幅いっぱいに（中央＋左右チラ見せ） ===== */
.pickup-list.slick-initialized {
  display: block;          /* grid解除 */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.pickup-list .slick-slide { padding: 0 12px; }
.pickup-list .slick-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
/* ドットを矢印の間（インライン）に表示 */
.pickup-dots .slick-dots {
  position: static;
  width: auto;
  display: flex;
  align-items: center;
  margin: 0;
}
.pickup-dots .slick-dots li { margin: 0 15px; }
.pickup-dots .slick-dots li button:before { font-size: 14px; background: rgba(0, 0, 0, 0); }
.pickup-dots .slick-dots li.slick-active button:before { color: var(--red); opacity: .95; }

/* タブレット：ヒーロー→リボン間隔を中間値に */
@media (max-width: 1024px) {
  .sec-pickup { padding-top: 100px; }
}

@media (max-width: 768px) {
  .pickup-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pickup-list .slick-slide { padding: 0 6px; }
  /* SP：間隔・リボンを縮小 */
  .sec-pickup { padding-top: 60px; }
  .heading::before { width: 32px; height: 18px; margin-bottom: 10px; }
  /* SP：矢印・三角・ドットを小さめに */
  .pickup-arrows { gap: 12px; }
  .pickup-arrows button { width: 36px; height: 36px; }
  .pickup-arrows button::before { width: 10px; height: 12px; }
  .pickup-dots .slick-dots li { margin: 0 8px; }
}

/* ===========================================================
   ブランド一覧
   =========================================================== */
.sec-brand {
  padding: 64px 0;
  background: var(--cream);
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 840px;
  margin: 0 auto;
}
.brand-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s;
}
.brand-card:hover { transform: translateY(-4px); }
.brand-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
}
@media (max-width: 768px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ===========================================================
   スガキヤのこだわり (赤背景・大判ビジュアル統合)
   =========================================================== */
.sec-kodawari {
  background: linear-gradient(180deg, #D82B29 0%, #C12423 60%, #C82826 75%, #A81716 100%);
  color: #fff;
  padding: 0 0 150px;
  position: relative;
  overflow: hidden;
}
.sec-kodawari .container { position: relative; z-index: 3; } /* 本文・ボタンは装飾の上 */

/* 大判ビジュアル（ラーメン）：こだわり先頭・中央 */
.sec-kodawari .kodawari-visual {
  position: relative;
  width: 100%;
  text-align: center;
  margin-bottom: 80px;    /* ラーメン→見出しまでの余白（かなり広め） */
  z-index: 2;
}
.sec-kodawari .kv-ramen {
  display: block;
   /*width: min(870px, 70%);   PC時は最大870px */
   width: 70%;
  height: auto;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* 湯気（湯気イラストPNGを丼に重ね、下から上へ昇りながらフェード）
   画像は中央が透明で左右にもやがある素材を想定。中心にラーメンが収まる。
   同じ画像を3枚重ね、時間差・尺違い・左右反転で自然な揺らぎを出す。 */
.sec-kodawari .kv-steam {
  position: absolute;
  left: 50%;
  top: -35%;                  /* 丼の上〜中ほどに湯気がかかる位置 */
  /*width: min(1040px, 86%);    丼よりやや広く。透明な中心に丼が収まる */
  width: 78%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;                /* 丼と同列。DOM後ろなので丼の手前に出る */
  filter: blur(8px);
  opacity: 0.8;
}
.sec-kodawari .kv-steam img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;                /* 既定は非表示（ラーメン着地後に発動） */
  will-change: transform, opacity;
}
/* 2枚目以降は1枚目に重ねる（1枚目が高さの基準） */
.sec-kodawari .kv-steam img:nth-child(n+2) { position: absolute; left: 0; top: 0; }

/* ラーメン着地（スライド1s）後に発動。尺・遅延・反転を変えて揺らぎを出す */
.sec-kodawari .kv-ramen.is-inview ~ .kv-steam img:nth-child(1) { animation: kvSteamUp     7s ease-in-out 1s   infinite; }
.sec-kodawari .kv-ramen.is-inview ~ .kv-steam img:nth-child(2) { animation: kvSteamUpFlip 6s ease-in-out 3s   infinite; }
.sec-kodawari .kv-ramen.is-inview ~ .kv-steam img:nth-child(3) { animation: kvSteamUp     8s ease-in-out 5.5s infinite; }

@keyframes kvSteamUp {
  0%   { opacity: 0;   transform: translateY(8%)   scale(1);    }
  20%  { opacity: .5;  }
  55%  { opacity: .3;  }
  100% { opacity: 0;   transform: translateY(-22%) scale(1.12); }
}
@keyframes kvSteamUpFlip {   /* 左右反転版（鏡像で形のばらつきを出す） */
  0%   { opacity: 0;   transform: translateY(8%)   scale(1)    scaleX(-1); }
  20%  { opacity: .45; }
  55%  { opacity: .28; }
  100% { opacity: 0;   transform: translateY(-22%) scale(1.12) scaleX(-1); }
}

/* 装飾画像（ソフト＝左 / フォーク＝右上 / ぜんざい＝右下） */
.sec-kodawari .kodawari-deco {
  position: absolute;
  height: auto;
  z-index: 1;
}
.sec-kodawari .deco-soft {
    left: -7%;
    top: 60%;
    width: 500px;
}
.sec-kodawari .deco-fork {
    right: -10%;
    top: 39%;
    width: 600px;
}
.sec-kodawari .deco-zenzai {
    right: -4%;
    bottom: 7%;
    width: 420px;
}

/* ===== 登場アニメーション（各要素が可視範囲に入ったら個別に @keyframes 発火）=====
   スクロールで上から順に：ラーメン(上から) → フォーク(右→左) →
   ソフト(左→右) → ぜんざい(右→左)。各要素に .is-inview を個別付与する。 */

/* 発火前は「本来の位置のまま透明」で待機。
   ※ ここで transform を使って画面外へ退避すると、IntersectionObserver が
      移動後の位置（画面外）で判定して一生発火しなくなるため、退避はキーフレーム側で行う。
   ※ JSが .anim-ready を付けたときだけ隠す＝JSが無効/古い場合は普通に表示され壊れない */
.sec-kodawari.anim-ready .kv-ramen,
.sec-kodawari.anim-ready .deco-fork,
.sec-kodawari.anim-ready .deco-soft,
.sec-kodawari.anim-ready .deco-zenzai { opacity: 0; }
.sec-kodawari .kv-ramen { will-change: transform, opacity; }
.sec-kodawari .kodawari-deco { will-change: transform, opacity; }

/* .is-inview が付いた瞬間に各方向からスライドインして現在位置で停止 */
.sec-kodawari .kv-ramen.is-inview   { animation: kdwSlideDown 1s cubic-bezier(.22,1,.36,1) both; }
.sec-kodawari .deco-fork.is-inview  { animation: kdwSlideFromRight 1s cubic-bezier(.22,1,.36,1) both; }
.sec-kodawari .deco-soft.is-inview  { animation: kdwSlideFromLeft  1s cubic-bezier(.22,1,.36,1) both; }
.sec-kodawari .deco-zenzai.is-inview{ animation: kdwSlideFromRight 1s cubic-bezier(.22,1,.36,1) both; }

@keyframes kdwSlideDown {
  0%   { opacity: 0; transform: translateY(-130%); } /* 上から下りてくる */
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes kdwSlideFromRight {
  0%   { opacity: 0; transform: translateX(120%); }  /* 右から左へ入る */
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes kdwSlideFromLeft {
  0%   { opacity: 0; transform: translateX(-120%); } /* 左から右へ入る */
  100% { opacity: 1; transform: translateX(0); }
}

.sec-kodawari h2 {
  font-family: var(--font-sans);
  text-align: center;
  font-size: 44px;         /* ラーメン下の大きい文字（PC） */
  font-weight: 500;
  line-height: 2;
  letter-spacing: .08em;
  margin-bottom: 162px;
}
.sec-kodawari .lead {
  text-align: center;
  font-size: 18px;         /* その下のメッセージ（PC） */
  line-height: 4;
  margin-bottom: 186px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.sec-kodawari .btn-white {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 1400px) {  
.sec-kodawari .deco-soft {
    left: -10%;
}
.sec-kodawari .deco-fork {
    right: -15%;
}
}

/* タブレット：適宜縮小 */
@media (max-width: 1024px) {
  .sec-kodawari h2 { font-size: 32px; margin-bottom: 70px; }
  .sec-kodawari .lead { font-size: 16px; }
  .sec-kodawari .kodawari-visual { margin-bottom: 45px; }
  /*.sec-kodawari .kv-ramen { width: min(420px, 70%); }*/

  /*
  .sec-kodawari .deco-soft   { width: 130px; }
  .sec-kodawari .deco-fork   { width: 160px; }
  .sec-kodawari .deco-zenzai { width: 160px; }*/

.sec-kodawari .deco-soft {
    left: -12%;
    top: 55%;
    width: 450px;
}
.sec-kodawari .deco-fork {
    right: -15%;
    top: 30%;
    width: 550px;
}
.sec-kodawari .deco-zenzai {
    width: 380px;
}
}

@media (max-width: 980px) {
  .sec-kodawari .deco-soft {
    left: -15%;
}
.sec-kodawari .deco-fork {
    right: -20%;
}

}

@media (max-width: 830px) {
  .sec-kodawari .deco-soft {
    width: 410px;
}
.sec-kodawari .deco-fork {
    width: 495px;
}
.sec-kodawari .deco-zenzai {
    width: 335px;
}
}
/* SP：適宜縮小（装飾もSPで表示・サイズ調整／ラーメン上部の余白なし） */
@media (max-width: 768px) {
  .sec-kodawari { padding-top: 0; padding-bottom: 90px; }
  .sec-kodawari h2 { font-size: 24px; }
  .sec-kodawari .lead { font-size: 15px; }
  .sec-kodawari .kodawari-visual { margin-top: 0; margin-bottom: 56px; }
  .sec-kodawari .kv-ramen { width: 99%; }
  .sec-kodawari .kv-steam {
    width: 105%;
}
  
  /* 湯気はSPでも丼の左右に配置（全幅のまま） */
  /* 装飾はSPでも表示し、サイズと位置を調整 */
.sec-kodawari .deco-soft {
    width: 300px;
    left: -11%;
    top: 52%;
}
.sec-kodawari .deco-fork {
    width: 415px;
    right: -18%;
    top: 27%;
}
.sec-kodawari .deco-zenzai {
    width: 290px;
    right: -5%;
    bottom: 11%;
}
}

@media (max-width: 650px) {
.sec-kodawari .deco-soft {
    width: 260px;
}
.sec-kodawari .deco-fork {
    width: 350px;
}
.sec-kodawari .deco-zenzai {
    width: 260px;
}
}
@media (max-width: 530px) {
.sec-kodawari .deco-soft {
    left: -16%;
    top: 52%;
}
.sec-kodawari .deco-fork {
    right: -32%;
    top: 24%;
}
}
@media (max-width: 500px) {
  .sec-kodawari .kodawari-visual {
    margin-bottom: 20px;
}
  .sec-kodawari h2 {
    font-size: 18px;
    margin-bottom: 90px;
}
.sec-kodawari .deco-soft {
    width: 230px;
    left: -23%;
    top: 70%;
}
.sec-kodawari .deco-fork {
    width: 275px;
    right: -25%;
    top: 21%;
}
.sec-kodawari .deco-zenzai {
    width: 210px;
    right: -13%;
    bottom: 11%;
}
}
/* 演出（登場スライド・湯気）は要望によりOSの「視差軽減」設定でも再生する。
   ※ アクセシビリティで湯気を止めたくなった場合は、ここに
      @media (prefers-reduced-motion: reduce){ .sec-kodawari .kv-steam img{animation:none!important;opacity:0} }
      を復活させる。 */

/* ===========================================================
   スーちゃんのあそび場 SPECIAL
   =========================================================== */
.sec-suchan {
  padding: 80px 0 230px;
}
@media (max-width: 768px) {
  .sec-suchan { padding: 48px 0 80px; }   /* SPは余白を縮小 */
}
.suchan-heading {
  text-align: center;
  margin-bottom: 28px;
}
.suchan-heading .mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  /*background: var(--red);*/
  color: #fff;
  border-radius: 50%;
  line-height: 36px;
  font-weight: 700;
}
.suchan-heading h2 {
  font-family: var(--font-sans);
  color: var(--red);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .15em;
}
.suchan-heading .en {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--red);
  text-transform: uppercase;
}
/* あそび場は基本バナー画像。「あそびに行く！」ボタンのみ重ねる */
.suchan-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s;
}
.suchan-banner:hover {
    transform: translateY(-4px);   
}
.suchan-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.suchan-banner .btn {
  position: absolute;
  left: 40px;
  bottom: 36px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--red);
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.suchan-banner .btn::after { content: "▶"; font-size: 9px; }
@media (max-width: 768px) {
  .suchan-banner .ph { aspect-ratio: 4 / 3; }
  .suchan-banner .btn { left: 50%; bottom: 24px; transform: translateX(-50%); }
}

/* ===========================================================
   お知らせ
   =========================================================== */
.sec-news {
  padding: 80px 0;
  background: var(--white);
}
.news-list {
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: max-content max-content 1fr auto;
  grid-template-areas:
    "date tag space arrow"
    "title title title arrow";
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.news-item time {
  grid-area: date;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
}
.news-item .tag {
  grid-area: tag;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.news-item .title {
  grid-area: title;
  line-height: 1.6;
}
.news-item .more {
  grid-area: arrow;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  justify-self: end;
}
.news-item .more::after {
    content: "▶";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color:  var(--red);
    font-size: 12px;
}

.news-more {
  text-align: right;
  margin-top: 28px;
}
.news-more a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
  font-size: 16px;
  font-weight: 700;
}
.news-more a::after {
  content: "▶";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 9px;
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: max-content 1fr auto;
    grid-template-areas:
      "date tag arrow"
      "title title arrow";
    column-gap: 10px;
  }
}

/* ===========================================================
   EC バナー
   =========================================================== */
.sec-ec {
  padding: 32px 0 24px;
  background: var(--white);
}
/* オンラインショップ誘導はバナー画像（ボタンではない） */
.ec-banner {
  /*display: block;*/
  border-radius: 16px;
  overflow: hidden;
}
.ec-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ===========================================================
   4 カード（バナー画像）店舗検索 / スガキヤの歴史 / 正社員採用 / アルバイト・パート採用
   =========================================================== */
.sec-cards {
  padding: 0 0 80px;
  background: var(--white);
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cards-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s;
}
.cards-grid a:hover { transform: translateY(-4px); }
.cards-grid a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: 1fr; }
  .ec-banner .ph { aspect-ratio: 3 / 1; }
}

