/* 全サイト共通：リセット・グループのバー・カード・フッター */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 0;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }
:focus-visible { outline: 3px solid #0e7c84; outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: #fff; color: #000; padding: 6px 12px; }

main { display: block; }
.wave { width: 100%; height: auto; }

/* グループのバー（どのサイトでも同じ見た目） */
.hbar { background: linear-gradient(180deg, #ffffff 0%, #f1f8f8 100%); color: #111417; border-bottom: 1px solid #dfe8e9; }
.hbar::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #0e7c84, #3fc1c9 55%, #8fd8dd); }
.t-study .hbar::before { background: linear-gradient(90deg, #2469c7 0 25%, #0e7c84 25% 50%, #237a3c 50% 75%, #b85c06 75%); }
.t-study .hbar { background: linear-gradient(180deg, #ffffff 0%, #eef5f9 100%); }
.hbar-icon { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 1.5px #3fc1c9; flex: none; }
.hbar-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 54px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hbar-brand { display: inline-flex; align-items: center; gap: 10px; color: #111417;
  font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 16px;
  text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.hbar-nav { display: flex; gap: 4px; }
.hbar-nav a { font-size: 14px; text-decoration: none; padding: 6px 12px; border-radius: 999px;
  color: #4b5358; white-space: nowrap; }
.hbar-nav a:hover { color: #111417; background: #eef3f4; }
.hbar-nav a[aria-current="page"] { color: #fff; background: #0e7c84; }

/* セクション見出し */
.sec-h { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 22px;
  letter-spacing: .06em; margin-bottom: 20px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card a { display: block; text-decoration: none; height: 100%; }
.thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.thumb-ph { display: flex; align-items: flex-end; padding: 16px; aspect-ratio: 16 / 9;
  font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 20px; line-height: 1.4; }
.card-body { padding: 14px 16px 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.card-title { font-size: 17px; line-height: 1.5; font-weight: 700; }
.card-sub { display: block; font-size: 13px; font-weight: 400; color: #4f585f; margin-top: 2px; }
.card-meta { font-size: 13px; color: #5c6670; margin-top: 6px; font-variant-numeric: tabular-nums; }

.badge, .field, .site-tag { display: inline-block; font-size: 11px; line-height: 1; padding: 5px 8px;
  border-radius: 4px; font-weight: 700; letter-spacing: .04em; }
.badge.on { background: #0e7c84; color: #fff; }
.badge.soon { background: transparent; border: 1px solid currentColor; color: #5c6670; padding: 4px 7px; }
.field { color: #fff; }
.f-chem { background: #0e7c84; }
.f-phys { background: #2469c7; }
.f-bio { background: #237a3c; }
.f-earth { background: #b85c06; }
.site-tag.s-chem { background: #fff; color: #0e7c84; border: 1px solid #0e7c84; padding: 4px 7px; }
.site-tag.s-study, .site-tag.s-chugaku, .site-tag.s-koko { background: #e6eff3; color: #0d747b; border: 1px solid #9fc9d1; padding: 4px 7px; }

/* 動画ページ */
.crumb { max-width: 960px; margin: 0 auto; padding: 24px 24px 0; font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px; color: #5c6670; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.video { max-width: 960px; margin: 0 auto; padding: 16px 24px 24px; }
.v-head { margin-bottom: 20px; }
.len { font-size: 13px; color: #5c6670; font-variant-numeric: tabular-nums; }
.v-title { font-size: clamp(28px, 5vw, 44px); line-height: 1.3; font-weight: 700; }
.v-sub { font-size: 18px; opacity: .75; margin-top: 4px; }
.v-media { position: relative; }
.v-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.watch { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 22px;
  border-radius: 999px; font-weight: 700; text-decoration: none; }
.watch.off { font-weight: 400; font-size: 14px; color: #5c6670; padding-left: 0; }
.v-lead { font-size: 18px; margin: 28px 0; }
.v-points { border-radius: 8px; padding: 24px 28px; }
.v-points h2 { font-size: 18px; margin-bottom: 12px; }
.v-points li { position: relative; padding-left: 22px; margin: 6px 0; }
.v-points li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 10px; height: 2px; }
.related { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }

/* 文章ページ（プライバシーなど） */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.doc h1 { font-family: "Noto Serif JP", serif; font-size: 28px; line-height: 1.4; margin-bottom: 24px; }
.doc h2 { font-size: 18px; margin: 32px 0 8px; }
.doc .note { font-size: 14px; padding: 10px 14px; border-left: 3px solid #e98315; background: #fff4e8; color: #6b3d00; }

/* フッター（どのサイトでも同じ構成） */
/* フッター：淡いティール（2026-11-24 本人指示で明るく） */
.foot { position: relative; background: linear-gradient(180deg, #e2f4f5 0%, #d3edef 100%); color: #2f4a50; font-size: 14px; margin-top: 0; }
.foot-wave { display: block; width: 100%; height: 60px; background: linear-gradient(180deg, #fbfbf9 0, #fbfbf9 50%, #e2f4f5 50%); }
.foot-in { max-width: 1160px; margin: 0 auto; padding: 24px 24px 36px; display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-text { margin-top: 16px; line-height: 1.8; color: #34525a; max-width: 30em; }
.foot-h { font-size: 12px; letter-spacing: .14em; color: #0b6a71; font-weight: 700; margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: #1f3a40; text-decoration: none; }
.foot-col a:hover { color: #0b6a71; text-decoration: underline; text-underline-offset: 3px; }
.foot-off { color: #4b666c; }
.foot-bottom { border-top: 1px solid #b9dde0; }
.foot-bottom .copy { max-width: 1160px; margin: 0 auto; padding: 16px 24px 20px; color: #4b666c; }
@media (max-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.muted { color: #5f676d; }
.copy { font-size: 12px; color: #5f676d; }

@media (max-width: 560px) {
  .hbar-in { padding: 0 12px; gap: 8px; }
  .hbar-brand { font-size: 13px; gap: 6px; }
  .hbar-icon { width: 22px; height: 22px; }
  .hbar-nav { gap: 0; }
  .hbar-nav a { padding: 5px 7px; font-size: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card a { transition: transform .2s ease; }
  .card a:hover { transform: translateY(-3px); }
}

/* リンク未設定のときは、ボタンではなく注記として出す */
.t-chem .watch.off, .t-study .watch.off { background: none; color: #5c6670; }

/* ---------- 動く波形（ヘッダー） ---------- */
.wave-anim { width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.wave-anim .wb { transform-box: view-box; transform-origin: 50% 50%; }
@keyframes wslide { from { transform: translateX(0); } to { transform: translateX(-1200px); } }
@keyframes wbreath { 0% { transform: scaleY(.55); } 50% { transform: scaleY(1.08); } 100% { transform: scaleY(.8); } }
@media (prefers-reduced-motion: no-preference) {
  .wave-anim .wl-0 { animation: wslide 11s linear infinite; }
  .wave-anim .wl-1 { animation: wslide 17s linear infinite reverse; }
  .wave-anim .wl-2 { animation: wslide 23s linear infinite; }
  .wave-anim .wl-3 { animation: wslide 29s linear infinite reverse; }
  .wave-anim .wb { animation: wbreath 6s ease-in-out infinite alternate; }
}

/* グループのバーの下を流れる細い波 */
.hbar { position: relative; }
.v-wave { height: 50px; margin-top: 14px; }
.site-wave { height: 90px; }

/* YouTube の埋めこみ（2026-11-22） */
.vp-yt, .v-yt { position: relative; aspect-ratio: 16 / 9; background: #0f1a1c; border-radius: 10px; overflow: hidden; }
.vp-yt iframe, .v-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vp-note a { color: #0d747b; font-weight: 700; text-decoration: none; }
.vp-note a:hover { text-decoration: underline; }
.doc table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: 14px; }
.doc th, .doc td { border: 1px solid #e3e6e8; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f2f7f8; color: #111417; }
/* キクリカのロゴ（2026-11-24 試しに載せた。案C：4色の波） */
.hbar-logo { display: block; height: 38px; width: auto; }
.foot-logo { display: block; height: 60px; width: auto; }
@media (max-width: 560px) { .hbar-logo { height: 28px; } }
.doc .about-table th { width: 11em; white-space: nowrap; }
.doc .about-note { font-size: 13px; color: #5f676d; }
@media (max-width: 560px) { .doc .about-table th { width: auto; white-space: normal; } }
/* お問い合わせ：Googleフォームの埋めこみ（2026-11-28） */
.contact .contact-sub { font-size: 14px; color: #5f676d; }
.contact-form { margin: 24px 0 16px; border: 1px solid #e3e6e8; border-radius: 12px; overflow: hidden; background: #fff; }
.contact-form iframe { display: block; width: 100%; height: 1760px; border: 0; }
@media (max-width: 560px) { .contact-form iframe { height: 1980px; } }
