﻿/* ==================================================
   Base Reset
   基本のリセットと全体設定
   ================================================== */

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

html {
  scroll-behavior: smooth;
}

:root {
  /* --------------------------------------------------
     `fs` = font-size
     `radius` = 角丸
     -------------------------------------------------- */
  /* 大見出し用
     対象: `.section__title`, `.gallery-page__hero-title`, `.contact__title`
  */
  --fs-display-md: clamp(28px, 24px + 0.9vw, 36px);

  /* 中見出し用
     対象: カードタイトル、詳細セクションタイトル
  */
  --fs-heading-sm: clamp(17px, 15.7px + 0.38vw, 20px);

  /* 本文用
     対象: リード文、説明文、本文テキスト全般
  */
  --fs-body-md: clamp(14px, 13.1px + 0.28vw, 16px);

  /* UIテキスト用
     対象: ボタン、ナビ、補助ラベル、ブランド表記
  */
  --fs-ui-md: clamp(13px, 12.2px + 0.28vw, 15px);

  /* 共通角丸
     対象: 共通カード、作品カード、詳細ビジュアル枠
  */
  --radius-card: clamp(18px, 15px + 0.8vw, 24px);

  /* 非トップページのヘッダー逃がし用
     対象: `works.html`, `works/*`
  */
  --subpage-header-offset: 88px;
}

body {
  margin: 0 auto;
  padding: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  background: #fcfbf8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page-works {
  background: #eef3f7;
}

main {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ==================================================
   Shared Layout
   セクション共通の余白と横幅
   ================================================== */

.hero,
.section,
.site-footer {
  padding-inline: 0;
}

.hero {
  padding-block: clamp(12px, 8px + 1vw, 24px) clamp(28px, 22px + 1.4vw, 42px);
  overflow: hidden;
}

.section {
  padding-block:clamp(24px, 16px + 2vw, 38px);
}

.site-header__inner,
.hero__inner,
.section__inner,
.site-footer__inner {
  width: min(calc(100% - 48px), 1200px);
  min-width: 0;
  margin-inline: auto;
}

/* ==================================================
   Shared Typography
   セクション見出しで共通利用する文字スタイル
   ================================================== */

.section__heading {
  margin-bottom:clamp(20px, 16px + 1vw, 28px);
}

.section__label {
  margin: 0 0 12px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.section__title {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-display-md);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.section__lead {
  margin: 12px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
}

/* ==================================================
   Shared Card / Button
   カードやボタンなどの共通UI
   ================================================== */

.card {
  background: #ffffff;
  border: 1px solid #d4dbe3;
  border-radius: var(--radius-card);
  box-shadow: 0 16px 32px rgba(51, 74, 98, 0.08);
  backdrop-filter: blur(14px);
}

.button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap:clamp(8px, 5px + 0.8vw, 14px);
  margin-top:clamp(16px, 12px + 1vw, 26px);
}

.button {
  min-width: clamp(124px, 96px + 4vw, 150px);
  min-height: clamp(40px, 36px + 1vw, 46px);
  padding: clamp(10px, 9px + 0.4vw, 12px) clamp(14px, 10px + 1vw, 22px);
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-ui-md);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: #627d98;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(51, 74, 98, 0.18);
}

.button--primary:hover {
  background: #334a62;
}

.button--secondary {
  background: #ffffff;
  color: #334a62;
  border-color: #d4dbe3;
}

.button--secondary:hover {
  background: #fcfbf8;
}

/* ==================================================
   Header
   PCとスマホ共通のヘッダー本体
   ================================================== */

.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 40;
  padding: 0;
  isolation: isolate;
}

