/* タイポグラフィ */
/* CTA（強調ボタン）の色。既定は --color-primary のまま＝見た目は変わらない。
   ブランド色（primary）と強調色（accent）の役割を分けたい独自テーマでは、
   ここを `--lp-cta-color: var(--color-accent);` に上書きするだけで、
   ヒーローCTA・フォーム送信ボタン・予約カレンダーの強調色がまとめて揃う
   （各ファイルに個別のオーバーライドを書いて回らなくてよい）。 */
:root {
  --lp-cta-color: var(--color-primary);
}
.btn-cta {
  background-color: var(--lp-cta-color);
  border-color: var(--lp-cta-color);
  color: #fff;
}
.btn-cta:hover,
.btn-cta:focus,
.btn-cta:active {
  background-color: color-mix(in oklch, var(--lp-cta-color) 85%, black);
  border-color: color-mix(in oklch, var(--lp-cta-color) 85%, black);
  color: #fff;
}

/* コンテナ */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ページタイトル */
.page-title {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

/* カテゴリートップ／各ページの説明文（settings.category_description_*、インライン Markdown 可） */
.page-lead {
  margin: -0.5rem 0 2rem;
  font-size: 0.95rem;
  line-height: 1.85;
  opacity: 0.75;
  max-width: 760px;
}
.page-lead a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-lead strong {
  font-weight: 700;
}

/* ヒーローのキャッチコピー（settings.catch_copy、インライン Markdown 可） */
.hero-catch a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-catch strong {
  font-weight: 700;
}

/* カテゴリー TOP のヘッダー（CategoryHero.astro） */
.cat-head {
  padding-top: 2rem;
}
.cat-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--color-base-300) 0%, var(--color-primary) 100%);
}
.cat-hero::before {
  content: '';
  position: absolute;
  inset: -6px; /* blur のにじみ分を隠す */
  background-image: var(--cat-hero-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.7) blur(1px);
}
/* 暗幕は画像だけを暗くする。文字（.cat-hero__inner）はこの上に描くので透けない */
.cat-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}
.cat-hero__inner {
  position: relative;
  z-index: 1; /* ::before(画像) / ::after(暗幕) より前面に出して文字を不透明に保つ */
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.cat-hero__title {
  margin: 0.6rem 0 0;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  /* 画像を暗くしすぎず、二重の影で白文字の可読性を担保する */
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.7);
}
.cat-hero__lead {
  margin: 0.75rem 0 0;
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.7);
}
.cat-hero__lead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cat-hero__lead strong {
  font-weight: 700;
}
.breadcrumb--on-hero {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}
.breadcrumb--on-hero a,
.breadcrumb--on-hero .breadcrumb-current,
.breadcrumb--on-hero .breadcrumb-sep {
  color: #fff;
}
.breadcrumb--on-hero a {
  opacity: 0.9;
}
.breadcrumb--on-hero .breadcrumb-current {
  opacity: 0.8;
}
@media (max-width: 768px) {
  .cat-hero__inner {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  .cat-hero__title {
    font-size: 1.6rem;
  }
}

/* コンテンツ本文 */
.content-body {
  line-height: 1.9;
}

/* パンくず */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.breadcrumb a {
  opacity: 0.6;
}
.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}
.breadcrumb-sep {
  opacity: 0.35;
}
.breadcrumb-current {
  opacity: 0.85;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

/* ヘッダー（＋サンプル告知バナー）をまとめて上端に固定する */
.site-topfix {
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site-header {
  position: relative;
}

/* サンプル／デモ告知バナー */
.sample-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  color: #422006;
  background: #fde68a;
  border-bottom: 1px solid #f59e0b;
}
.sample-banner__text :where(a) {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 緊急告知アラート（CMS の「アラート」タブ → settings.alerts）。
   display=banner は上端固定帯に積む／display=toast は隅に浮かせる。
   style.css は Default / Landing 両レイアウトが読む。 */
.site-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.9rem;
  border-radius: 0;
  padding-block: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
/* 帯（フロー内・全幅） */
.site-alerts > .site-alert + .site-alert {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
/* トースト（右下に浮かせる。右下の「↑ 先頭へ」ボタンの上に載せる）。
   モバイルでは下部がコンテンツ・FAB と干渉するので上部へ回す。 */
.site-toast {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(92vw, 380px);
}
.site-toast .site-alert {
  border-radius: var(--radius-box, 0.75rem);
  justify-content: flex-start;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
@media (max-width: 640px) {
  .site-toast {
    right: 0.5rem;
    left: 0.5rem;
    top: 0.5rem;
    bottom: auto;
    width: auto;
  }
}
.site-alert__text :where(a) {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-alert__link {
  flex: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.site-alert__close {
  flex: none;
  margin-inline-start: auto;
  padding: 0.15rem 0.35rem;
  border: none;
  background: none;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.site-alert__close:hover {
  opacity: 1;
}
/* サンプルフォームの注意書き */
.sample-formnote {
  padding: 0.9rem 1.1rem;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  background: #fef3c7;
  color: #422006;
}
.sample-formnote p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ヘッダー inner */
/* メガメニュー（ヘッダーのグループ化） */
.desktop-nav {
  align-items: center;
}
.nav-group {
  position: relative;
  display: inline-flex;
}
.nav-group__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1;
  color: inherit;
  opacity: 0.8;
  cursor: pointer;
}
.nav-group:hover .nav-group__trigger,
.nav-group:focus-within .nav-group__trigger {
  opacity: 1;
}
.nav-group__caret {
  transition: transform 0.15s ease;
}
.nav-group:hover .nav-group__caret,
.nav-group:focus-within .nav-group__caret {
  transform: rotate(180deg);
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  border-radius: 12px;
  background: var(--color-base-100, #fff);
  border: 1px solid var(--color-base-300, rgba(0, 0, 0, 0.12));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}
/* 右端のグループは右寄せで開く（画面外にはみ出さないように） */
.nav-group:last-of-type .mega-panel {
  left: auto;
  right: 0;
}
/* トリガーとパネルの隙間でホバーが切れないように橋渡し */
.mega-panel::before {
  content: '';
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
}
.nav-group:hover .mega-panel,
.nav-group:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-panel__item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-base-content, inherit);
  opacity: 0.9;
}
.mega-panel__item:hover {
  opacity: 1;
  background: var(--color-base-200, rgba(0, 0, 0, 0.05));
  text-decoration: none;
}
.mega-panel__label {
  font-size: 0.9rem;
  font-weight: 600;
}
.mega-panel__desc {
  font-size: 0.72rem;
  opacity: 0.6;
  line-height: 1.4;
}

/* メイン */
/* トップページのお知らせ／インフォメーション／採用情報の見出しリンクは1行で省略 */
.home-list__link {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* トップページの実績カード（本文先頭の画像をサムネイルに使う） */
.work-card {
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.work-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.work-card__thumb {
  aspect-ratio: 16 / 10;
  background: #f2f2f2;
  overflow: hidden;
}
.work-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-card__body {
  padding: 1rem;
}
.work-card__body time {
  display: block;
  color: #999;
  font-size: 0.8rem;
}
.work-card__title {
  font-weight: bold;
  margin: 0.25rem 0 0;
}

/* フッター */
.footer-legal {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  opacity: 0.7;
}

.footer-privacy {
  text-decoration: none;
  color: inherit;
}

.footer-privacy:hover {
  text-decoration: underline;
}

/* ハンバーガー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .desktop-nav {
    display: none;
  }
}

/* モバイルナビ */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.mobile-nav.open {
  display: flex;
}

@media (max-width: 768px) {
  footer .inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .grid-3col {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  header .inner {
    padding: 1rem;
  }

  figure img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.drawer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.drawer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* figure 上下余白 */
figure {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* figcaption */
figcaption {
  font-size: 0.8em;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* 画像アライメント */
figure.align-left { text-align: left; }
figure.align-left img { margin-right: auto; margin-left: 0; max-width: 100%; height: auto; max-height: 600px; }

figure.align-center { text-align: center; }
figure.align-center img { margin: 0 auto; max-width: 100%; height: auto; max-height: 600px; }

figure.align-right { text-align: right; }
figure.align-right img { margin-left: auto; margin-right: 0; max-width: 100%; height: auto; max-height: 600px; }

/* 縦長画像のデフォルト制御 */
figure img { max-height: 600px; width: auto; max-width: 100%; }


/* ───── ahwinjp デザイン（株式会社オーウィン）───── */
html { scroll-behavior: smooth; }
body { display:flex; flex-direction:column; min-height:100vh; }
.aw-main { display:flex; flex-direction:column; flex-grow:1; width:100%; }
.aw-article { color:#4b5563; }
.aw-article img { border-radius:.5rem; box-shadow:0 1px 2px rgb(0 0 0/.05); max-width:100%; height:auto; }
.aw-article table td:first-child { white-space:nowrap; font-weight:600; padding-right:2rem; }
.aw-wrap { width:100%; max-width:50rem; margin:1.5rem auto 3rem; padding:2rem; min-height:60vh; }
.aw-h1 { font-size:1.875rem; font-weight:600; color:#111827; margin-bottom:1rem; }
@media (min-width:1024px){ .aw-h1{ font-size:2.25rem; } }
.aw-prose { line-height:1.9; }
.aw-prose h1{font-size:1.875rem;font-weight:600;color:#111827;margin:0 0 1rem}
.aw-prose h2{font-size:1.5rem;font-weight:600;color:#1f2937;margin:2rem 0 .75rem}
.aw-prose h3{font-size:1.25rem;font-weight:600;color:#374151;margin:1.5rem 0 .5rem}
.aw-prose p{margin:0 0 1rem}
.aw-prose ul{list-style:disc;padding-left:1.5rem;margin:0 0 1rem}
.aw-prose ol{list-style:decimal;padding-left:1.5rem;margin:0 0 1rem}
.aw-prose a{color:var(--color-primary);text-decoration:underline}
.aw-prose table{border-collapse:collapse;width:100%;margin-bottom:1rem}
.aw-prose th,.aw-prose td{border-bottom:1px solid rgba(0,0,0,.12);padding:.6rem .75rem;text-align:left}
.aw-prose blockquote{border-left:4px solid #e5e7eb;padding-left:1rem;color:#6b7280;margin:0 0 1rem}
.aw-prose pre{background:#f3f4f6;padding:1rem;border-radius:4px;margin-bottom:1rem;overflow-x:auto}
.aw-prose hr{margin:2rem 0;border-color:#e5e7eb}
.aw-hero{background-color:#6b7280;background-size:cover;background-position:center;min-height:100vh}

/* ヘッダー内ドロワー：CDN 版 daisyUI で高さが画面全体に伸びるのを防ぐ */
.navbar > .drawer { display:block; width:auto; height:auto; min-height:0; }
.navbar > .drawer > .drawer-content { height:auto; flex-direction:row; align-items:center; }
.navbar > .drawer > .drawer-toggle { position:absolute; width:0; height:0; }
.aw-prose a.btn{text-decoration:none}
.aw-prose h4{font-size:1rem;font-weight:600;color:#4b5563;margin:0 0 .75rem}
.aw-prose h2 + h3, .aw-prose h2 + h4{margin-top:0}

/* ───── トースト（画像つきカード）─────
   本文 Markdown に画像を入れると、.jpg/.png/.webp は上部のカバー、.svg はロゴとして表示する。
   配色は Ahwyn CMS のロゴ（#D85A30）に合わせる。 */
.site-toast .site-alert {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0 0 0.85rem;
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 3px solid #d85a30;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(74, 27, 12, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  animation: aw-toast-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes aw-toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-toast .site-alert { animation: none; }
}
.site-toast .site-alert__text { display: block; padding: 0 0.9rem; font-size: 0.78rem; line-height: 1.55; }
.site-toast .site-alert__text strong { display: inline-block; margin-bottom: 0.1rem; font-size: 0.88rem; color: #4a1b0c; }
.site-toast .site-alert__text img { display: block; box-shadow: none; }
.site-toast .site-alert__text img[src$=".jpg"],
.site-toast .site-alert__text img[src$=".jpeg"],
.site-toast .site-alert__text img[src$=".png"],
.site-toast .site-alert__text img[src$=".webp"] {
  width: calc(100% + 1.8rem);
  max-width: none;
  margin: 0 -0.9rem 0.6rem;
  height: 5.5rem;
  object-fit: cover;
  object-position: top left;
  border-radius: 0;
}
.site-toast .site-alert__text img[src$=".svg"] {
  height: 1.25rem;
  width: auto;
  margin: 0 0 0.4rem;
  border-radius: 0;
}
.site-toast .site-alert__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.6rem 0 0 0.9rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #d85a30;
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.site-toast .site-alert__link::after { content: "→"; transition: transform 0.2s; }
.site-toast .site-alert__link:hover { background: #993c1d; }
.site-toast .site-alert__link:hover::after { transform: translateX(3px); }
.site-toast .site-alert__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  font-size: 0.8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

/* トーストの幅をコンパクトに */
.site-toast { width: min(92vw, 290px); }

/* 本文内のボタン：本文リンク色（.aw-prose a）に上書きされないよう、色を明示する。
   通常時は文字＝アクセント色、ホバー時は背景＝アクセント色・文字＝その上の文字色。 */
.aw-prose a.btn { text-decoration: none; color: var(--color-base-content); }
.aw-prose a.btn:hover { color: var(--color-base-content); }
.aw-prose a.btn-soft.btn-secondary { color: color-mix(in oklab, var(--color-secondary) 55%, black); }
.aw-prose a.btn-soft.btn-secondary:hover {
  background-color: color-mix(in oklab, var(--color-secondary) 80%, black);
  border-color: color-mix(in oklab, var(--color-secondary) 80%, black);
  color: #fff;
}
.aw-prose a.btn-disabled, .aw-prose a.btn-disabled:hover { color: color-mix(in oklab, var(--color-base-content) 40%, transparent); }

/* スマホ幅：トーストはヘッダー・見出しを隠さないよう下部（FAB の上）に薄いカードで出す */
@media (max-width: 640px) {
  .site-toast {
    top: auto;
    bottom: 5rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }
  .site-toast .site-alert__text img[src$=".jpg"],
  .site-toast .site-alert__text img[src$=".jpeg"],
  .site-toast .site-alert__text img[src$=".png"],
  .site-toast .site-alert__text img[src$=".webp"] { display: none; }
  .site-toast .site-alert { padding: 0.8rem 0 0.75rem; }
  .site-toast .site-alert__text { padding-right: 2.4rem; }
}

/* ═════════ 演出（エフェクト・ページ切り替え）═════════
   動きを減らす設定（prefers-reduced-motion）の人にはすべて無効。 */

/* ── ページ切り替え：CSS の View Transitions（別ページへの移動でも滑らかに切り替わる）。
   ヘッダーは動かさず、本文だけがふわっと入れ替わる。非対応ブラウザは通常の移動のまま。 */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-topfix { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: 0.22s ease-in both awPageOut; }
  ::view-transition-new(root) { animation: 0.5s 0.06s cubic-bezier(0.2, 0.7, 0.2, 1) both awPageIn; }
  ::view-transition-group(site-header) { animation-duration: 0.3s; }
  /* View Transitions 非対応のブラウザには、読み込み時のフェードインだけ付ける */
  @supports not (view-transition-name: none) {
    .aw-main { animation: awPageIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  }
}
@keyframes awPageOut { to { opacity: 0; transform: translateY(-8px); } }
@keyframes awPageIn { from { opacity: 0; transform: translateY(14px); } }

/* ── スクロール出現（JS が .fx-reveal を付け、画面に入ったら .fx-in で再生）── */
.fx-reveal { opacity: 0; }
.fx-reveal.fx-in { animation: awUp 0.7s both cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes awUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.aw-prose h2.fx-in { animation: awUp 0.7s both cubic-bezier(0.2, 0.7, 0.2, 1), awBar 0.9s 0.1s both ease-out; background: linear-gradient(var(--color-primary), var(--color-primary)) left bottom / 0 3px no-repeat; padding-bottom: 0.3rem; }
@keyframes awBar { to { background-size: 3.5rem 3px; } }

/* ── 読了バー・ヘッダーの影 ── */
#fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--color-primary), color-mix(in oklab, var(--color-primary) 55%, #38bdf8));
  pointer-events: none;
}
.site-topfix .navbar { transition: box-shadow 0.3s ease, background-color 0.3s ease; }
.site-topfix .navbar.is-scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12); }

/* ── TOP のヒーロー：背景がゆっくりズーム（Ken Burns）→ カードと文字が順に浮かぶ → 下向きの矢印 ── */
.aw-hero { position: relative; overflow: hidden; isolation: isolate; }
.aw-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: inherit; /* 背景画像（inline style）をそのまま使う */
  transform-origin: 60% 40%;
}
.aw-hero .hero-content > div { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (prefers-reduced-motion: no-preference) {
  .aw-hero::before { animation: awKenBurns 24s ease-in-out infinite alternate; }
  .aw-hero .hero-content > div { animation: awHeroCard 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .aw-hero h1 { animation: awUp 0.9s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .aw-hero h2 { animation: awUp 0.9s 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .aw-hero .hero-content > div > div { animation: awUp 0.9s 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .aw-hero .hero-content > div > a { animation: awUp 0.9s 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .aw-hero .hero-content > div > a ~ a { animation-delay: 1.15s; }
  .aw-hero::after { animation: awBounce 2s 1.8s ease-in-out infinite; }
}
@keyframes awKenBurns { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes awHeroCard { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: none; } }
.aw-hero::after {
  content: ''; position: absolute; left: 50%; bottom: 1.4rem; width: 14px; height: 14px; margin-left: -7px;
  border-right: 2px solid rgba(31, 41, 55, 0.55); border-bottom: 2px solid rgba(31, 41, 55, 0.55);
  transform: rotate(45deg); opacity: 0.8; pointer-events: none;
}
@keyframes awBounce { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.35; } 50% { transform: translateY(8px) rotate(45deg); opacity: 0.9; } }

/* ── 操作時の動き（ボタン・カード・画像）── */
.btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14); }
.btn:active { transform: translateY(0); box-shadow: none; }
.aw-prose .card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.aw-prose .card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16); }
.aw-prose .card img { transition: transform 0.6s ease; }
.aw-prose .card:hover img { transform: scale(1.04); }
.aw-article img:not(.card img) { transition: transform 0.4s ease, box-shadow 0.4s ease; }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1 !important; animation: none !important; }
  .aw-hero::before, .aw-hero::after { animation: none !important; }
  .btn:hover, .aw-prose .card:hover { transform: none; }
}
