/* tools/export.mjs が Hugo 版 themes/irushiahomes/assets/css/*.css から作ったもの。WordPress 用の追加は wp.css へ */
/* ---- 01-tokens.css ---- */
/* トークン（色・書体・寸法）。ダークは html.dark（appearance.js が付ける） */

:root {
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic UI",
    Meiryo, system-ui, sans-serif;
  --font-lat: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --line: #e1e3ee;
  --line-soft: #eaecf3;
  --ink: #14141c;
  --ink-body: #2c2d38;
  --ink-dim: #5d6073;
  --ink-faint: #8c8fa3;
  --accent: #7458e8;
  --accent-2: #3fb0f5;
  --accent-ink: #ffffff;
  --grad: linear-gradient(100deg, #8a6cf2 0%, #5f8ef0 55%, #3fb6f5 100%);
  --ok: #1f9d63;
  --shadow: 0 10px 30px rgba(36, 30, 90, 0.08);

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 64px);
  --page: 1280px;
  --radius: 14px;
}

html.dark {
  --bg: #0d0e14;
  --surface: #151722;
  --surface-2: #1c1f2d;
  --line: #272b3d;
  --line-soft: #1f2232;
  --ink: #f2f3f8;
  --ink-body: #d6d8e4;
  --ink-dim: #a2a6bb;
  --ink-faint: #6c7086;
  --accent: #a593ff;
  --accent-2: #6cc6ff;
  --accent-ink: #0d0e14;
  --ok: #3ecf8e;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---- 02-base.css ---- */
/* 初期化と基本。各部品の CSS は「要素の余白・装飾は 0 から」という前提で書いてある
   （本文の見出しや段落の余白は 08-article.css の .prose で付け直す） */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6,
p, blockquote, figure, pre, dl, dd, hr {
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ol, ul, menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg, video, iframe, canvas {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: transparent;
}

button {
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(116, 88, 232, 0.22);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* キーボード操作のときだけ出る「本文へスキップ」 */
.ih-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
}

.ih-skip:focus {
  transform: none;
}

/* ---------- レイアウト ---------- */
.ih-container {
  width: min(100%, var(--page));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 記事・一覧ページ。固定ヘッダーの分だけ下げる。ホームと /blog/ は端から端まで使う */
.ih-main {
  flex: 1 0 auto;
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: calc(var(--header-h) + 32px) var(--gutter) 96px;
}

.ih-main.is-wide {
  width: 100%;
  padding: 0;
}

.ih-main.is-wide.is-under-header {
  padding-top: var(--header-h);
}

/* ---------- 小物 ---------- */
.ih-lat,
.ih-date,
.ih-meta {
  font-family: var(--font-lat);
}

.ih-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.ih-center {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.ih-dot-ok {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.18);
  vertical-align: middle;
}

/* アイコン（_partials/icon.html の SVG） */
.ih-ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
}

/* ライト / ダークで出し分けるもの */
.ih-only-dark { display: none; }
html.dark .ih-only-dark { display: inline-flex; }
html.dark .ih-only-light { display: none; }

/* 画面には出さず、読み上げにだけ伝える */
.ih-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- 03-header.css ---- */
/* ヘッダー・全画面メニュー */

.ih-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.ih-header.is-overlay:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: #fff;
}

.ih-header.is-scrolled {
  box-shadow: var(--shadow);
}

html.ih-menu-open .ih-header,
html.ih-menu-open .ih-header.is-overlay:not(.is-scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
  color: var(--ink);
}

.ih-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding-inline: var(--gutter);
}

.ih-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

.ih-logo-mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 4px 14px rgba(116, 88, 232, 0.35);
}

/* 屋根の形の白抜き */
.ih-logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px 7px 7px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 45%, 100% 100%, 64% 100%, 64% 66%, 36% 66%, 36% 100%, 0 100%, 0 45%);
}

.ih-logo-text {
  font-family: var(--font-lat);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ih-gnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.ih-gnav a {
  position: relative;
  padding: 8px 14px;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-lat);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.ih-gnav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ih-gnav a:hover::after,
.ih-gnav a.is-active::after {
  transform: scaleX(1);
}

/* ナビにマウスを乗せると、下からスッと降りてくる説明カード */
.ih-gnav-tip {
  --tx: -50%;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 230px;
  padding: 14px 16px 15px;
  border: 1px solid transparent;
  border-top-width: 3px;
  border-radius: 14px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 18px 40px rgba(30, 20, 80, 0.18);
  color: var(--ink);
  font-family: var(--font-jp);
  letter-spacing: normal;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(var(--tx), -10px) scale(0.97);
  transform-origin: top center;
  transition:
    opacity 0.22s ease,
    transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    visibility 0s linear 0.4s;
}

/* 端のメニューは画面からはみ出さないよう右寄せ */
.ih-gnav a:last-child .ih-gnav-tip {
  --tx: 0%;
  left: auto;
  right: 0;
  transform-origin: top right;
}

.ih-gnav a:hover .ih-gnav-tip,
.ih-gnav a:focus-visible .ih-gnav-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(var(--tx), 0) scale(1);
  transition:
    opacity 0.22s ease,
    transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.15),
    visibility 0s;
}

.ih-gnav-tip-name,
.ih-gnav-tip-desc {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.ih-gnav a:hover .ih-gnav-tip-name,
.ih-gnav a:hover .ih-gnav-tip-desc,
.ih-gnav a:focus-visible .ih-gnav-tip-name,
.ih-gnav a:focus-visible .ih-gnav-tip-desc {
  opacity: 1;
  transform: none;
}

.ih-gnav a:hover .ih-gnav-tip-name { transition-delay: 0.06s; }
.ih-gnav a:hover .ih-gnav-tip-desc { transition-delay: 0.12s; }

.ih-gnav-tip-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
}

.ih-gnav-tip-name svg {
  color: var(--accent);
}