.site-header::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(32, 35, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

.site-header--open::after {
  opacity: 1;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  padding: clamp(13px, 12px + 0.2vw, 14px) clamp(14px, 10px + 1vw, 22px);
  border: 1px solid #d4dbe3;
  border-radius: 999px;
  background: rgba(252, 251, 248, 0.86);
  box-shadow: 0 10px 24px rgba(51, 74, 98, 0.08);
  backdrop-filter: blur(14px);
}

.page-works .site-header__inner {
  background: rgba(238, 243, 247, 0.88);
}

.site-header__brand {
  color: #20232a;
  font-family: "Montserrat", sans-serif;
  font-size:clamp(19px, 17.3px + 0.45vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-header__link {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  color: #20232a;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-ui-md);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.3px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.site-header__link:hover,.site-header__link--current {
  color: #627d98;
  background: rgba(98, 125, 152, 0.08);
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(212, 219, 227, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-header__toggle:hover {
  background:
    linear-gradient(180deg, rgba(98, 125, 152, 0.12), rgba(98, 125, 152, 0.12)),
    rgba(255, 255, 255, 0.9);
}

.site-header__toggle:focus-visible {
  outline: 3px solid rgba(98, 125, 152, 0.24);
  outline-offset: 3px;
}

.site-header__toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #20232a;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.site-header--open .site-header__toggle {
  background:
    linear-gradient(180deg, rgba(98, 125, 152, 0.16), rgba(98, 125, 152, 0.16)),
    rgba(255, 255, 255, 0.94);
}

.site-header--open .site-header__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--open .site-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header--open .site-header__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================================================
   Hero
   ファーストビューのビジュアルとコピー
   ================================================== */

.hero__stage {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: 940px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(252, 251, 248, 0.18), rgba(252, 251, 248, 0.18)),
    url("../img/hero-bg.webp") center top / cover no-repeat;
}
.hero__img-container{
  /* 背景はフル幅のまま、ビジュアル要素だけ1200px内で大きく見せる */
  position: absolute;
  top: clamp(54px, 6vw, 80px);
  right: 0;
  bottom: 0;
  left: 0;
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(252, 251, 248, 0.96) 0%,
    rgba(251, 250, 247, 0.68) 34%,
    rgba(249, 247, 243, 0.24) 68%,
    rgba(252, 251, 248, 0) 100%
  );
}

.hero__stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(252, 251, 248, 0) 0%,
    rgba(249, 247, 243, 0.18) 38%,
    rgba(251, 250, 247, 0.62) 72%,
    rgba(252, 251, 248, 0.96) 100%
  );
}

/* 画像群をコピーへ少し近づけ、視線移動を短くする */
.hero__pc-wrap {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 7.8%;
  width: min(71.5%, 860px);
  transform: translateX(-50%);
}

.hero__pc {
  width: 100%;
  filter: drop-shadow(0 20px 34px rgba(166, 219, 236, 0.34));
}

.hero__phone-wrap {
  position: absolute;
  right: -8%;
  bottom: -4.2%;
  z-index: 3;
  width: min(49%, 380px);
  transform: rotate(10deg);
}

.hero__phone {
  width: 100%;
  filter: drop-shadow(0 16px 28px rgba(166, 219, 236, 0.36));
}

