/* ポートフォリオ最上位ホーム（ジャンル一覧）
   配下の「業種別ホームページ見本帳」と同じ書体・生成り・墨・朱でまとめ、上位ページとして一体に見せる */
:root {
  --bg: #F4F2ED;
  --paper: #FFFFFF;
  --ink: #141414;
  --ink-2: #2B2A28;
  --muted: #6E6B66;
  --line: #DCD8CF;
  --accent: #FF5B2E;
  --accent-ink: #C93A12;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --en: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412; --paper: #1D1C1A; --ink: #F1EEE8; --ink-2: #D8D4CC; --muted: #A29E96; --line: #34322E;
    --accent: #FF7A52; --accent-ink: #FF9C7C;
  }
}
:root[data-theme="dark"] {
  --bg: #141412; --paper: #1D1C1A; --ink: #F1EEE8; --ink-2: #D8D4CC; --muted: #A29E96; --line: #34322E;
  --accent: #FF7A52; --accent-ink: #FF9C7C;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); font-size: 15px; line-height: 1.9; letter-spacing: .03em; -webkit-font-smoothing: antialiased; word-break: auto-phrase; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hb-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.hb-skip:focus { top: 12px; }
.hb-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

/* ヘッダー */
.hb-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hb-header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hb-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hb-logo b { display: block; font-family: var(--en); font-size: 18px; letter-spacing: .16em; line-height: 1.2; }
.hb-logo small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .08em; line-height: 1.4; }
.hb-mark { width: 34px; height: 34px; flex: none; fill: var(--ink); }
.hb-mark .o { fill: var(--accent); }
.hb-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.hb-nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.hb-nav span { white-space: nowrap; }
.hb-nav a:hover { color: var(--accent-ink); }
.hb-nav span { color: var(--muted); }

/* 見出し */
.hb-kicker { font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hb-kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hb-hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); }
.hb-hero h1 { font-size: clamp(27px, 8.2vw, 72px); font-weight: 700; line-height: 1.32; letter-spacing: .03em; margin-top: 18px; }
.hb-hero h1 em { font-style: normal; color: var(--accent); }
.hb-hero--sm { padding-bottom: 24px; }
.hb-hero--sm h1 { font-size: clamp(30px, 5vw, 52px); }
.hb-lead { max-width: 720px; margin-top: 22px; font-size: clamp(15px, 1.6vw, 17px); color: var(--ink-2); }
.hb-sub { margin-top: 10px; font-size: 13px; color: var(--muted); }
.hb-head { margin-bottom: 28px; }
.hb-head h2, .hb-about h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.45; margin-top: 12px; }

/* ジャンルカード */
.hb-genres { padding: 8px 0 clamp(56px, 8vw, 96px); }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.hb-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.hb-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(20, 20, 20, .35); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.hb-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 18px); height: clamp(230px, 28vw, 320px); padding: 28px 24px 0; overflow: hidden; background:
  radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%),
  linear-gradient(180deg, color-mix(in srgb, var(--ink) 5%, var(--paper)), var(--paper)); border-bottom: 1px solid var(--line); }
.hb-phone { flex: 0 1 31%; max-width: 170px; aspect-ratio: 390 / 760; border-radius: 18px 18px 0 0; border: 5px solid var(--ink); border-bottom: 0; background: var(--ink); overflow: hidden; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .45); transform: translateY(26px); transition: transform .5s var(--ease); }
.hb-phone:nth-child(2) { transform: translateY(6px); z-index: 1; }
.hb-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12px 12px 0 0; }
.hb-card:hover .hb-phone { transform: translateY(16px); }
.hb-card:hover .hb-phone:nth-child(2) { transform: translateY(-4px); }
.hb-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px); flex: 1; }
.hb-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.hb-label span { font-family: var(--en); font-size: 11px; letter-spacing: .18em; color: var(--muted); font-weight: 600; }
.hb-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.hb-card h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.5; font-weight: 700; }
.hb-desc { color: var(--ink-2); font-size: 14.5px; }
.hb-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.hb-meta li { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.hb-cta { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.hb-arr { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); transition: background .3s, transform .3s var(--ease); }
.hb-card:hover .hb-arr { background: var(--accent); transform: translateX(4px); }

/* このサイトについて・フッター */
.hb-about { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.hb-about p:not(.hb-kicker) { max-width: 720px; margin-top: 16px; color: var(--ink-2); }
.hb-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.hb-footer p + p { margin-top: 8px; }
.hb-foot-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--en); letter-spacing: .16em; margin-bottom: 12px; }
.hb-foot-logo .hb-mark { width: 24px; height: 24px; }

@media (max-width: 640px) {
  .hb-wrap { width: calc(100% - 32px); }
  .hb-logo small { display: none; }
  .hb-nav { gap: 10px; font-size: 12px; }
  .hb-nav a[href="#about"] { display: none; }
  .hb-logo b { font-size: 16px; letter-spacing: .12em; }
  .hb-visual { height: 230px; padding: 22px 14px 0; }
  .hb-phone { border-width: 4px; border-radius: 14px 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
.hb-nw { white-space: nowrap; }