.ih-gnav-tip-desc {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink-dim);
  text-wrap: pretty;
}

.ih-header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ih-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: inherit;
  transition: background 0.2s ease;
}

.ih-icon-btn:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.ih-icon-btn .icon,
.ih-icon-btn svg {
  width: 18px;
  height: 18px;
}

.ih-burger {
  position: relative;
  display: grid;
  place-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(116, 88, 232, 0.35);
}

.ih-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

html.ih-menu-open .ih-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
html.ih-menu-open .ih-burger span:nth-child(2) { opacity: 0; }
html.ih-menu-open .ih-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1023px) {
  .ih-gnav { display: none; }
  .ih-header-tools { margin-left: auto; }
}

/* ---------- 全画面メニュー ---------- */
.ih-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(63, 182, 245, 0.18), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(138, 108, 242, 0.2), transparent 70%),
    var(--surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

html.ih-menu-open .ih-drawer {
  opacity: 1;
  visibility: visible;
}

html.ih-menu-open body {
  overflow: hidden;
}

.ih-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 100%;
  padding: calc(var(--header-h) + 32px) var(--gutter) 48px;
  width: min(100%, var(--page));
  margin-inline: auto;
}

.ih-drawer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 40px;
}

.ih-drawer-nav a {
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, color 0.2s ease;
}

html.ih-menu-open .ih-drawer-nav a {
  transform: none;
  opacity: 1;
}

.ih-drawer-nav a:nth-child(2) { transition-delay: 0.04s; }
.ih-drawer-nav a:nth-child(3) { transition-delay: 0.08s; }
.ih-drawer-nav a:nth-child(4) { transition-delay: 0.12s; }
.ih-drawer-nav a:nth-child(5) { transition-delay: 0.16s; }
.ih-drawer-nav a:nth-child(6) { transition-delay: 0.2s; }

.ih-drawer-en {
  font-family: var(--font-lat);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ih-drawer-nav a:hover .ih-drawer-en {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ih-drawer-ja {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.ih-drawer-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: auto;
}

.ih-drawer-sub a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  text-decoration: none;
}

.ih-drawer-sub a:hover {
  color: var(--accent);
}

/* ---- 04-parts.css ---- */
/* 共通パーツ（セクション見出し・ボタン・マーキー・タグ・ふわっと表示など） */

.ih-sec {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
  overflow: hidden;
}

.ih-sec-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 48px;
}

.ih-sec-en {
  font-family: var(--font-lat);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ih-sec-ja {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ih-sec-ja::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.ih-sec-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* View More などのボタン。
   塗りの錠剤ではなく「英字ラベル＋矢印の丸」の組み合わせ。ホバーで丸がグラデに塗られ、
   ラベル下の線が伸び、矢印が抜けて入れ替わる。矢印は SVG を mask で描くので HTML は空の span でよい。 */
.ih-btn {
  --btn-c: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--btn-c);
  text-decoration: none;
  font-family: var(--font-lat);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ラベルの下線（丸の手前まで） */
.ih-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 74px;
  bottom: 14px;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transform-origin: left;
  transition: opacity 0.3s ease;
}

.ih-btn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 74px;
  bottom: 14px;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}

.ih-btn:hover::before {
  transform: scaleX(1);
}

.ih-btn-arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  color: var(--btn-c);
  transition: border-color 0.35s ease, color 0.35s ease;
}

/* 塗り（ホバーで下から満ちる） */
.ih-btn-arrow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--grad);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}

/* 矢印。box-shadow で同じ形の2本目を左に置き、ホバーで右へ抜けて入れ替わる */
.ih-btn-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 12px;
  margin: -6px 0 0 -9px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16M11 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1);
}

.ih-btn:hover .ih-btn-arrow,
.ih-svc.is-link:hover .ih-btn-arrow {
  border-color: transparent;
  color: #fff;
}

.ih-btn:hover .ih-btn-arrow::before,
.ih-svc.is-link:hover .ih-btn-arrow::before {
  transform: scale(1);
}

.ih-btn:hover .ih-btn-arrow::after,
.ih-svc.is-link:hover .ih-btn-arrow::after {
  animation: ih-arrow-swap 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}

@keyframes ih-arrow-swap {
  0% { transform: translateX(0); }
  45% { transform: translateX(30px); }
  46% { transform: translateX(-30px); }
  100% { transform: translateX(0); }
}

/* 補助ボタン（関連サービス一覧）：ラベルをアクセント色に */
.ih-btn.is-ghost {
  --btn-c: var(--accent);
}

/* ヒーローなど暗い背景の上 */
.ih-btn.is-light {
  --btn-c: #fff;
}

/* 四隅の三角アクセント */
.ih-corner {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  background: var(--grad);
  pointer-events: none;
}

.ih-corner.tl { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.ih-corner.br { right: 0; bottom: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* 横に流れる帯 */
.ih-marquee {
  overflow: hidden;
  padding-block: 10px;
  background: var(--grad);
  white-space: nowrap;
  user-select: none;
}

.ih-marquee-track {
  display: inline-flex;
  animation: ih-marquee 40s linear infinite;
}

.ih-marquee-track span {
  padding-right: 40px;
  font-family: var(--font-lat);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #fff;
}

.ih-marquee-track span::after {
  content: "◆";
  margin-left: 40px;
  font-size: 10px;
  font-style: normal;
  vertical-align: middle;
  opacity: 0.6;
}

@keyframes ih-marquee {
  to { transform: translateX(-50%); }
}

.ih-date {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.ih-tag {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--ink-dim);
}

.ih-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: var(--grad);
  font-family: var(--font-lat);
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
}

.ih-show-sp { display: none; }

@media (max-width: 767px) {
  .ih-hide-sp { display: none; }
  .ih-show-sp { display: flex; }
}

/* スクロールで出す（JS が動くときだけ隠しておく） */
html.ih-js .ih-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.ih-js .ih-reveal.is-in {
  opacity: 1;
  transform: none;
}

html.ih-js .ih-reveal[data-delay="1"] { transition-delay: 0.1s; }
html.ih-js .ih-reveal[data-delay="2"] { transition-delay: 0.2s; }
html.ih-js .ih-reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---- 05-home.css ---- */
/* トップページ：HERO / ABOUT / SERVICE / NEWS / LINKS */

/* ---------- ホーム：HERO ---------- */
.ih-hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #0c0b14;
  color: #fff;
}