.hero__text {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: clamp(42px, 6vw, 76px);
  width: min(90%, 620px);
  transform: translateX(-50%);
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 12px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size:clamp(12px, 11.2px + 0.2vw, 14px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.hero__sub {
  position: relative;
  max-width: 520px;
  margin: clamp(12px, 10px + 0.6vw, 18px) auto 0;
  padding-top: clamp(12px, 10px + 0.4vw, 16px);
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(15px, 13.4px + 0.45vw, 18px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
}

.hero__sub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(72%, 320px);
  height: 1px;
  background: rgba(95, 104, 117, 0.28);
  transform: translateX(-50%);
}

.hero__thumb-wrap {
  position: absolute;
  z-index: 1;
  --float-rotate: 0deg;
  --float-drift-x: 8px;
  --float-drift-x-negative: -8px;
  --float-drift-y: -10px;
  --float-lift-y: -18px;
  transform: translate3d(0, 0, 0) rotate(var(--float-rotate));
  transform-origin: center center;
  animation: floatSoft 6s ease-in-out infinite;
  will-change: transform;
}

.hero__thumb {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(51, 74, 98, 0.16);
}

.hero__thumb-wrap--left-top {
  width: clamp(152px, 14vw, 194px);
  top: 3.6%;
  left: 6.2%;
  --float-rotate: -11deg;
  animation-delay: 0s;
  animation-duration: 5.6s;
}

.hero__thumb-wrap--left-mid {
  width: clamp(176px, 16vw, 220px);
  top: 22.8%;
  left: 1.6%;
  --float-rotate: -13deg;
  animation-delay: 1.1s;
  animation-duration: 6.1s;
}

.hero__thumb-wrap--right-top {
  width: clamp(164px, 15.4vw, 206px);
  top: 3.2%;
  right: 6.2%;
  --float-rotate: 8deg;
  animation-delay: 0.5s;
  animation-duration: 5.8s;
}

.hero__thumb-wrap--right-mid {
  width: clamp(176px, 16vw, 224px);
  top: 19.6%;
  right: 1.6%;
  --float-rotate: 6deg;
  animation-delay: 1.5s;
  animation-duration: 6.3s;
}
/* ==================================================
   About
   自己紹介とスキルカード
   ================================================== */

.about {
  background: #fcfbf8;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.about__profile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(20px, 14px + 1.5vw, 32px) clamp(16px, 9px + 1.8vw, 32px);
}

.about__intro {
  margin: 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
}

.about__details {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.about__detail {
  padding-top: 20px;
  border-top: 1px solid #d4dbe3;
}

.about__detail-title {
  margin: 0 0 10px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.6px;
}

.about__tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__tool {
  padding: 10px 14px;
  border: 1px solid rgba(98, 125, 152, 0.16);
  border-radius: 999px;
  background: rgba(98, 125, 152, 0.1);
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.about__tool:nth-child(2n) {
  background: rgba(140, 132, 198, 0.08);
  border-color: rgba(140, 132, 198, 0.16);
  color: #8c84c6;
}

.about__skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about__skill {
  padding: clamp(20px, 17px + 0.8vw, 26px) clamp(16px, 13px + 0.8vw, 22px);
}

.about__skill-label {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  /* letter-spacing: 2px; */
  /* text-transform: uppercase; */
}

.about__skill-title {
  margin: 14px 0 10px;
  color: #20232a;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.about__skill-text {
  margin: 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
}

/* ==================================================
   Works
   作品カード一覧
   ================================================== */

.works {
  background: #eef3f7;
}

.works__stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.works__group {
  width: 100%;
  min-width: 0;
  padding: clamp(20px, 14px + 1.5vw, 30px) clamp(16px, 10px + 1.5vw, 30px);
}

.works__group-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.works__group-header--stack {
  align-items: start;
}

.works__group-label {
  margin: 0 0 10px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.works__group-title {
  margin: 0;
  color: #20232a;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
}

.works__group-lead {
  margin: 10px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
}

.works__thumb-grid,
.works__grid {
  display: grid;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.works__thumb-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.works__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.works__gallery-link {
  width: fit-content;
  margin: 22px 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.works__gallery-link::after {
  content: "->";
  font-size: 15px;
  line-height: 1;
}

.works__gallery-link:hover {
  color: #334a62;
  opacity: 1;
}

.works__card-link {
  display: block;
  color: inherit;
  border-radius: var(--radius-card);
}

.works__card-link .works__card {
  height: 100%;
}

.works__card-link:focus-visible {
  outline: 3px solid rgba(98, 125, 152, 0.24);
  outline-offset: 4px;
}

.works__card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #d4dbe3;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(32, 35, 42, 0.06);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.works__card-link:focus-visible .works__card,
.works__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(51, 74, 98, 0.1);
}

.works__card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f9fb 0%, #e8eff5 100%);
}

.works__card-media--thumbnail {
  aspect-ratio: 16 / 9;
}

.works__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.works__card-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(32, 35, 42, 0.62);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.works__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 7px + 0.4vw, 10px);
  padding: clamp(18px, 16px + 0.5vw, 20px) clamp(16px, 14px + 0.5vw, 20px);
}

.works__card-category {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.works__card-title {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-heading-sm);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.works__card-desc {
  margin: 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0;
}

.works__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 5px + 0.3vw, 8px);
  margin-top: 2px;
}

.works__card-meta-badge {
  display: inline-block;
  max-width: 100%;
  padding: clamp(6px, 5px + 0.2vw, 7px) clamp(9px, 8px + 0.5vw, 12px);
  border: 1px solid #d4dbe3;
  border-radius: 999px;
  background: #f7f9fb;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(11px, 10.4px + 0.2vw, 12px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.works__card-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334a62;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(13px, 12.5px + 0.16vw, 14px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition:
    transform 0.22s ease,
    color 0.22s ease;
}

.works__card-cta::after {
  content: "->";
  font-size: 15px;
  line-height: 1;
}

.works__card-link:focus-visible .works__card-media img,
.works__card:hover .works__card-media img {
  transform: scale(1.04);
}

.works__card-link:focus-visible .works__card-cta,
.works__card:hover .works__card-cta {
  color: #627d98;
  transform: translateX(4px);
}
/* ==================================================
   Gallery Page
   Works一覧を別ページで見せるための画面
   ================================================== */

.gallery-page {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding-top: calc(28px + var(--subpage-header-offset));
  padding-bottom: 56px;
  background: #eef3f7;
}

.gallery-page__inner {
  width: min(calc(100% - 48px), 1200px);
  min-width: 0;
  margin-inline: auto;
}

.gallery-page__back {
  width: fit-content;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.gallery-page__back::before {
  content: "<";
  line-height: 1;
}

.gallery-page__back:hover {
  color: #334a62;
  opacity: 1;
}

.gallery-page__hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
  padding: clamp(20px, 13px + 1.8vw, 36px) clamp(16px, 8px + 2vw, 34px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, rgba(252, 251, 248, 0.98) 0%, rgba(243, 239, 232, 0.94) 100%);
}

.page-works .gallery-page__hero {
  grid-template-columns: 1fr;
  align-items: start;
}

.gallery-page__hero::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -56px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(98, 125, 152, 0.08);
}

.gallery-page__hero-copy {
  position: relative;
  z-index: 1;
}

.gallery-page__hero-title {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-display-md);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.gallery-page__hero-lead {
  max-width: 680px;
  margin: 16px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

.page-works .gallery-page__hero-lead {
  max-width: 860px;
}

@media (min-width: 1025px) {
  .page-works .gallery-page__hero-lead {
    max-width: none;
    white-space: nowrap;
  }
}

.gallery-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ==================================================
   Work Detail
   作品の詳細ページ
   ================================================== */

.work-detail {
  padding-top: calc(clamp(18px, 14px + 1vw, 28px) + var(--subpage-header-offset));
  padding-bottom: 56px;
}

.work-detail__hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 12px + 2vw, 38px) clamp(16px, 8px + 2vw, 34px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 32%),
    linear-gradient(135deg, rgba(252, 251, 248, 0.98) 0%, rgba(243, 239, 232, 0.94) 100%);
}

