@charset "utf-8";
/* ==========================================================================
   FALCON CODE 2026
   コンセプト: 「最速の鳥」ハヤブサ × 即レス。
   ブランドの黄色は“動き”と“行動”にだけ使い、それ以外は青みのある白とインディゴで静かに。
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --fog: #F1F3F6;        /* 背景：青みのある白 */
  --ink: #1A1D3A;        /* 文字・濃色面：インディゴ */
  --ink-2: #2A2E52;      /* 濃色面の一段明るい色 */
  --falcon: #FFC401;     /* ブランドの黄（旧テーマのハヤブサと同色） */
  --sky: #DCE5F0;        /* 面・ホバー */
  --slate: #585E78;      /* 補助テキスト */
  --mist: #A9AECB;       /* 濃色面の補助テキスト */
  --line: #CDD5E1;
  --white: #FFFFFF;
  --alert: #B42318;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-wide: "Anybody", "Zen Kaku Gothic New", sans-serif;

  /* 文字サイズ（およそ 1.333 比） */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-hero: clamp(2rem, 0.55rem + 6.7vw, 6.25rem);

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: var(--fs-base);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
main { flex: 1 0 auto; }

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

img, svg, video { display: block; max-width: 100%; height: auto; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }

.section { padding-block: clamp(80px, 10vw, 140px); }
.section--tight { padding-block: clamp(40px, 6vw, 80px) clamp(80px, 10vw, 140px); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 30px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--block { display: flex; width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.text-link::after {
  content: "";
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--falcon) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231A1D3A' d='M13.2 5.3 19.9 12l-6.7 6.7-1.4-1.4 4.3-4.3H4v-2h12.1l-4.3-4.3z'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .25s var(--ease-out);
}
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .25s, box-shadow .25s;
}
.site-header.is-scrolled,
html.is-menu-open .site-header {
  background: rgba(241, 243, 246, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
html.is-menu-open .site-header { background: var(--fog); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: calc(1280px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}
.brand__mark {
  width: 40px; height: 40px;
  padding: 6px;
  border-radius: 12px;
  background: var(--ink);
  fill: var(--falcon);
}
.brand__word {
  font-family: var(--font-wide);
  font-style: italic;
  font-weight: 800;
  font-stretch: 150%;
  font-variation-settings: "wdth" 150;
  font-size: clamp(.875rem, .8rem + .4vw, 1.0625rem);
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}

.global-nav { display: none; }
.global-nav__list { display: flex; gap: 2px; }
.global-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s;
}
.global-nav a:hover { background: var(--sky); }

.header-cta {
  display: none;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--falcon);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.header-cta:hover { background: var(--ink); color: var(--white); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 18px; height: 10px; }
.menu-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--falcon);
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.menu-toggle__bars span:first-child { top: 0; }
.menu-toggle__bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (min-width: 600px) {
  .header-cta { display: inline-block; }
}
@media (min-width: 1024px) {
  .global-nav { display: block; }
  .menu-toggle { display: none; }
}

/* ---------- Drawer（スマホメニュー） ---------- */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: 32px var(--gutter) 40px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.drawer.is-open { opacity: 1; transform: none; }
.drawer[hidden] { display: none; }
.drawer__nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-2);
  font-size: clamp(1.5rem, 1.2rem + 2vw, 2.25rem);
  font-weight: 900;
  text-decoration: none;
}
.drawer__nav a:hover { color: var(--falcon); }
.drawer__note { margin-top: 24px; color: var(--mist); font-size: var(--fs-sm); }
.drawer__falcon {
  position: absolute;
  right: -60px; bottom: -40px;
  width: 260px;
  fill: var(--ink-2);
  pointer-events: none;
  z-index: -1;
}
.drawer :focus-visible { outline-color: var(--falcon); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 900px);
  padding: calc(var(--header-h) + 48px) 0 40px;
  overflow: hidden;
}
.hero__falcon {
  position: absolute;
  z-index: -1;
  top: clamp(40px, 4vw, 70px);
  right: -8vw;
  width: clamp(360px, 56vw, 860px);
  fill: var(--falcon);
}
.hero__trails {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--falcon);
  stroke-width: 2;
  stroke-linecap: round;
}
.hero__trails path { vector-effect: non-scaling-stroke; }

.hero__inner {
  width: 100%;
  max-width: calc(1200px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
  font-feature-settings: "palt" 1;
}
.hero__line { display: block; word-break: keep-all; }
.hero__lead {
  max-width: 34em;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.9;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 40px);
}