.ih-hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7.5s linear;
}

.ih-hero-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}

.ih-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 30, 0.45) 0%, rgba(10, 8, 30, 0) 28%),
    linear-gradient(0deg, rgba(10, 8, 30, 0.75) 0%, rgba(10, 8, 30, 0) 55%),
    linear-gradient(90deg, rgba(40, 20, 110, 0.45) 0%, rgba(40, 20, 110, 0) 60%);
}

.ih-hero-copy {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(120px, 18vh, 200px);
}

.ih-hero-kicker {
  margin: 0 0 14px;
  font-family: var(--font-lat);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.85;
}

.ih-hero-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.2em;
  margin: 0;
  font-family: var(--font-lat);
  font-size: clamp(56px, 11vw, 168px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 8px 40px rgba(20, 10, 60, 0.35);
}

.ih-hero-title span:last-child {
  background: linear-gradient(100deg, #d9ccff 0%, #9fd8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ih-hero-lead {
  margin: 22px 0 0;
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ih-hero-news {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(640px, calc(100% - 2 * var(--gutter) - 90px));
  padding: 8px 22px 8px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #14141c;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}

.ih-hero-news:hover {
  transform: translateY(-2px);
}

.ih-hero-news-label {
  flex: none;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ih-hero-news-date {
  flex: none;
  font-family: var(--font-lat);
  font-size: 12.5px;
  font-weight: 700;
  color: #7458e8;
}

.ih-hero-news-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.ih-hero-dots {
  position: absolute;
  right: var(--gutter);
  bottom: 54px;
  display: flex;
  gap: 8px;
}

.ih-hero-dots button {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.3s ease, width 0.3s ease;
}

.ih-hero-dots button.is-active {
  width: 48px;
  background: #fff;
}

.ih-hero-scroll {
  position: absolute;
  right: calc(var(--gutter) + 4px);
  bottom: 110px;
  padding-bottom: 70px;
  writing-mode: vertical-rl;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #fff;
  text-decoration: none;
}

.ih-hero-scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 60px;
  background: linear-gradient(#fff, transparent);
  animation: ih-scroll 2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes ih-scroll {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 767px) {
  .ih-hero-dots { bottom: 104px; left: var(--gutter); right: auto; }
  .ih-hero-scroll { display: none; }
  .ih-hero-news { max-width: calc(100% - 2 * var(--gutter)); right: var(--gutter); }
  .ih-hero-copy { bottom: 150px; }
}

/* ---------- ホーム：ABOUT ---------- */
.ih-bgword {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-lat);
  font-size: clamp(90px, 16vw, 260px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
}

.ih-about-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}

.ih-about-catch {
  margin: 0 0 24px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.5;
  color: var(--ink);
}

.ih-about-text {
  margin: 0 0 40px;
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--ink-body);
}

.ih-about-visual {
  position: relative;
  aspect-ratio: 9 / 11;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.ih-about-visual > img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.ih-about-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ih-about-card img {
  width: 56px;
  height: 56px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.ih-about-card-role {
  display: block;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.ih-about-card-name {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
}

@media (max-width: 860px) {
  .ih-about-grid { grid-template-columns: 1fr; }
  .ih-about-visual { aspect-ratio: 4 / 3; }
}

/* ---------- ホーム：SERVICE ---------- */
.ih-service {
  background: var(--surface);
}

.ih-service .ih-sec-title {
  margin-bottom: 40px;
}

.ih-services {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 56px;
}

.ih-svc {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ih-svc.is-link:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(60, 50, 140, 0.16);
}

.ih-svc:nth-child(even) .ih-svc-media {
  order: 2;
}

.ih-svc-media {
  position: relative;
  min-height: 200px;
  /* サイトのスクショを使うので、ヘッダーとファーストビューが見える上端基準で切る */
  background: var(--grad) center top / cover no-repeat;
  transition: transform 0.6s ease;
}

.ih-svc.is-link:hover .ih-svc-media {
  transform: scale(1.04);
}

.ih-svc-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 36px clamp(24px, 4vw, 52px);
  background: var(--bg);
}

.ih-svc-no {
  position: absolute;
  top: 14px;
  right: 24px;
  font-family: var(--font-lat);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
}

.ih-svc-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ih-svc-icon {
  flex: none;
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ih-svc-icon.is-letter {
  display: grid;
  place-items: center;
  background: var(--grad);
  font-family: var(--font-lat);
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}

.ih-svc-en {
  display: block;
  font-family: var(--font-lat);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.ih-svc-name {
  margin: 0;
  font-family: var(--font-lat);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ih-svc-desc {
  margin: 0;
  max-width: 34em;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-dim);
}

.ih-svc-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ih-svc-cover:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.ih-svc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin-top: 6px;
}

/* 紹介記事へのリンク。カードを覆う ih-svc-cover より上に出して、こちらだけ別に押せるようにする */
.ih-svc-more {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.ih-svc-more:hover {
  text-decoration-thickness: 2px;
}

.ih-svc-open {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-lat);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.ih-svc-open .ih-btn-arrow {
  width: 40px;
  height: 40px;
}

.ih-svc-code {
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 767px) {
  .ih-svc { grid-template-columns: 1fr; }
  .ih-svc:nth-child(even) .ih-svc-media { order: 0; }
  .ih-svc-media { min-height: 160px; }
  .ih-svc-no { font-size: 44px; }
}

/* ---------- ホーム：NEWS ／ /blog/ のカード ---------- */
.ih-news {
  background:
    radial-gradient(40% 40% at 100% 0%, rgba(63, 182, 245, 0.1), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(138, 108, 242, 0.1), transparent 70%),
    var(--bg);
}

.ih-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.ih-news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.ih-news-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface-2);
}

.ih-news-thumb img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ih-news-card:hover .ih-news-thumb img {
  transform: scale(1.05);
}

/* カード本体（_partials/card.html）。日付・カテゴリとタイトルをまとめる */
.ih-news-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ih-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ih-news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.65;
  color: var(--ink);
  transition: color 0.2s ease;
}

.ih-news-card:hover .ih-news-title {
  color: var(--accent);
}

.ih-news-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ih-news-list li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.ih-news-list a {
  display: grid;
  grid-template-columns: 110px 130px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s ease;
}

.ih-news-list a:hover {
  background: var(--surface);
}

.ih-news-list .ih-tag {
  justify-self: start;
}

.ih-news-list .ih-tag.is-empty {
  visibility: hidden;
}

.ih-news-list-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 700;
}

.ih-news-list a:hover .ih-news-list-title {
  color: var(--accent);
}

@media (max-width: 1023px) {
  .ih-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ih-news-grid { gap: 22px 14px; }
  .ih-news-title { font-size: 14px; }
  .ih-news-list a {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: 6px 12px;
  }
  .ih-news-list-title {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

/* ---------- ホーム：LINKS ---------- */
.ih-links {
  background: var(--surface);
}

.ih-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ih-link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ih-link-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(60, 50, 140, 0.14);
}

.ih-link-name {
  font-family: var(--font-lat);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.ih-link-card:hover .ih-link-name {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ih-link-note {
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---- 06-blog.css ---- */
/* /blog/ */

.ih-page-hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(63, 182, 245, 0.14), transparent 70%),
    radial-gradient(40% 80% at 0% 100%, rgba(138, 108, 242, 0.14), transparent 70%),
    var(--surface);
}

.ih-page-hero .ih-sec-title {
  margin-bottom: 18px;
}

.ih-page-lead {
  margin: 0;
  padding-bottom: clamp(40px, 6vw, 64px);
  font-size: 15px;
  color: var(--ink-dim);
}

.ih-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 36px;
}

.ih-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-dim);
  transition: all 0.2s ease;
}

.ih-filter button span {
  font-family: var(--font-lat);
  font-size: 11px;
  color: var(--ink-faint);
}

.ih-filter button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ih-filter button.is-active {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

.ih-filter button.is-active span {
  color: rgba(255, 255, 255, 0.8);
}

.ih-filter .ih-filter-search {
  margin-left: auto;
}

.ih-filter .ih-filter-search .icon,
.ih-filter .ih-filter-search svg {
  width: 15px;
  height: 15px;
}

.ih-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
}

/* 一番新しい記事だけ横長に大きく */
.ih-blog-grid:not(.is-filtered) .ih-news-card.is-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.ih-blog-grid:not(.is-filtered) .is-feature .ih-news-title {
  -webkit-line-clamp: 3;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.5;
}

.ih-news-dek {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-dim);
}

.ih-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-faint);
}

