/* gakufu.jp トップ — スライダー と 正方形カード（2026-11-30 v1）。gk-site.css の あとに 読む */

/* ---- スライダー ---- */
.gk-slider { position: relative; background: #fff; }
.gk-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.gk-slides::-webkit-scrollbar { display: none; }
.gk .gk-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1;
            display: grid; place-items: center; overflow: hidden; color: #fff; text-decoration: none; }
.gk .gk-slide { background: #fff; }   /* 絵は どれも まわりが 白 */
.gk-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.gk-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 34px;
                background: linear-gradient(0deg, rgba(16,0,32,.88) 0%, rgba(16,0,32,.6) 55%, rgba(16,0,32,0)); display: flex; text-shadow: 0 1px 3px rgba(0,0,0,.4); flex-direction: column; gap: 4px; }
.gk-slide-tag { align-self: flex-start; background: var(--gk-pink); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; }
.gk-slide-cap b { font-size: clamp(18px, 2.6vw, 30px); font-weight: 700; line-height: 1.35; }
.gk-slide-cap small { font-size: clamp(12px, 1.3vw, 15px); opacity: .92; }
.gk-sl-prev, .gk-sl-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 56px; border: 0;
                           background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; z-index: 2; }
.gk-sl-prev { left: 0; } .gk-sl-next { right: 0; }
.gk-sl-dots { position: absolute; right: 18px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.gk-sl-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.gk-sl-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 767px) {
  .gk-slide-cap { padding: 36px 16px 30px; }
  .gk-sl-prev, .gk-sl-next { display: none; }
  .gk-sl-dots { left: 0; right: 0; justify-content: center; bottom: 10px; }
}

/* ---- はじめの 文 ---- */
.gk-top-intro { max-width: 860px; margin: 0 auto; padding: 44px 0 10px; text-align: center; }
.gk-top-eyebrow { font-size: 13px; color: var(--gk-pink); margin: 0 0 6px; letter-spacing: .04em; }
.gk-top-intro h1 { font-size: clamp(26px, 4vw, 40px); color: var(--gk-fg); }
.gk-top-intro p { margin: 14px 0 0; }
.gk-top-fact { font-size: 13px; color: var(--gk-sub); border-top: 1px solid var(--gk-line); padding-top: 14px; margin-top: 22px !important; text-align: left; }

/* ---- しぼりこみ ---- */
.gk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gk-chips button { font: inherit; font-size: 13px; padding: 4px 16px; border-radius: 99px; border: 1px solid var(--gk-line);
                   background: #fff; color: var(--gk-text); cursor: pointer; }
.gk-chips button[aria-pressed="true"] { background: var(--gk-fg); border-color: var(--gk-fg); color: #fff; }

/* ---- 正方形の カード ---- */
.gk-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; grid-auto-flow: dense; }
@media (max-width: 767px) { .gk-tiles { gap: 2px; } }
.gk-tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #f3f1ee; }
.gk-tile.is-big { grid-column: span 2; grid-row: span 2; }
.gk-tile[hidden] { display: none; }
.gk .gk-tile > a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; }
.gk-tile-img { position: absolute; inset: 0; }
.gk-tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gk-tile.fit-contain .gk-tile-img::before { content: ""; position: absolute; inset: -20px; background: var(--bg) center / cover no-repeat;
                                             filter: blur(18px) brightness(.95); opacity: .7; transform: scale(1.1); }