.hero__facts {
  display: grid;
  width: calc(100% - var(--gutter) * 2);
  max-width: 1200px;
  margin: clamp(48px, 7vw, 88px) auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -32px rgba(26, 29, 58, .35);
}
.hero__facts li {
  display: grid;
  gap: 4px;
  padding: 20px 24px;
}
.hero__facts li + li { border-top: 1px solid var(--line); }
.hero__facts strong { font-size: var(--fs-lg); font-weight: 900; line-height: 1.4; }
.hero__facts span { color: var(--slate); font-size: var(--fs-sm); line-height: 1.6; }

@media (min-width: 768px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .hero__facts li { padding: 28px 32px; }
  .hero__facts li + li { border-top: 0; border-left: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .hero__falcon { top: calc(var(--header-h) + 8px); right: -30vw; width: 92vw; opacity: .95; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* 読み込み時の一度きりの演出：ハヤブサが急降下してくる */
@media (prefers-reduced-motion: no-preference) {
  .hero__falcon { animation: dive 1.2s var(--ease-out) both; }
  .hero__trails path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: trail .9s .35s var(--ease-out) forwards;
  }
  .hero__trails path:nth-child(2) { animation-delay: .45s; }
  .hero__trails path:nth-child(3) { animation-delay: .55s; }
  .hero__line { animation: rise .9s var(--ease-out) both; }
  .hero__line:nth-child(1) { animation-delay: .15s; }
  .hero__line:nth-child(2) { animation-delay: .3s; }
  .hero__lead,
  .hero__actions,
  .hero__facts { animation: fade .8s .6s var(--ease-out) both; }
}

@keyframes dive {
  from { opacity: 0; transform: translate(14vw, -22vh) rotate(-10deg) scale(.85); }
  to   { opacity: 1; transform: none; }
}
@keyframes trail { to { stroke-dashoffset: 0; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(.4em); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Section heading ---------- */
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head__title {
  font-size: var(--fs-2xl);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .01em;
}
.section-head__lead {
  max-width: 36em;
  margin-top: 12px;
  color: var(--slate);
  font-size: var(--fs-md);
}
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Skills ---------- */
.skill-list { border-bottom: 1px solid var(--line); }
.skill {
  display: grid;
  gap: 20px;
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.skill__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  align-self: start;
}
.skill__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--falcon);
}
.skill__icon .icon { width: 34px; height: 34px; fill: var(--ink); }
.skill__title { font-size: var(--fs-xl); font-weight: 900; line-height: 1.3; }
.skill__tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--falcon);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.5;
}
.skill__body { max-width: 40em; font-size: var(--fs-base); }
.skill__body li {
  position: relative;
  padding-left: 1.25em;
}
.skill__body li + li { margin-top: 6px; }
.skill__body li::before {
  content: "";
  position: absolute;
  left: 0; top: .78em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.skill__body p { margin-top: 14px; color: var(--slate); }

@media (min-width: 900px) {
  .skill { grid-template-columns: minmax(280px, 5fr) 7fr; gap: 40px; }
}

/* ---------- Browser frame（実績の見せ方） ---------- */
.browser {
  --frame: var(--white);
  --bar-dot: var(--line);
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--frame);
  box-shadow: 0 1px 0 rgba(26, 29, 58, .06), 0 24px 40px -28px rgba(26, 29, 58, .45);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding-inline: 12px;
}
.browser__bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bar-dot);
}
.browser__url {
  flex: 1;
  max-width: 420px;
  margin-inline: auto;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--fog);
  color: var(--slate);
  font-size: var(--fs-xs);
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser__screen { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--sky); }
.browser__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .6s var(--ease-out);
}
.browser--large { margin-top: clamp(8px, 2vw, 16px); }
.browser--large .browser__bar { height: 38px; }
.browser--large .browser__screen { aspect-ratio: auto; }
.browser--large .browser__screen img { height: auto; }

/* ---------- Work card ---------- */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
}
.work-card .browser { transition: transform .35s var(--ease-out); }
.work-card:hover .browser { transform: translateY(-6px); }
.work-card:hover .browser__screen img { transform: scale(1.03); }
.work-card__body { display: grid; gap: 2px; }
.work-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .2s;
}
.work-card:hover .work-card__title { text-decoration-color: currentColor; }
.work-card__meta { color: var(--slate); font-size: var(--fs-sm); }