@media (max-width: 1023px) {
  .ih-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .ih-blog-grid { gap: 28px 14px; }
  .ih-blog-grid:not(.is-filtered) .ih-news-card.is-feature {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ih-filter .ih-filter-search { margin-left: 0; }
}

@media (max-width: 479px) {
  .ih-blog-grid { grid-template-columns: 1fr; }
}

/* ---- 07-footer.css ---- */
/* フッター */

.ih-footer {
  margin-top: 0;
  background: #101019;
  color: #c9cbdb;
}

.ih-marquee.is-footer {
  padding-block: 28px 8px;
  background: transparent;
}

.ih-marquee.is-footer span {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
}

.ih-marquee.is-footer span::after {
  content: none;
}

.ih-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  padding-block: 48px;
}

.ih-footer .ih-logo {
  color: #fff;
}

.ih-footer-brand p {
  margin: 14px 0 20px;
  font-size: 13.5px;
  color: #9a9db2;
}

.ih-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ih-footer-social a {
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-family: var(--font-lat);
  font-size: 12.5px;
  font-weight: 700;
  color: #e6e7f0;
  text-decoration: none;
  transition: background 0.2s ease;
}

.ih-footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ih-footer-nav {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
}

.ih-footer-nav div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ih-footer-head {
  margin-bottom: 6px;
  font-family: var(--font-lat);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8f7cf5;
}

.ih-footer-nav a {
  font-size: 13.5px;
  color: #c9cbdb;
  text-decoration: none;
}

.ih-footer-nav a:hover {
  color: #fff;
}

/* いちばん下の帯。線は文字の幅にそろえる（外枠の余白には引かない） */
.ih-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ih-footer-bottom .ih-footer-credit {
  text-align: right;
}

.ih-footer-credit span {
  white-space: nowrap;
}

.ih-footer-bottom p {
  margin: 0;
  font-family: var(--font-lat);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #7d8096;
}

.ih-footer-bottom a {
  color: #a7a9bd;
}

@media (max-width: 767px) {
  .ih-footer-grid { grid-template-columns: 1fr; }
}