.gk-tile.fit-contain .gk-tile-img img { position: relative; object-fit: contain; padding: 8%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.gk-tile > a:hover img, .gk-tile > a:focus-visible img { transform: scale(1.04); }
.gk-tile-kind { position: absolute; left: 8px; top: 8px; font-size: 11px; line-height: 1.5; padding: 1px 8px; border-radius: 3px;
                background: rgba(16,0,32,.62); color: #fff; }
.gk-tile.is-video .gk-tile-kind { background: var(--gk-pink); }
.gk-tile-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 9px; display: flex; flex-direction: column;
               background: linear-gradient(0deg, rgba(16,0,32,.72), rgba(16,0,32,0)); line-height: 1.35; }
.gk-tile-cap b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-tile-cap small { font-size: 11px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-tile.is-big .gk-tile-cap { padding: 60px 16px 16px; }
.gk-tile.is-big .gk-tile-cap b { font-size: clamp(16px, 2vw, 24px); white-space: normal; }
.gk-tile.is-big .gk-tile-cap small { font-size: 13px; }
.gk-tile.is-video .gk-tile-img::after { content: "▶"; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%);
                                        width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff;
                                        display: grid; place-items: center; font-size: 17px; padding-left: 3px; box-sizing: border-box; }
.gk-tile.is-tool { background: var(--tc, var(--gk-navy)); }
.gk-tile-tool { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12%; }
.gk-tile-tool b { font-size: clamp(15px, 1.7vw, 20px); line-height: 1.35; }
.gk-tile-tool small { font-size: 12px; opacity: .92; line-height: 1.5; }
.gk-tile-tool i { font-style: normal; font-size: 12px; margin-top: 6px; text-decoration: underline; }
@media (max-width: 767px) {
  .gk-tile-cap { padding: 18px 6px 5px; }
  .gk-tile-cap b { font-size: 11px; }
  .gk-tile-cap small { display: none; }
  .gk-tile.is-big .gk-tile-cap small { display: block; font-size: 11px; }
  .gk-tile-kind { left: 4px; top: 4px; font-size: 10px; padding: 0 5px; }
  .gk-tile.is-video .gk-tile-img::after { width: 34px; height: 34px; font-size: 13px; }
  .gk-tile-tool { padding: 10%; gap: 3px; }
  .gk-tile-tool b { font-size: 13px; }
  .gk-tile-tool small { font-size: 10px; }
  .gk-tile-tool i { font-size: 10px; margin-top: 2px; }
}

/* ---- 動画の 窓 ---- */
.gk-vmodal { width: min(960px, 94vw); padding: 0; border: 0; background: #000; overflow: visible; }
.gk-vmodal::backdrop { background: rgba(16,0,32,.82); }
.gk-vbox { position: relative; aspect-ratio: 16 / 9; }
.gk-vbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gk-vclose { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 32px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .gk-slides { scroll-behavior: auto; } .gk-tile-img img { transition: none; } }

/* ---- 画面の 横 いっぱいの 正方形の 段（v2） ---- */
.gk-sq { width: 100%; }
.gk-sq-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 3px; }
.gk-sq-top .gk-slider { grid-column: span 2; grid-row: span 2; }
.gk-sq-text, .gk .gk-sq-reco { aspect-ratio: 1 / 1; container-type: inline-size; overflow: hidden; }
.gk-sq-text { display: grid; place-items: center; background: #fff; border-bottom: 1px solid var(--gk-line); }
.gk-sq-text > div { padding: 0 9cqw; text-align: center; }
.gk-sq-text .gk-top-eyebrow { font-size: max(11px, 2.9cqw); line-height: 1.6; margin: 0 0 2.4cqw; }
.gk-sq-text h1 { text-wrap: balance; font-size: max(20px, 5.9cqw); line-height: 1.35; color: var(--gk-fg); }
.gk-sq-text p { font-size: max(12px, 3.3cqw); line-height: 1.8; margin: 3cqw 0 0; }
.gk .gk-sq-reco { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3cqw; padding: 0 10cqw;
                  background: var(--gk-foot); color: #fff; text-decoration: none; }
.gk-sq-reco b { font-size: max(15px, 5.4cqw); line-height: 1.45; font-weight: 700; }
.gk-sq-reco small { font-size: max(11px, 3.2cqw); line-height: 1.7; opacity: .88; }
.gk-sq-reco i { font-style: normal; font-size: max(11px, 3cqw); text-decoration: underline; color: #f6a9cf; }
.gk-sq-reco .gk-tile-kind { background: var(--gk-pink); }
.gk-tiles-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding: 26px 15px 16px; max-width: var(--gk-w); margin: 0 auto; }
.gk-tiles-bar h2 { font-size: clamp(18px, 2vw, 22px); }
.gk-top-fact { font-size: 13px; color: var(--gk-sub); border-top: 0; padding-top: 0; margin: 40px 0 0 !important; }
/* 3列 なので PC では マスが 大きい：字を すこし 大きく */
@media (min-width: 768px) {
  .gk-tile-cap { padding: 50px 16px 14px; }
  .gk-tile-cap b { font-size: clamp(14px, 1.4vw, 19px); }
  .gk-tile-cap small { font-size: clamp(11px, 1vw, 14px); }
  .gk-tile-kind { left: 12px; top: 12px; font-size: 12px; padding: 2px 10px; }
  .gk-tile.is-big .gk-tile-cap b { font-size: clamp(20px, 2.4vw, 32px); }
  .gk-tile-tool { padding: 14%; }
  .gk-tile-tool b { font-size: clamp(18px, 2vw, 28px); }
  .gk-tile-tool small { font-size: clamp(12px, 1.1vw, 15px); }
  .gk-tile.is-video .gk-tile-img::after { width: 64px; height: 64px; font-size: 22px; }
}
@media (max-width: 767px) {
  .gk-sq-top { grid-template-columns: 1fr; gap: 2px; margin-bottom: 2px; }
  .gk-sq-top .gk-slider { grid-column: auto; grid-row: auto; }
  .gk-tiles-bar { padding: 20px 12px 12px; }
  .gk .gk-sq-reco { aspect-ratio: auto; padding: 44px 8% 30px; gap: 8px; }
  .gk-sq-reco b { font-size: 17px; } .gk-sq-reco small { font-size: 12px; } .gk-sq-reco i { font-size: 12px; }
  .gk-sq-text > div { padding: 0 6%; }
}

/* ---- v3：piano.gr.jp の 新デザインに 寄せる（写真＋色の 膜＋白い 細い 字）と、インスタの プロフィール ---- */
.gk-sq-text, .gk .gk-sq-reco { position: relative; isolation: isolate; }
.gk-sq-text::before, .gk .gk-sq-reco::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--bg) center / cover no-repeat; }
.gk-sq-text::after, .gk .gk-sq-reco::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.gk-sq-text { border-bottom: 0; color: #fff; }
.gk-sq-text::after { background: rgba(84, 108, 40, .86); }          /* みどり */
.gk .gk-sq-reco { background: none; }
.gk .gk-sq-reco::after { background: rgba(150, 40, 95, .86); }      /* ピンク */
.gk-sq-text > div { text-align: left; }
.gk-sq-text h1 { color: #fff; font-weight: 300; }
.gk-sq-text p { color: rgba(255,255,255,.94); font-weight: 300; }
.gk-sq-text .gk-top-eyebrow { color: rgba(255,255,255,.85); }
.gk-sq-reco b { font-weight: 400; }
.gk-sq-reco i { color: #fff; border: 1px solid rgba(255,255,255,.7); align-self: flex-start; padding: .6em 1.6em; text-decoration: none; }
.gk-sq-reco .gk-tile-kind { background: rgba(255,255,255,.22); }

.gk-ig { max-width: 935px; margin: 0 auto; padding: 34px 16px 0; }
.gk-ig-head { display: flex; align-items: center; gap: clamp(20px, 6vw, 80px); }
.gk-ig-avatar { flex: none; width: clamp(80px, 16vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--gk-line); background: #fff; }
.gk-ig-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 14%; box-sizing: border-box; display: block; }
.gk-ig-name h2 { font-size: clamp(18px, 2.2vw, 24px); font-weight: 400; border: 0; padding: 0; margin: 0 0 12px; }
.gk-ig-stats { list-style: none; display: flex; gap: clamp(18px, 4vw, 40px); margin: 0; padding: 0; color: var(--gk-fg); font-size: 15px; }
.gk-ig-stats b { font-weight: 700; margin-right: 4px; }
.gk-ig-bio { font-size: 14px; line-height: 1.7; color: var(--gk-fg); margin: 16px 0 0; }
.gk-ig-bio b { font-weight: 700; }
.gk-ig-hl { list-style: none; display: flex; gap: clamp(14px, 3vw, 34px); overflow-x: auto; margin: 22px 0 0; padding: 4px 2px 10px; scrollbar-width: none; }
.gk-ig-hl::-webkit-scrollbar { display: none; }
.gk-ig-hl a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--gk-fg); width: clamp(64px, 9vw, 84px); }
.gk-ig-ring { width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f6c143, #dd2c83, #6a4bc4); box-sizing: border-box; }
.gk-ig-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-sizing: border-box; display: block; background: #fff; }
.gk-ig-hl small { font-size: 12px; white-space: nowrap; }
.gk-ig-tabs { justify-content: center; gap: clamp(10px, 5vw, 56px); border-top: 1px solid var(--gk-line); margin: 10px 0 0; flex-wrap: nowrap; }
.gk .gk-ig-tabs button { border: 0; border-top: 1px solid transparent; margin-top: -1px; border-radius: 0; background: none; padding: 14px 2px; font-size: 12px;
                         letter-spacing: .08em; color: var(--gk-sub); display: flex; align-items: center; gap: 6px; }
.gk .gk-ig-tabs button[aria-pressed="true"] { background: none; color: var(--gk-fg); border-top-color: var(--gk-fg); }
.gk-ig-tabs span { font-size: 14px; }
@media (max-width: 767px) {
  .gk-ig { padding: 22px 14px 0; }
  .gk-ig-stats { font-size: 13px; }
  .gk-ig-bio { font-size: 13px; }
  .gk .gk-ig-tabs { justify-content: space-around; gap: 0; margin-left: -14px; margin-right: -14px; }
  .gk .gk-ig-tabs button { padding: 12px 0; font-size: 11px; gap: 4px; }
}

/* ---- v5：スライドは「絵（上）＋ 色の 帯（下）」。どの 大きさでも 正方形の 中に 空白を 作らない ---- */
.gk .gk-slide { display: flex; flex-direction: column; container-type: inline-size; background: #fff; }
.gk-slide-img { flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: 4cqw 4cqw 2cqw; box-sizing: border-box; }
.gk-slide-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gk .gk-slide-cap { position: static; flex: 0 0 auto; height: 34%; box-sizing: border-box; justify-content: center;
                    background: var(--sc, #3a4470); text-shadow: none; padding: 0 7cqw; gap: 1.6cqw; }
.gk-slide-tag { font-size: max(11px, 2.2cqw); padding: .2em .9em; background: rgba(255,255,255,.2); }
.gk-slide-cap b { font-size: max(18px, 5.6cqw); font-weight: 400; line-height: 1.3; }
.gk-slide-cap small { font-size: max(12px, 2.6cqw); opacity: .9; }
.gk-sl-prev, .gk-sl-next { top: 33%; background: rgba(0,0,0,.18); }
.gk-sl-dots { bottom: auto; top: calc(66% + 14px); right: 5%; }
.gk-sl-dots button[aria-current="true"] { background: #fff; }
@media (max-width: 767px) {
  .gk .gk-slide-cap { padding: 0 6cqw; }
  .gk-sl-dots { left: auto; right: 5%; justify-content: flex-end; top: calc(66% + 10px); }
}
/* v5b：帯は 横 いっぱい。PC（1200px〜）は スライダー・文・推薦を 正方形 3つで 横に ならべる（画面の 高さに おさまる） */
.gk .gk-slide { align-items: stretch; place-items: stretch; }
@media (min-width: 1200px) {
  .gk-sq-top .gk-slider { grid-column: auto; grid-row: auto; }
}

/* v6：ハイライトの 丸を 真円に（li が ちぢまない・幅と 高さを 同じ 値で） */
.gk-ig-hl li { flex: none; }
.gk-ig-hl a { --d: clamp(64px, 9vw, 84px); width: var(--d); }
.gk-ig-ring { width: var(--d); height: var(--d); aspect-ratio: auto; flex: none; display: block; }
.gk-ig-ring img { width: 100%; height: 100%; aspect-ratio: 1 / 1; }
.gk-ig-hl small { max-width: calc(var(--d) + 16px); overflow: hidden; text-overflow: ellipsis; }

/* ---- v7：上の 段の ずれを 直す ----
   ・行の 高さは 正方形の 文の マス（aspect-ratio 1）が 決め、スライダーは その 行に いっぱいに 伸ばす（2×2 なら 2行＋すき間 → 正方形）
   ・推薦の マスの 余白は % で（cqw は 自分では なく 親の 入れ物を 見るため、ずれて いた）
   ・右上の ボタンと 字が 重ならないよう、上を あける */
.gk-sq-top .gk-slider { align-self: stretch; min-height: 0; }
.gk-sq-top .gk-slides { height: 100%; }
.gk .gk-sq-top .gk-slide { aspect-ratio: auto; height: 100%; }
.gk .gk-sq-reco { padding: 64px 10% 0; gap: .9em; }
.gk-sq-text > div { padding-top: 40px; }
@media (max-width: 767px) {
  .gk-sq-top .gk-slider { aspect-ratio: 1 / 1; }
  .gk .gk-sq-reco { padding: 44px 8% 30px; }
  .gk-sq-text > div { padding-top: 0; }
}
.gk-sq-text > div { padding-top: 56px; }
@container (max-width: 360px) {
  .gk-sq-text .gk-top-eyebrow, .gk-sq-text p + p { display: none; }
  .gk-sq-text h1 { font-size: 20px; }
}
@media (min-width: 768px) and (max-width: 1199px) { .gk-sq-text p { font-size: max(11px, 3.1cqw); } }
@media (max-width: 767px) { .gk-sq-text > div { padding-top: 0; } }

/* ---- v8：種類の 札を ビビッドに・Stage の 札・スマホの スライダー・PC でも スライダーが 主役（2×2） ---- */
.gk-tile-kind { font-weight: 700; letter-spacing: .04em; }
.gk-tile-kind.k-book, .gk-chips .k-book[aria-pressed="true"] { --kc: #ffc400; }
.gk-tile-kind.k-page, .gk-chips .k-page[aria-pressed="true"] { --kc: #00a6ff; }
.gk-tile-kind.k-video, .gk-chips .k-video[aria-pressed="true"] { --kc: #ff2d55; }
.gk-tile-kind.k-tool, .gk-chips .k-tool[aria-pressed="true"] { --kc: #8a3ffc; }
.gk .gk-tile-kind { background: var(--kc, #111); color: #fff; }
.gk .gk-tile-kind.k-book { color: #111; }
.gk .gk-tile.is-tool .gk-tile-kind { background: #fff; color: #8a3ffc; }
.gk .gk-ig-tabs button[aria-pressed="true"] { color: var(--kc, var(--gk-fg)); border-top: 2px solid var(--kc, var(--gk-fg)); }
.gk .gk-ig-tabs .k-book[aria-pressed="true"] { color: #b38600; }
.gk-ig-tabs .k-book span { color: #ffc400; } .gk-ig-tabs .k-page span { color: #00a6ff; }
.gk-ig-tabs .k-video span { color: #ff2d55; } .gk-ig-tabs .k-tool span { color: #8a3ffc; }

.gk-tile-tier { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .06em; line-height: 1.1;
                padding: 3px 8px 3px; border-radius: 3px; color: #fff; background: #111; display: flex; flex-direction: column; align-items: center;
                box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.gk-tile-tier small { font-size: 7px; font-weight: 700; letter-spacing: .14em; opacity: .85; }
.gk-tile-tier.t-green { background: #111; color: #c8f05a; }
.gk-tile-tier.t-red { background: #111; color: #ff5a78; }
.gk-tile-tier.t-gold { background: linear-gradient(135deg, #8a6a12, #f7d774 45%, #b8860b); color: #2a1d00; }
.gk-tile-tier.t-silver { background: linear-gradient(135deg, #7d848c, #f2f4f6 45%, #9aa1a9); color: #1d2329; }
.gk-tile-tier.t-bronze { background: linear-gradient(135deg, #6b3d1c, #e0a46c 45%, #8c5428); color: #2a1404; }
.gk-tile-tier.t-pearl { background: linear-gradient(135deg, #f6f1ea, #e7f0ff 40%, #fbe9f3 70%, #f3efe6); color: #4a4250; }
@media (min-width: 768px) {
  .gk-tile-tier { right: 12px; top: 12px; font-size: 13px; padding: 4px 10px; }
  .gk-tile-tier small { font-size: 8px; }
}
@media (max-width: 767px) { .gk-tile-tier { right: 4px; top: 4px; font-size: 9px; padding: 2px 5px; } .gk-tile-tier small { font-size: 6px; } }

/* PC の 広い 画面でも スライダーは 2×2（主役）。右に 文と 推薦 */
@media (min-width: 1200px) { .gk-sq-top .gk-slider { grid-column: span 2; grid-row: span 2; } }
/* スマホ：スライダーの 高さを % に たよらない（Safari で 0 に なって 消えた） */
@media (max-width: 767px) {
  .gk-sq-top .gk-slider { aspect-ratio: auto; }
  .gk-sq-top .gk-slides { height: auto; }
  .gk .gk-sq-top .gk-slide { height: auto; aspect-ratio: 1 / 1; }
}

/* ---- v9：塗りを 若い ビビッドに。文の マスは gakufu の ピンク（いつも 同じ 色＝サイトの 色として 覚えて もらう） ---- */
.gk-sq-text::after { background: linear-gradient(150deg, rgba(255, 46, 126, .93), rgba(221, 44, 131, .93) 60%, rgba(160, 40, 200, .9)); }
.gk .gk-sq-reco::after { background: linear-gradient(150deg, rgba(40, 110, 255, .93), rgba(107, 77, 255, .93)); }
.gk-sq-text h1 { font-weight: 700; letter-spacing: .02em; }
.gk-sq-text .gk-top-eyebrow { color: #fff; font-weight: 700; }
.gk .gk-slide-cap { background: var(--sc, #ff2e7e); }
.gk-slide-cap b { font-weight: 700; }
.gk-slide-tag { background: #fff; color: var(--sc, #ff2e7e); font-weight: 700; }

/* ---- v10：マスの 下の グラデを シリーズの ビビッドな 色に。
   いちばん 下だけ 色を すこし 深く（濃い 紫を まぜる）→ 白い 字が 読める・安っぽく ならない ---- */
.gk-tile-cap { background: linear-gradient(0deg, rgba(16,0,32,.72), rgba(16,0,32,0)); }   /* 古い ブラウザ */
@supports (background: color-mix(in srgb, red 50%, blue)) {
  .gk .gk-tile-cap {
    background: linear-gradient(0deg,
      color-mix(in srgb, var(--gc, #dd2c83) 82%, #1a0033) 0%,
      color-mix(in srgb, var(--gc, #dd2c83) 88%, transparent) 38%,
      color-mix(in srgb, var(--gc, #dd2c83) 40%, transparent) 72%,
      transparent 100%);
  }
}
.gk-tile-cap b, .gk-tile-cap small { text-shadow: 0 1px 2px rgba(20,0,40,.35); }
.gk-tile-cap b { font-weight: 700; letter-spacing: .02em; }
.gk-tile-cap small { opacity: .95; }
/* 上に 細い ひかりの 線（プレミアム感） */
.gk .gk-tile-cap::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.55), rgba(255,255,255,0)); }

/* ---- v11：おまけの マスも ビビッドに（グラデ＋網点＋光の 線） ---- */
.gk .gk-tile.is-tool { background: var(--tc, linear-gradient(135deg, #ff2e7e, #ff8a00)); }
.gk .gk-tile.is-tool::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.22) 1.3px, transparent 1.7px) 0 0 / 11px 11px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); }
.gk .gk-tile.is-tool::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.6), rgba(255,255,255,0)); }
.gk-tile-tool { z-index: 1; text-shadow: 0 1px 2px rgba(20,0,40,.25); }
.gk-tile-tool b { font-weight: 800; letter-spacing: .02em; }
.gk .gk-tile-tool i { align-self: flex-start; text-decoration: none; background: #fff; color: #111; font-weight: 700; text-shadow: none;
  padding: .45em 1.1em; border-radius: 99px; box-shadow: 0 2px 0 rgba(0,0,0,.18); transition: transform .15s; }
.gk .gk-tile.is-tool > a:hover .gk-tile-tool i { transform: translateY(-2px); }
.gk .gk-tile.is-tool .gk-tile-kind { z-index: 2; }

/* ---- v12：ハイライト・タブを 一覧の 直前に 出した（スティッキーに する ため） ---- */
.gk-ig-hl { max-width: 935px; margin: 22px auto 0; padding: 4px 16px 10px; box-sizing: border-box; }
.gk-ig-tabs { max-width: 935px; margin: 10px auto 0 !important; }
.gk-ig-tabs .s { display: none; }
.gk-ig-tabs b { font-weight: inherit; }
.gk-ig-note { font-size: 11px; color: var(--gk-sub); margin: 8px 0 0; line-height: 1.6; }
.gk-ig-stats li { white-space: nowrap; }

@media (max-width: 767px) {
  /* 一覧は インスタの フィードの ように 1列 */
  .gk .gk-tiles { grid-template-columns: 1fr; gap: 3px; }
  .gk .gk-tile.is-big { grid-column: auto; grid-row: auto; }
  .gk .gk-tile-cap { padding: 60px 16px 14px; }
  .gk .gk-tile-cap b { font-size: 17px; }
  .gk .gk-tile-cap small { display: block; font-size: 13px; }
  .gk .gk-tile-kind { left: 12px; top: 12px; font-size: 12px; padding: 2px 10px; }
  .gk .gk-tile-tier { right: 12px; top: 12px; font-size: 13px; padding: 4px 10px; }
  .gk .gk-tile-tier small { font-size: 8px; }
  .gk .gk-tile.is-video .gk-tile-img::after { width: 64px; height: 64px; font-size: 22px; }
  .gk .gk-tile-tool { padding: 14%; gap: 8px; }
  .gk .gk-tile-tool b { font-size: 26px; } .gk .gk-tile-tool small { font-size: 14px; } .gk .gk-tile-tool i { font-size: 14px; }

  /* シリーズの 丸：一覧に 来たら 上に はりつく（背景なし） */
  .gk-ig-hl { position: sticky; top: 58px; z-index: 40; margin-top: 14px; padding: 6px 12px 8px; gap: 12px; background: none; }
  .gk-ig-hl a { --d: 58px; }
  .gk-ig-ring { box-shadow: 0 2px 8px rgba(20,0,40,.25); }
  .gk-ig-hl small { font-size: 11px; font-weight: 700; color: #111; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; }

  /* しぼりこみは 下に うかぶ 丸い ボタン（一覧が 見えて いる あいだだけ） */
  .gk .gk-ig-tabs { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; margin: 0 !important;
    border: 0; gap: 8px; justify-content: center; transform: translate(-50%, 160%); transition: transform .3s cubic-bezier(.2,.9,.25,1.1); }
  body.gk-feed-on .gk-ig-tabs { transform: translate(-50%, 0); }
  .gk .gk-ig-tabs button { width: 58px; height: 58px; border-radius: 50%; border: 0 !important; margin: 0; padding: 0;
    background: #fff; box-shadow: 0 4px 14px rgba(20,0,40,.28); flex-direction: column; justify-content: center; gap: 1px; color: #111; }
  .gk .gk-ig-tabs button span { font-size: 18px; line-height: 1; }
  .gk .gk-ig-tabs button .l { display: none; }
  .gk .gk-ig-tabs button .s { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0; }
  .gk .gk-ig-tabs button[aria-pressed="true"] { background: var(--kc, #111); color: #fff; border: 0; transform: scale(1.08); }
  .gk .gk-ig-tabs button[aria-pressed="true"] span { color: #fff; }
  .gk .gk-ig-tabs .k-all[aria-pressed="true"] { --kc: #111; }
  .gk .gk-ig-tabs .k-book[aria-pressed="true"] { color: #111; } .gk .gk-ig-tabs .k-book[aria-pressed="true"] span { color: #111; }
  body.gk-feed-on .gk-reco ~ * { }
}
/* くま先生の アイコンは 丸の 絵なので いっぱいに */
.gk-ig-avatar img[src*="avatar-kuma"] { padding: 0; object-fit: cover; }
@media (max-width: 767px) { .gk .gk-ig-name h2 { font-size: 16px; white-space: nowrap; letter-spacing: 0; } }

/* ---- v14：新刊の NEW（さけび ふきだし）。スライダー・一覧の 上・シリーズの 丸 ---- */
.gk-new { position: absolute; z-index: 3; left: 6px; top: 4px; width: 64px; height: 64px; pointer-events: none;
          filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); animation: gk-new-pop 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.gk-new svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gk-tile.is-new .gk-tile-kind { left: 70px; }
.gk-slide-img { position: relative; }
.gk-new-lg { left: auto; right: 4%; top: 6%; width: 18cqw; height: 18cqw; min-width: 72px; min-height: 72px; }
@keyframes gk-new-pop { 0%, 100% { transform: rotate(-6deg) scale(1); } 50% { transform: rotate(4deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .gk-new { animation: none; } }
@media (min-width: 768px) { .gk-new { width: 84px; height: 84px; left: 8px; top: 6px; } .gk-tile.is-new .gk-tile-kind { left: 92px; } }
.gk-ig-hl li.is-new .gk-ig-ring { background: conic-gradient(#ff1f3d, #ffe600, #ff1f3d); position: relative; }
.gk-new-pill { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); background: #ff1f3d; color: #fff; font-size: 10px; font-weight: 900;
               letter-spacing: .06em; line-height: 1; padding: 3px 7px; border-radius: 99px; border: 2px solid #fff; }
.gk-ig-hl li.is-new small { color: #ff1f3d; font-weight: 700; }
.gk .gk-ig-hl li.is-new small { text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.gk-new.gk-new-lg { left: auto; right: 4%; top: 6%; width: 18cqw; height: 18cqw; min-width: 72px; min-height: 72px; }

/* ---- v15：楽譜DL（＠ELISE）の マス・NEW の 位置（表紙の 題に かからない 所へ） ---- */
.gk .gk-tile.is-score { background: var(--tc, linear-gradient(135deg, #ff2e7e, #ffb000)); }
.gk .gk-tile.is-score::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.22) 1.3px, transparent 1.7px) 0 0 / 11px 11px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); }
.gk .gk-tile.is-score::after { content: "♪"; position: absolute; right: 6%; bottom: 2%; font-size: 46cqw; line-height: 1; color: rgba(255,255,255,.18); pointer-events: none; }
.gk .gk-tile.is-score { container-type: inline-size; }
.gk .gk-tile.is-score .gk-tile-kind { background: #fff; color: #00a08f; z-index: 2; }
.gk-tile-kind.k-score, .gk-chips .k-score[aria-pressed="true"] { --kc: #00b39f; }
.gk-ig-tabs .k-score span { color: #00b39f; }
.gk .gk-tile.is-score .gk-tile-tool b { font-size: clamp(16px, 1.7vw, 24px); }

/* NEW：表紙は 上に 題が あるので、マスは 右の 下より（説明の 帯の 上）、スライドは 絵の 右下へ */
.gk .gk-tile .gk-new { left: auto; top: auto; right: 6px; bottom: 58px; }
.gk-tile.is-new .gk-tile-kind { left: 8px; }
.gk .gk-new.gk-new-lg { top: auto; bottom: 4%; right: 3%; }
@media (min-width: 768px) {
  .gk .gk-tile .gk-new { right: 10px; bottom: 76px; }
  .gk-tile.is-new .gk-tile-kind { left: 12px; }
  .gk .gk-tile.is-big .gk-new { bottom: 110px; }
}
@media (max-width: 767px) {
  .gk .gk-tile .gk-new { width: 78px; height: 78px; right: 12px; bottom: 92px; }
  .gk .gk-ig-tabs { gap: 5px; }
  .gk .gk-ig-tabs button { width: 52px; height: 52px; }
  .gk .gk-ig-tabs button .s { font-size: 9px; }
}

/* ---- v16：どんな あなたに？（はじめての 人の 入口） ---- */
.gk-persona { max-width: 935px; margin: 12px auto 0; padding: 0 16px; box-sizing: border-box; }
.gk-persona-q { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--gk-fg); }
.gk-persona-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.gk .gk-persona button { font: inherit; font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 99px; cursor: pointer;
  background: #fff; color: #111; border: 2px solid #111; box-shadow: 3px 3px 0 #111; transition: transform .12s, box-shadow .12s, background .2s; }
.gk .gk-persona button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #111; }
.gk .gk-persona button[aria-pressed="true"] { background: linear-gradient(135deg, #ff2e7e, #a03cff); color: #fff; transform: translate(2px, 2px); box-shadow: 1px 1px 0 #111; }
.gk-persona-msg { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff7fb; border: 2px solid #111; font-size: 14px; line-height: 1.7; color: #111; position: relative; }
.gk-persona-msg::before { content: ""; position: absolute; left: 28px; top: -12px; border: 10px solid transparent; border-bottom-color: #111; border-top: 0; }
.gk-ig-hl li { transition: opacity .3s, transform .3s; }
.gk-ig-hl li.is-dim { opacity: .25; transform: scale(.88); }
.gk-ig-hl li.is-hit .gk-ig-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ff2e7e; }
@media (max-width: 767px) {
  .gk-persona { padding: 0 14px; }
  .gk-persona-btns { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 4px 6px 2px; }
  .gk-persona-btns::-webkit-scrollbar { display: none; }
  .gk .gk-persona button { flex: none; font-size: 12px; padding: 7px 13px; }
  .gk-persona-msg { font-size: 13px; }
}
/* v17：シリーズの 丸を えらんだ ときの 光る ふちが 上で 切れない ように（横スクロールの 箱は たても 切る） */
.gk-ig-hl { padding-top: 12px; padding-bottom: 12px; }
.gk-ig-hl li.is-hit .gk-ig-ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #ff2e7e; }
@media (max-width: 767px) { .gk-ig-hl { padding-top: 8px; } }
/* v18：ピアノペルソナ */
.gk-persona-q small { display: block; font-size: 12px; font-weight: 400; color: var(--gk-sub); margin-top: 2px; }
.gk-persona-q { font-size: 15px; }
.gk-persona-name { display: block; font-size: 16px; font-weight: 900; margin-bottom: 4px;
  background: linear-gradient(90deg, #ff2e7e, #a03cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gk-persona-msg span { display: block; }