/* ---------- Works（トップ：濃色面） ---------- */
.works { background: var(--ink); color: var(--white); }
.works .section-head__lead,
.works .work-card__meta { color: var(--mist); }
.works .browser { --frame: var(--ink-2); --bar-dot: #4A4F7A; box-shadow: none; }
.works :focus-visible { outline-color: var(--falcon); }

.works-feature { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .works-feature {
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px 48px;
  }
  .works-feature > :first-child { grid-row: span 2; }
  .works-feature > :first-child .work-card__title { font-size: var(--fs-lg); }
  .works-feature > :first-child .browser__screen { aspect-ratio: 4 / 3; }
}

.works-grid {
  display: grid;
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
}
@media (min-width: 640px) { .works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */
.contact { background: var(--falcon); }
.contact__grid { display: grid; gap: 40px; }
.contact__lead { max-width: 26em; margin-top: 16px; font-size: var(--fs-md); font-weight: 500; }
.contact__points { display: grid; gap: 10px; margin-top: 28px; font-weight: 700; }
.contact__points li { display: flex; align-items: center; gap: 12px; }
.contact__points li::before {
  content: "";
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FFC401' d='m9.5 16.2-4-4 1.4-1.4 2.6 2.6 7.1-7.1 1.4 1.4z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.contact__form {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--white);
}
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .contact__intro { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Contact Form 7 */
.wpcf7 .hidden-fields-container { display: none; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7-response-output:empty { display: none; }
.contact__form p { margin: 0; }
.contact__form br { display: none; }
.contact-text { margin-bottom: 20px !important; color: var(--slate); font-size: var(--fs-sm); }
.contact-text-inline,
.contact-item-inline { color: var(--alert); margin-left: 2px; }
.contact-list { display: grid; gap: 22px; }
.contact-item-title { margin-bottom: 8px; font-weight: 700; font-size: .9375rem; }
.contact-item-input { margin: 0; }

.wpcf7-form-control-wrap { display: block; }
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form input[type="url"],
.contact__form textarea,
.contact__form select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--fog);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* iOS のズーム防止 */
  line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contact__form textarea { min-height: 180px; resize: vertical; }
.contact__form ::placeholder { color: #8A90A8; }
.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 196, 1, .55);
}

.wpcf7-radio,
.wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 10px; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 20px 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--fog);
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.wpcf7-list-item input { accent-color: var(--falcon); width: 18px; height: 18px; margin: 0; }
.wpcf7-list-item label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--white); }
.wpcf7-list-item label:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

.contact__form input[type="submit"],
.contact__form button[type="submit"] {
  width: 100%;
  min-height: 60px;
  margin-top: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .2s;
}
.contact__form input[type="submit"]:hover,
.contact__form button[type="submit"]:hover { background: var(--ink-2); }
.contact__form .button { text-align: center; }
.contact__form input[type="submit"]:disabled { opacity: .5; cursor: progress; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }
.wpcf7-not-valid-tip { margin-top: 6px; color: var(--alert); font-size: var(--fs-sm); font-weight: 700; }
.contact__form .wpcf7-not-valid { border-color: var(--alert); }
.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--sky);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { background: #FDECEA; color: var(--alert); }
.wpcf7 form.sent .wpcf7-response-output { background: var(--ink); color: var(--white); }

/* ---------- Page hero（下層ページ） ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(24px, 4vw, 48px);
}
.page-hero--compact { padding-bottom: clamp(16px, 3vw, 32px); }
.page-hero__title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 900;
  line-height: 1.15;
  font-feature-settings: "palt" 1;
}
.page-hero__title--sm { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.3; }
.page-hero__lead { max-width: 34em; margin-top: 16px; color: var(--slate); font-size: var(--fs-md); }
.page-hero__falcon {
  position: absolute;
  z-index: -1;
  top: calc(var(--header-h) - 10px);
  right: max(-80px, -6vw);
  width: clamp(180px, 26vw, 340px);
  fill: var(--falcon);
}
@media (max-width: 639px) {
  .page-hero__falcon { opacity: .35; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--slate);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}
.back-link::before {
  content: "";
  width: 8px; height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.back-link:hover { color: var(--ink); }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(48px, 6vw, 72px);
}
.pagination .page-numbers {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.pagination a.page-numbers:hover { background: var(--sky); }
.pagination .current { background: var(--ink); color: var(--white); }
.pagination .dots { background: transparent; }

.empty { color: var(--slate); }

/* ---------- Work detail ---------- */
.work-detail { padding-bottom: clamp(80px, 10vw, 140px); }
.work-detail__grid {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 5vw, 64px);
}
@media (min-width: 900px) {
  .work-detail__grid { grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: 64px; align-items: start; }
}