/* 訪問者数（moe-counter-cf の画像） */
.ih-footer-counter {
  width: auto;
  height: 32px;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* 右下の「トップへ戻る」ボタンが最後の行に重ならないよう、下に余白 */
.ih-footer {
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .ih-footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .ih-footer-bottom .ih-footer-credit {
    text-align: center;
  }
  .ih-footer-counter {
    order: -1;
  }
}

/* ---- 08-article.css ---- */
/* 記事ページ（page.html）と、本文を持つセクションページ（section.html）。
   本文は .prose。目次は PC では右に固定、スマホでは本文の上で開閉する */

/* ---------- 見出し部分 ----------
   本文と左端をそろえる。目次がある記事（PC 幅）は、本文＋目次の幅に合わせる */
.ih-article-head {
  max-width: 46rem;
  margin: 0 auto 40px;
}

@media (min-width: 1101px) {
  .ih-article.has-toc .ih-article-head {
    max-width: calc(46rem + 56px + 240px);
  }
}

.ih-article-hero {
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.ih-article-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.ih-article-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}

.ih-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin-top: 16px;
  font-family: var(--font-lat);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

.ih-article-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ih-article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ih-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}

a.ih-badge:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 閲覧数・いいね（counters.js が数字を入れる。入るまでは点滅） */
.ih-count {
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
}

.ih-count.is-loading {
  width: 3ch;
  height: 0.9em;
  border-radius: 99px;
  background: var(--line);
  animation: ih-count-pulse 1.2s ease-in-out infinite;
}

@keyframes ih-count-pulse { 50% { opacity: 0.4; } }

.ih-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--font-lat);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ih-like:hover,
.ih-like.is-liked {
  border-color: #e0567a;
  color: #e0567a;
}

.ih-like .ih-like-on { display: none; }
.ih-like.is-liked .ih-like-on { display: inline-block; }
.ih-like.is-liked .ih-like-off { display: none; }

/* ---------- 本文＋目次 ---------- */
.ih-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 46rem);
  justify-content: center;
  gap: 56px;
}

.ih-article-layout.has-toc {
  grid-template-columns: minmax(0, 46rem) 240px;
}

.ih-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  order: 2;
}

.ih-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
  list-style: none;
  cursor: pointer;
}

.ih-toc summary::-webkit-details-marker { display: none; }

.ih-toc summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.ih-toc details[open] summary::after {
  transform: rotate(-135deg);
}

.ih-toc ul ul {
  padding-left: 12px;
}

.ih-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ih-toc a:hover,
.ih-toc a.is-current {
  border-left-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 1100px) {
  .ih-article-layout.has-toc {
    grid-template-columns: minmax(0, 46rem);
    gap: 0;
  }
  .ih-toc {
    position: static;
    max-height: none;
    order: 0;
    margin-bottom: 32px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    background: var(--surface);
  }
  .ih-toc summary { padding-bottom: 0; }
  .ih-toc details[open] summary { padding-bottom: 10px; }
}

/* ---------- 本文 ---------- */
.prose {
  min-width: 0;
  /* 長い URL などで横にはみ出さないよう、本文だけはどこでも折り返せるようにする */
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 2.05;
  color: var(--ink-body);
}

.prose > :first-child { margin-top: 0; }

/* 本文の要素の装飾は :where() で詳細度を下げ、本文の中に置いた部品（ショートコード）の指定が勝つようにする */
.prose :where(p, ul, ol, blockquote, pre, table, figure, .highlight, details) {
  margin-block: 1.2em;
}

.prose :where(h1, h2, h3, h4) {
  position: relative;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.5;
  text-wrap: pretty;
}

.prose h1 {
  margin: 2em 0 0.8em;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
}

.prose h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 2.4em 0 0.9em;
  font-size: 24px;
  font-weight: 900;
}

.prose h2::before {
  content: "";
  width: 6px;
  height: 24px;
  background: var(--accent);
  flex: none;
}

.prose h3 {
  margin: 2em 0 0.7em;
  font-size: 19px;
  font-weight: 700;
}

.prose h4 {
  margin: 1.8em 0 0.6em;
  font-size: 16.5px;
  font-weight: 700;
}

/* 見出しの横に出る「#」（render-heading.html） */
.prose .ih-anchor {
  margin-left: 8px;
  font-family: var(--font-lat);
  font-weight: 600;
  color: var(--ink-faint);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.prose .ih-anchor::after {
  content: "#";
}

.prose :where(h1, h2, h3, h4):hover .ih-anchor,
.prose .ih-anchor:focus-visible {
  opacity: 1;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose :where(a:not([class])) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose :where(a:not([class])):hover {
  color: var(--ink);
}

.prose :where(ul:not([class])) {
  padding-left: 1.5em;
  list-style: disc;
}

.prose :where(ol:not([class])) {
  padding-left: 1.6em;
  list-style: decimal;
}

.prose :where(li) {
  margin-block: 0.35em;
}

.prose :where(li > ul, li > ol) {
  margin-block: 0.35em;
}

.prose :where(ul, ol) > li::marker {
  color: var(--accent);
}

.prose blockquote {
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.prose blockquote > :first-child { margin-top: 0; }
.prose blockquote > :last-child { margin-bottom: 0; }

.prose code {
  padding: 2px 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.85em;
  color: var(--ink);
}

.prose pre {
  position: relative;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.8;
}

.prose pre code {
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
}

.prose .highlight pre {
  margin: 0;
}

/* コードのコピー（article.js が付ける） */
.ih-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.ih-codewrap {
  position: relative;
}

.ih-codewrap:hover .ih-copy,
.ih-copy:focus-visible,
.ih-copy.is-done {
  opacity: 1;
}

.ih-copy.is-done {
  color: var(--ok);
}

.prose hr {
  margin-block: 2.6em;
  border-top: 1px solid var(--line);
}

.prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.8;
}

.prose th,
.prose td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.prose thead th {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.prose img {
  margin-inline: auto;
}

.prose p > img,
.prose figure img {
  border: 1px solid var(--line);
}

.prose figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: center;
}

.prose iframe {
  max-width: 100%;
}

.prose kbd {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: var(--surface);
  font-size: 0.85em;
}

/* ---------- 本文の下 ---------- */
.ih-article-foot {
  max-width: 46rem;
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 目次がある記事（PC 幅）は、本文の列に左端をそろえる */
@media (min-width: 1101px) {
  .ih-article.has-toc .ih-article-foot {
    max-width: calc(46rem + 56px + 240px);
  }
  .ih-article.has-toc .ih-article-foot > * {
    max-width: 46rem;
  }
}

.ih-author {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ih-author img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.ih-author-role {
  font-family: var(--font-lat);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
}

.ih-author-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.ih-author-bio {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
  white-space: pre-line;
}

.ih-author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  font-family: var(--font-lat);
  font-size: 12px;
  font-weight: 700;
}

.ih-author-links a {
  color: var(--accent);
}

.ih-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ih-share-label {
  margin-right: 6px;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}

.ih-share a,
.ih-share button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ih-share a:hover,
.ih-share button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 前後の記事 */
.ih-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ih-pn a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.ih-pn a:hover {
  border-color: var(--accent);
}

.ih-pn .is-next {
  grid-column: 2;
  text-align: right;
}

.ih-pn-label {
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}

.ih-pn-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 640px) {
  .ih-pn { grid-template-columns: 1fr; }
  .ih-pn .is-next { grid-column: 1; }
}

/* 関連記事 */
.ih-related-title {
  margin-bottom: 16px;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--ink-faint);
}

.ih-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .ih-related-grid { grid-template-columns: 1fr; }
}