.work-detail__hero::after {
  content: "";
  position: absolute;
  bottom: -84px;
  left: -44px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(98, 125, 152, 0.08);
}

.work-detail__hero-copy,
.work-detail__hero-visual {
  position: relative;
  z-index: 1;
}

.work-detail__hero-title {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size:clamp(30px, 23.2px + 1.9vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.6px;
}

.work-detail__hero-lead {
  margin: 16px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

.work-detail__visual-frame {
  border: 1px solid #d4dbe3;
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(51, 74, 98, 0.08);
}

.work-detail__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  cursor: zoom-in;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.work-detail__image:hover {
  transform: scale(1.01);
}

.work-detail__image:focus-visible {
  outline: 3px solid rgba(98, 125, 152, 0.28);
  outline-offset: 4px;
}

.image-modal-open {
  overflow: hidden;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-modal[hidden] {
  display: none;
}

.image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 35, 42, 0.82);
  backdrop-filter: blur(10px);
}

.image-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-height: calc(100vh - 48px);
  display: grid;
  justify-items: center;
  gap: 14px;
}

.image-modal__close {
  min-width: 92px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.image-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.image-modal__close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.34);
  outline-offset: 3px;
}

.image-modal__image {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.work-detail__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.work-detail__panel {
  padding: clamp(20px, 14px + 1.5vw, 30px) clamp(16px, 10px + 1.5vw, 30px);
}

.work-detail__section-label {
  margin: 0 0 10px;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.work-detail__section-title {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size:clamp(19px, 17px + 0.56vw, 22px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.work-detail__section-lead {
  margin: 14px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

.work-detail__info-list {
  margin: 24px 0 0;
}

.work-detail__info-row {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #d4dbe3;
}

.work-detail__info-row:first-child {
  padding-top: 0;
  border-top: none;
}

.work-detail__info-term {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.work-detail__info-desc {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

.work-detail__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-detail__meta-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work-detail__meta {
  padding: clamp(20px, 17px + 0.8vw, 22px) clamp(16px, 12px + 1vw, 20px);
}

.work-detail__meta-feature .work-detail__info-row {
  padding: 0;
  border-top: none;
  grid-template-columns: 1fr;
  gap: 10px;
}

.work-detail__meta-label {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.work-detail__meta-value {
  margin: 10px 0 0;
  color: #20232a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.work-detail__meta-note {
  margin: 10px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

.work-detail__block {
  margin-top: 28px;
}

.work-detail__point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.work-detail__point {
  height: 100%;
  padding: clamp(20px, 15px + 1.1vw, 28px) clamp(16px, 12px + 1vw, 28px);
}

.work-detail__point-index {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.work-detail__point-title {
  margin: 14px 0 10px;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-heading-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.work-detail__point-text {
  margin: 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0;
}

/* ==================================================
   Strength
   強みカード
   ================================================== */

.strength {
  background: #fcfbf8;
}

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

.strength__card {
  padding: clamp(20px, 15px + 1.1vw, 28px) clamp(16px, 12px + 1vw, 28px);
}

.strength__card-index {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.strength__card-title {
  margin: 14px 0 12px;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-heading-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.strength__card-text {
  margin: 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size:clamp(14px, 13.4px + 0.16vw, 15px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0;
}

/* ==================================================
   Flow
   制作フロー
   ================================================== */

.flow {
  background: #fcfbf8;
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  grid-auto-rows: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding: clamp(20px, 17px + 0.8vw, 26px) clamp(16px, 13px + 0.8vw, 22px);
}

.flow__step {
  margin: 0;
  color: #627d98;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.flow__card-title {
  margin: 14px 0 10px;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-heading-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.flow__card-text {
  margin: 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size:clamp(14px, 13.4px + 0.16vw, 15px);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0;
}

/* ==================================================
   Contact
   最後の導線セクション
   ================================================== */

.contact {
  background: #e9e3da;
}

.contact__card {
  padding: clamp(20px, 10px + 2.6vw, 42px) clamp(16px, 10px + 1.5vw, 30px);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 251, 248, 0.96));
}

.contact__content {
  max-width: 680px;
  margin-inline: auto;
}

.contact__title {
  margin: 0;
  color: #20232a;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-display-md);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.contact__text {
  margin: 16px 0 0;
  color: #5f6875;
  font-family: "Noto Sans JP", sans-serif;
  font-size: var(--fs-body-md);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0;
}

.contact__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact__link {
  padding: 10px 14px;
  border: 1px solid #d4dbe3;
  border-radius: 999px;
  background: #ffffff;
  color: #334a62;
  font-family: "Montserrat", sans-serif;
  font-size: var(--fs-ui-md);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.contact__link:hover {
  color: #627d98;
}

/* ==================================================
   Footer
   ページの締め
   ================================================== */

.site-footer {
  padding-top: 10px;
  padding-bottom: 24px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto;
  gap: 24px;
  align-items: start;
  padding: clamp(20px, 14px + 1.5vw, 30px) clamp(16px, 10px + 1.5vw, 30px);
  border-radius: clamp(18px, 12px + 1.6vw, 32px);
  background: #334a62;
  color: #ffffff;
  box-shadow: 0 28px 60px rgba(51, 74, 98, 0.18);
}

.site-footer__brand {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.site-footer__lead {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer__copy {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.6px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__link {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.4px;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.site-footer__link:hover {
  color: #8c84c6;
  opacity: 1;
}

/* ==================================================
   Motion
   視線誘導用のやわらかい動き
   ================================================== */

@keyframes floatSoft {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--float-rotate));
  }

  25% {
    transform: translate3d(var(--float-drift-x), var(--float-drift-y), 0) rotate(var(--float-rotate));
  }

  50% {
    transform: translate3d(0, var(--float-lift-y), 0) rotate(var(--float-rotate));
  }

  75% {
    transform: translate3d(var(--float-drift-x-negative), var(--float-drift-y), 0) rotate(var(--float-rotate));
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(var(--float-rotate));
  }
}

.hero__pc,
.hero__phone,
.hero__thumb,
.hero__eyebrow,
.hero__sub,
.hero__text .button-group {
  transition:
    opacity 0.76s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--hero-intro-delay, 0ms);
  will-change: opacity, transform;
}

.hero--intro-ready:not(.hero--intro-active) .hero__thumb-wrap {
  animation-play-state: paused;
}

.hero--intro-ready:not(.hero--intro-active) .hero__pc {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.97);
}

.hero--intro-ready:not(.hero--intro-active) .hero__phone {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.94);
}

.hero--intro-ready:not(.hero--intro-active) .hero__thumb {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.92);
}

.hero--intro-ready:not(.hero--intro-active) .hero__eyebrow,
.hero--intro-ready:not(.hero--intro-active) .hero__sub,
.hero--intro-ready:not(.hero--intro-active) .hero__text .button-group {
  opacity: 0;
}

.hero--intro-ready:not(.hero--intro-active) .hero__eyebrow {
  transform: translate3d(0, 18px, 0);
}

.hero--intro-ready:not(.hero--intro-active) .hero__sub {
  transform: translate3d(0, 22px, 0);
}

.hero--intro-ready:not(.hero--intro-active) .hero__text .button-group {
  transform: translate3d(0, 26px, 0);
}

.motion-ready .motion-reveal {
  opacity: 0;
  --motion-distance: 28px;
  --motion-scale-from: 1;
  transform: translate3d(0, var(--motion-distance), 0) scale(var(--motion-scale-from));
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.88s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .motion-reveal--panel {
  --motion-distance: 34px;
}

.motion-ready .motion-reveal--card {
  --motion-distance: 24px;
  --motion-scale-from: 0.985;
  transform-origin: center bottom;
}

.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__pc,
  .hero__phone,
  .hero__thumb-wrap,
  .hero__thumb,
  .hero__eyebrow,
  .hero__sub,
  .hero__text .button-group,
  .motion-reveal,
  .button,
  .works__card,
  .works__card-media img,
  .works__card-cta,
  .site-header::after,
  .site-header__nav {
    animation: none;
    transition: none;
  }

  .hero--intro-ready .hero__pc,
  .hero--intro-ready .hero__phone,
  .hero--intro-ready .hero__thumb,
  .hero--intro-ready .hero__eyebrow,
  .hero--intro-ready .hero__sub,
  .hero--intro-ready .hero__text .button-group,
  .motion-ready .motion-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
/* ==================================================
   Responsive: Tablet
   タブレット幅でのレイアウト調整
   ================================================== */

@media (max-width: 1024px) {
  .site-header__inner,
  .hero__inner,
  .section__inner,
  .site-footer__inner {
    width: min(calc(100% - 32px), 1200px);
  }

  .site-header__inner {
    border-radius: 28px;
  }

  .hero__stage {
    min-height: 760px;
  }

  .hero__img-container {
    width: min(calc(100% - 32px), 1000px);
  }

  .hero__pc-wrap {
    width: min(80%, 720px);
    top: 10.5%;
  }

  .hero__phone-wrap {
    right: -7%;
    bottom: -3.5%;
    width: min(43%, 280px);
  }

  .hero__text {
    bottom: clamp(38px, 5vw, 60px);
    width: min(92%, 560px);
  }

  .hero__thumb-wrap--left-top {
    width: clamp(124px, 16vw, 154px);
    left: 4.5%;
  }

  .hero__thumb-wrap--left-mid {
    width: clamp(138px, 18vw, 168px);
    left: 1%;
    top: 18.2%;
  }

  .hero__thumb-wrap--right-top {
    width: clamp(130px, 16.5vw, 160px);
    right: 4.5%;
  }

  .hero__thumb-wrap--right-mid {
    width: clamp(138px, 18vw, 170px);
    right: 1%;
    top: 18.8%;
  }

  .about__grid,
  .strength__grid {
    grid-template-columns: 1fr;
  }

  .flow__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .works__group-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-page__hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-page__inner {
    width: min(calc(100% - 32px), 1200px);
  }

  .work-detail__hero,
  .work-detail__summary {
    grid-template-columns: 1fr;
  }

  .gallery-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-detail__point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
/* ==================================================
   Responsive: Mobile
   スマホ幅でのレイアウトとハンバーガーメニュー
   ================================================== */

@media (max-width: 767px) {
  :root {
    --subpage-header-offset: 96px;
  }

  .site-header__inner,
  .hero__inner,
  .section__inner,
  .site-footer__inner {
    width: min(calc(100% - 40px), 1200px);
  }

  .site-header {
    padding-top: 12px;
  }

  .gallery-page__inner {
    width: min(calc(100% - 40px), 1200px);
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-radius: 22px;
    overflow: visible;
  }

  .site-header__brand {
    margin-right: auto;
    text-align: left;
  }

  .site-header__nav {
    justify-content: center;
  }

  .site-header--js-enabled .site-header__toggle {
    display: inline-flex;
  }

  .site-header--js-enabled .site-header__nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 5;
    width: 100%;
    margin-top: 0;
    padding: 10px;
    border: 1px solid #d4dbe3;
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 251, 248, 0.96));
    box-shadow: 0 18px 32px rgba(51, 74, 98, 0.14);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    transition:
      opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.28s;
  }

  .site-header--open .site-header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.22s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  .site-header--js-enabled .site-header__link {
    width: 100%;
    padding: 11px 12px;
  }

  body.site-header-menu-open {
    overflow: hidden;
  }

  .hero__stage {
    min-height: 620px;
    border-radius: 24px;
  }

  .hero__img-container {
    width: min(calc(100% - 40px), 520px);
    top: 52px;
  }

  .hero__pc-wrap {
    width: min(94%, 500px);
    top: 21%;
  }

  .hero__phone-wrap {
    /* right: %; */
    bottom: -1%;
    width: min(50%, 188px);
    transform: rotate(8deg);
  }

  .hero__text {
    width: min(calc(100% - 40px), 420px);
    bottom: 28px;
  }

  .hero__thumb-wrap--left-mid {
    display: block;
    width: 106px;
    top: 16%;
    left: -3%;
  }

  .hero__thumb-wrap {
    --float-drift-x: 12px;
    --float-drift-x-negative: -12px;
    --float-drift-y: -14px;
    --float-lift-y: -26px;
  }

  .hero--intro-ready:not(.hero--intro-active) .hero__pc {
    transform: translate3d(0, 48px, 0) scale(0.95);
  }

  .hero--intro-ready:not(.hero--intro-active) .hero__phone {
    transform: translate3d(0, 52px, 0) scale(0.9);
  }

  .hero--intro-ready:not(.hero--intro-active) .hero__thumb {
    transform: translate3d(0, 32px, 0) scale(0.88);
  }

  .hero--intro-ready:not(.hero--intro-active) .hero__eyebrow {
    transform: translate3d(0, 28px, 0);
  }

  .hero--intro-ready:not(.hero--intro-active) .hero__sub {
    transform: translate3d(0, 34px, 0);
  }

  .hero--intro-ready:not(.hero--intro-active) .hero__text .button-group {
    transform: translate3d(0, 40px, 0);
  }

  .motion-ready .motion-reveal {
    --motion-distance: 38px;
  }

  .motion-ready .motion-reveal--panel {
    --motion-distance: 46px;
  }

  .motion-ready .motion-reveal--card {
    --motion-distance: 34px;
    --motion-scale-from: 0.965;
  }

  .hero__thumb-wrap--left-top {
    width: 110px;
    top: 5%;
    left: 15%;
    animation-duration: 4.7s;
  }

  .hero__thumb-wrap--right-top {
    width: 112px;
    top: 5%;
    right: 20%;
    animation-duration: 4.9s;
  }

  .hero__thumb-wrap--right-mid {
    display: block;
    width: 108px;
    top: 16%;
    right: -3%;
    animation-duration: 5.1s;
  }

  .hero__thumb-wrap--left-mid {
    animation-duration: 4.8s;
  }

  .about__skills {
    grid-template-columns: 1fr;
  }

  .works__thumb-grid,
  .gallery-page__grid,
  .works__grid,
  .flow__list {
    grid-template-columns: 1fr;
  }

  .works__card-badge {
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .work-detail__meta-grid,
  .work-detail__point-grid {
    grid-template-columns: 1fr;
  }

  .work-detail__info-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gallery-page__hero-lead {
    line-height: 1.8;
  }

  .contact__links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__link {
    text-align: center;
  }
}