.prose { max-width: 40em; font-size: var(--fs-md); line-height: 2; }
.prose > * + * { margin-top: 1.1em; }
.prose a { text-underline-offset: 4px; }
.prose h2, .prose h3 { font-weight: 900; line-height: 1.4; margin-top: 2em; }
.prose img { border-radius: 12px; }

.spec {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
}
.spec__list { display: grid; gap: 18px; margin-bottom: 24px; }
.spec__list dt { color: var(--slate); font-size: var(--fs-sm); font-weight: 700; }
.spec__list dd { font-weight: 700; overflow-wrap: anywhere; }
.spec__list code {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--fog);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9375rem;
}
@media (min-width: 900px) {
  .spec { position: sticky; top: calc(var(--header-h) + 24px); }
}

.post-nav {
  display: grid;
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav__link {
  display: grid;
  gap: 4px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: background-color .2s;
}
.post-nav__link:hover { background: var(--sky); }
.post-nav__link--next { text-align: right; grid-column: -2 / -1; }
.post-nav__label { color: var(--slate); font-size: var(--fs-sm); }
.post-nav__title { font-weight: 700; }

/* ---------- Profile ---------- */
.profile { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(80px, 10vw, 140px); }
.profile__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .profile__grid { grid-template-columns: 5fr 6fr; } }
.profile__photo { position: relative; }
.profile__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
}
.profile__badge {
  position: absolute;
  right: -12px; bottom: -20px;
  width: 104px; height: 104px;
  padding: 18px;
  border-radius: 50%;
  background: var(--ink);
  fill: var(--falcon);
}
.profile__name { display: grid; gap: 6px; }
.profile__name-ja { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); font-weight: 900; line-height: 1.15; }
.profile__name-en {
  font-family: var(--font-wide);
  font-style: italic;
  font-weight: 700;
  font-stretch: 150%;
  font-variation-settings: "wdth" 150;
  font-size: var(--fs-lg);
  color: var(--slate);
  line-height: 1.3;
}
.profile__text { margin-top: 28px; }
.profile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- 404 ---------- */
.not-found {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(48px, 8vw, 120px)) 0 clamp(80px, 10vw, 140px);
}
.not-found__code {
  font-family: var(--font-wide);
  font-style: italic;
  font-weight: 900;
  font-stretch: 150%;
  font-variation-settings: "wdth" 150;
  font-size: clamp(6rem, 3rem + 16vw, 15rem);
  line-height: .9;
  letter-spacing: -.02em;
}
.not-found__title { margin-top: 24px; font-size: var(--fs-2xl); font-weight: 900; line-height: 1.3; }
.not-found__text { max-width: 30em; margin-top: 12px; color: var(--slate); font-size: var(--fs-md); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.not-found__falcon {
  position: absolute;
  z-index: -1;
  right: -6vw; top: calc(var(--header-h) + 10px);
  width: clamp(220px, 36vw, 520px);
  fill: var(--falcon);
}

/* ---------- Footer ---------- */
.site-footer {
  overflow: hidden;
  padding-top: clamp(56px, 7vw, 88px);
  background: var(--ink);
  color: var(--white);
}
.site-footer :focus-visible { outline-color: var(--falcon); }
.site-footer__inner {
  container-type: inline-size;
  max-width: calc(1280px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a { font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--falcon); }
.sns { display: flex; gap: 12px; }
.sns a {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink-2);
  transition: background-color .2s;
}
.sns svg { width: 20px; height: 20px; fill: var(--white); transition: fill .2s; }
.sns a:hover { background: var(--falcon); }
.sns a:hover svg { fill: var(--ink); }

.site-footer__word {
  margin-top: clamp(40px, 6vw, 72px);
  font-family: var(--font-wide);
  font-style: italic;
  font-weight: 900;
  font-stretch: 150%;
  font-variation-settings: "wdth" 150;
  font-size: calc(100cqi / 10.9);
  line-height: .85;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ink-2);
  user-select: none;
}
.site-footer__copy {
  padding-block: 20px 28px;
  color: var(--mist);
  font-size: var(--fs-xs);
}

/* ---------- To top ---------- */
.to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s var(--ease-out), visibility .25s;
}
.to-top svg { width: 22px; height: 22px; fill: var(--falcon); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:focus-visible { outline-color: var(--ink); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