/* ---- 09-components.css ---- */
/* 一覧ページ・ショートコード・検索など、ページをまたいで使う部品 */

/* ---------- 一覧ページ（section.html / term.html / taxonomy.html） ---------- */
.ih-list-head {
  max-width: 920px;
  margin: 0 auto 32px;
}

.ih-list-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ih-list-kicker {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-lat);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.ih-list-lead {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-dim);
}

.ih-list {
  max-width: 920px;
  margin: 0 auto;
}

.ih-list + .ih-list,
.ih-prose-block + .ih-list {
  margin-top: 48px;
}

.ih-prose-block {
  max-width: 46rem;
  margin: 0 auto;
}

/* 年の見出し */
.ih-year {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 36px 0 4px;
  font-family: var(--font-lat);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-faint);
}

.ih-year::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: var(--line);
}

.ih-year:first-child {
  margin-top: 0;
}

.ih-row {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ih-row.is-noimg {
  grid-template-columns: minmax(0, 1fr);
}

.ih-row-thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-2);
}

.ih-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ih-row:hover .ih-row-thumb img {
  transform: scale(1.04);
}

.ih-row-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ih-row-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  transition: color 0.15s ease;
}

.ih-row:hover .ih-row-title {
  color: var(--accent);
}

.ih-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ih-row-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 680px) {
  .ih-row {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }
  .ih-row-title { font-size: 15px; }
  .ih-row-desc { display: none; }
}

/* カテゴリ一覧 */
.ih-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ih-terms a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ih-terms a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ih-terms span {
  font-family: var(--font-lat);
  font-size: 12px;
  color: var(--ink-faint);
}

/* ページ送り */
.ih-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.ih-pager a,
.ih-pager span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-family: var(--font-lat);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ih-pager a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ih-pager .is-current {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- alert ---------- */
.ih-alert {
  display: flex;
  gap: 12px;
  margin-block: 1.4em;
  padding: 14px 18px;
  border-left: 4px solid var(--alert-icon, var(--accent));
  background: var(--alert-bg, color-mix(in srgb, var(--accent) 9%, var(--surface)));
  color: var(--alert-text, var(--ink-body));
  line-height: 1.9;
}

.ih-alert-icon {
  flex: none;
  padding-top: 0.25em;
  color: var(--alert-icon, var(--accent));
  font-size: 18px;
}

.ih-alert-body {
  min-width: 0;
}

.ih-alert-body > :first-child { margin-top: 0; }
.ih-alert-body > :last-child { margin-bottom: 0; }

.ih-alert-body a {
  color: inherit;
}

/* ---------- carousel ---------- */
.ih-carousel {
  position: relative;
  margin-block: 1.6em;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.ih-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.ih-carousel-track::-webkit-scrollbar {
  display: none;
}

.ih-carousel-track > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
}

.ih-carousel-track img {
  width: 100%;
  max-height: 520px;
  margin: 0;
  border: none;
  object-fit: contain;
}

.ih-carousel-btn {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 18px;
  transform: translateY(-50%);
  transition: background 0.15s ease;
}

.ih-carousel-btn:hover { background: rgba(0, 0, 0, 0.7); }
.ih-carousel-btn.is-prev { left: 10px; }
.ih-carousel-btn.is-next { right: 10px; }

.ih-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.ih-carousel-dots button {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
}

.ih-carousel-dots button.is-active {
  background: #fff;
}

/* ---------- YouTube（クリックするまで iframe を読まない） ---------- */
.ih-yt {
  position: relative;
  display: block;
  width: 100%;
  margin-block: 1.6em;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000 center / cover no-repeat;
  cursor: pointer;
}

.ih-yt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 35%);
}

.ih-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(20, 20, 28, 0.82);
  transform: translate(-50%, -50%);
  transition: background 0.15s ease;
}

.ih-yt-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.ih-yt:hover .ih-yt-play {
  background: #f00;
}

.ih-yt-label {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 1;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: left;
}

.ih-yt iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* ---------- toolgrid ---------- */
.ih-toolgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-block: 1.4em;
}

.ih-toolgrid > * {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}

.ih-toolgrid a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.ih-toolgrid a:hover {
  text-decoration: underline;
}

/* ---------- button / github / article カード（ショートコード） ---------- */
.prose a.ih-sc-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.prose a.ih-sc-button:hover {
  color: #fff;
  filter: brightness(1.08);
}

.prose a.ih-card-link {
  display: block;
  margin-block: 1.4em;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.prose a.ih-card-link:hover {
  border-color: var(--accent);
  color: inherit;
}

.ih-card-link-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.ih-card-link-title {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.ih-card-link-desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ---------- 検索（search.js） ---------- */
.ih-search {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh var(--gutter) 24px;
  background: rgba(10, 10, 20, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ih-search-box {
  display: flex;
  flex-direction: column;
  width: min(100%, 640px);
  max-height: 76vh;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.ih-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
}

.ih-search-bar input {
  flex: 1;
  min-width: 0;
  height: 58px;
  font-size: 17px;
  color: var(--ink);
  outline: none;
}

.ih-search-bar input::placeholder {
  color: var(--ink-faint);
}

.ih-search-close {
  padding: 2px 8px;
  border: 1px solid var(--line);
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}

.ih-search-results {
  overflow-y: auto;
}

.ih-search-results a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.ih-search-results a:hover,
.ih-search-results a.is-active {
  background: var(--surface-2);
}

.ih-search-results strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ih-search-results span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ih-search-results mark {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: inherit;
}

.ih-search-empty {
  padding: 20px;
  font-size: 14px;
  color: var(--ink-dim);
}

html.ih-search-open body {
  overflow: hidden;
}

/* ---------- トップへ戻る ---------- */
/* 右下の共通ウィジェット（56px のボタン）の真上に置く */
.ih-totop {
  position: fixed;
  right: 26px;
  bottom: 88px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-dim);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s, border-color 0.15s ease, color 0.15s ease;
}

.ih-totop.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.15s ease, color 0.15s ease;
}

.ih-totop:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- 404 ---------- */
.ih-404 {
  max-width: 640px;
  margin: 0 auto;
  padding-block: 40px;
  text-align: center;
}

.ih-404-code {
  font-family: var(--font-lat);
  font-size: clamp(72px, 16vw, 140px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ih-404 h1 {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 900;
}

.ih-404 p {
  margin-top: 14px;
  color: var(--ink-dim);
}

.ih-404 .ih-btn {
  margin-top: 32px;
}

/* ---------- 関連サービスページ（content/related の HTML カード） ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.related-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

a.related-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.related-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 0;
  object-fit: cover;
  margin: 0;
}

.related-icon-emoji {
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.related-card-body {
  min-width: 0;
  flex: 1 1 auto;
}

.related-card-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

a.related-card:hover .related-card-name {
  color: var(--accent);
}

.related-card-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-dim);
}

.related-card-desc code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* ---------- 本文の画像の拡大表示（site.js） ---------- */
.ih-zoom {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 14, 0.86);
  cursor: zoom-out;
  animation: ih-zoom-in 0.2s ease;
}

.ih-zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes ih-zoom-in {
  from { opacity: 0; }
}

/* ---- 10-splash.css ---- */
/* ---------- ロード画面（トップページの最初。読み込みが終わるまで） ----------
   html.ih-splash-on のときだけ出る（付けるのは _partials/head.html の先読みスクリプト）。
   0.2s 1字ずつ下からせり上がる → 1.1s 線が伸びる → 1.4s 小見出し。
   文字は薄い状態で出て、読み込みの進み具合（--p、0〜1）に合わせて左から色づく。
   読み込みが済んで 2.4s 以上たったら、_partials/splash.html の JS が .is-leave を付けて上へ抜ける。 */
.ih-splash {
  display: none;
}

html.ih-splash-on body {
  overflow: hidden;
}

html.ih-splash-on .ih-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #0b0a10;
  color: #fff;
  cursor: pointer;
  /* JS が止まったときの保険。普段は JS が先に（最大 15 秒で）片付ける */
  animation: ih-splash-out 0.8s ease 16s forwards;
}

.ih-splash.is-leave {
  animation: ih-splash-out 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.ih-splash.is-skip {
  animation: ih-splash-out 0.4s ease forwards;
}

.ih-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ih-splash.is-leave .ih-splash-inner {
  animation: ih-splash-lift 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

/* 1字ずつ、見えない枠の下からせり上がる。薄い文字と色の付いた文字を同じ位置に重ねる */
.ih-splash-word {
  display: grid;
  margin: 0;
  padding: 0.04em 0.02em;
  overflow: hidden;
  font-family: var(--font-lat);
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ih-splash-layer {
  grid-area: 1 / 1;
  display: flex;
}

.ih-splash-layer > span {
  display: flex;
}

.ih-splash-layer > span > span {
  display: inline-block;
  transform: translateY(110%);
  animation: ih-splash-rise 0.9s cubic-bezier(0.2, 0.9, 0.1, 1) forwards;
  animation-delay: calc(0.2s + var(--i) * 0.045s);
}

.ih-splash-layer.is-base {
  color: rgba(255, 255, 255, 0.14);
}

/* 色の付いた文字は、--p の位置まで見せる。境目は少しぼかす */
.ih-splash-layer.is-fill {
  --edge: calc(var(--p, 0) * 112%);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--edge) - 12%), transparent var(--edge));
  mask-image: linear-gradient(90deg, #000 calc(var(--edge) - 12%), transparent var(--edge));
}

.ih-splash-layer.is-fill .ih-splash-w2 > span {
  background: linear-gradient(100deg, #c9b8ff 0%, #8fd3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ih-splash-line {
  width: min(320px, 60vw);
  height: 1px;
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleX(0);
  animation: ih-splash-line 1s cubic-bezier(0.7, 0, 0.2, 1) 1.1s forwards;
}

.ih-splash-sub {
  margin: 18px 0 0;
  font-family: var(--font-lat);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: ih-splash-fade 0.9s ease 1.4s forwards;
}

@keyframes ih-splash-rise { to { transform: none; } }
@keyframes ih-splash-line { to { transform: scaleX(1); } }
@keyframes ih-splash-fade { to { opacity: 1; } }
@keyframes ih-splash-lift { to { transform: translateY(-24px); opacity: 0; } }
@keyframes ih-splash-out { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .ih-splash *,
  .ih-splash-layer > span > span {
    animation-duration: 0.001ms;
    animation-delay: 0s;
  }
}

/* ---- 11-links.css ---- */
/* リンク集（/about/）：半透明のガラスのカード。背景は壁紙をぼかして敷く */

.ih-main.is-links {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 24px) var(--gutter) 80px;
  width: 100%;
}

.ih-links {
  --glass: rgba(255, 255, 255, 0.55);
  --glass-line: rgba(255, 255, 255, 0.6);
  --glass-ink: var(--ink);
  --glass-dim: var(--ink-dim);
  --glass-item: rgba(255, 255, 255, 0.45);
}

html.dark .ih-links {
  --glass: rgba(20, 22, 34, 0.55);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-item: rgba(255, 255, 255, 0.07);
}

.ih-links-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}

.ih-links-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(246, 247, 251, 0.35);
}

html.dark .ih-links-bg::after { background: rgba(5, 6, 12, 0.6); }

/* ---------- 入場画面 ---------- */
.ih-links-enter {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 0;
  background: rgba(5, 6, 12, 0.88);
  color: #f2f3f8;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.6s, visibility 0.6s;
}

.ih-links-enter img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.ih-links-enter strong { font-size: 1.3rem; }
.ih-links-enter span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.ih-links.is-in .ih-links-enter { opacity: 0; visibility: hidden; pointer-events: none; }
.ih-links.is-instant .ih-links-enter { transition: none; }

/* ---------- カード ---------- */
.ih-links-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  border: 1px solid var(--glass-line);
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 20px 60px rgba(10, 10, 30, 0.25);
  overflow: hidden;
  color: var(--glass-ink);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s 0.15s, transform 0.7s 0.15s;
}

.ih-links.is-in .ih-links-card { opacity: 1; transform: none; }
.ih-links.is-instant .ih-links-card { transition: none; }

.ih-links-banner { height: 150px; overflow: hidden; }
.ih-links-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ih-links-head {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0 24px 22px;
  text-align: center;
}

.ih-links-avatar {
  width: 104px;
  height: 104px;
  margin-top: -52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.ih-links-name { margin: 4px 0 0; font-size: 1.5rem; }
.ih-links-name small { font-size: 0.6em; font-weight: 500; color: var(--glass-dim); }

.ih-links-bio {
  margin: 0;
  min-height: 1.6em;
  font-size: 0.85rem;
  color: var(--glass-dim);
}

.ih-links-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.ih-links-social a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--glass-line);
  border-radius: 12px;
  background: var(--glass-item);
  color: var(--glass-ink);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.ih-links-social a:hover { transform: translateY(-2px); background: var(--glass-line); }
.ih-links-social .ih-ico { width: 20px; height: 20px; }

/* ---------- プレイヤー風（最新記事） ---------- */
.ih-links-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px;
  padding: 14px 4px;
  border-block: 1px solid var(--glass-line);
}

.ih-links-track { display: none; flex: 1; min-width: 0; align-items: center; gap: 12px; }
.ih-links-track.is-active { display: flex; }

.ih-links-track img,
.ih-links-cover {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--glass-item);
}

.ih-links-trackinfo { display: grid; min-width: 0; text-decoration: none; color: inherit; }

.ih-links-tracktitle {
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ih-links-trackmeta { font-size: 0.72rem; color: var(--glass-dim); }

.ih-links-ctrl { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--glass-dim); }

.ih-links-ctrl button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--glass-item);
  color: var(--glass-ink);
  cursor: pointer;
}

.ih-links-ctrl button:hover { background: var(--glass-line); }
.ih-links-ctrl .ih-ico { width: 16px; height: 16px; }

/* ---------- リンク ---------- */
.ih-links-group { display: grid; gap: 10px; padding: 20px 20px 4px; }
.ih-links-group:last-child { padding-bottom: 24px; }

.ih-links-title {
  margin: 0 0 2px 4px;
  font-family: var(--font-lat);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--glass-dim);
}

.ih-links-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: var(--glass-item);
  color: var(--glass-ink);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.ih-links-btn:hover { transform: translateY(-2px); background: var(--glass-line); }
.ih-links-btn .ih-ico { flex: none; width: 16px; height: 16px; color: var(--glass-dim); }
.ih-links-text { display: grid; gap: 2px; min-width: 0; }
.ih-links-label { font-weight: 700; font-size: 0.92rem; }
.ih-links-sub { font-size: 0.74rem; line-height: 1.5; color: var(--glass-dim); }

@media (prefers-reduced-motion: reduce) {
  .ih-links-card, .ih-links-enter, .ih-links-btn, .ih-links-social a { transition: none; }
}

/* ---- 12-consent.css ---- */
/* Cookie の同意のバナー（_partials/consent.html）。左下に出す。
   右下は全サイト共通ウィジェットと「先頭へ」のボタンがあるので避ける。
   スマホでは横いっぱいにして、選ぶまではウィジェットの上に重ねる */

.ih-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483001;
  width: min(420px, calc(100vw - 48px));
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-body);
  box-shadow: var(--shadow);
  animation: ih-consent-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ih-consent[hidden] {
  display: none;
}

.ih-consent-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.ih-consent-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
}

.ih-consent-text a {
  color: var(--accent);
}

.ih-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.ih-consent-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.ih-consent-btn.is-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-dim);
}

.ih-consent-btn:hover {
  filter: brightness(1.08);
}

.ih-consent-btn.is-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  filter: none;
}

.ih-consent-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes ih-consent-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 600px) {
  .ih-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .ih-consent-actions .ih-consent-btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ih-consent {
    animation: none;
  }
}

/* ---- 99-motion.css ---- */
/* スクロールバーと、動きを減らす設定。最後に読む */

/* ---------- スクロールバー ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ---------- 動きを減らす設定を尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
