/* ============================================
   styles.css — ミズシマトモヤ ポートフォリオ
   ============================================ */

/* ── CSS変数 ───────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f8f7f5;
  --bg-dark:      #111111;
  --text:         #111111;
  --text-sub:     #5a5a5a;
  --text-muted:   #9a9a9a;
  --border:       #e5e5e5;
  --accent:       #111111;
  --accent-text:  #ffffff;

  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;

  --max-w:      1100px;
  --pad-x:      clamp(20px, 4vw, 40px);
  --section-py: clamp(80px, 10vw, 140px);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:  0.35s;
}

/* ── リセット ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── ユーティリティ ───────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section-label {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.4rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

/* fade-in アニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── ナビゲーション ───────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

/* scrolled クラスは works.html 側での明示指定との互換用に残す */
.site-header.scrolled {
  background: var(--bg);
}

.site-logo {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  transition: color var(--dur);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--text);
  border-radius: 2px;
  color: var(--text) !important;
  transition: background var(--dur), color var(--dur);
}
.nav-cta:hover { background: var(--text) !important; color: #fff !important; }

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur), opacity var(--dur);
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.97);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
  transition: color var(--dur);
}
.mobile-menu a:hover { color: #fff; }
.mobile-menu .mobile-cta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
}

/* ── Hero（斜め切りレイアウト）──────────── */

/*
  構造：
  #hero（白背景の矩形コンテナ）
    └ .hero-media（clip-pathで斜め切り）
        ├ .hero-video / .hero-fallback（動画・フォールバック）
        └ .hero-overlay（暗幕）
    └ .hero-content（テキスト＋CTA、clip-pathの影響なし）
    └ .hero-scroll（スクロール誘導）

  斜め角度の調整は --hero-skew 変数で一括変更できます。
*/
:root {
  --hero-skew: clamp(60px, 9vw, 120px); /* 斜めの高低差 */
  --hero-h:    clamp(520px, 80vh, 960px); /* ヒーロー全体の高さ */
}

#hero {
  position: relative;
  height: var(--hero-h);
  background: var(--bg); /* 斜め切りで白が見える部分 */
  overflow: hidden;
}

/* ── 斜めに切り取られた動画エリア ────── */
.hero-media {
  position: absolute;
  inset: 0;
  /*
    上辺：左は --hero-skew 分だけ下げ、右は天辺まで
    下辺：左は底辺まで、右は --hero-skew 分だけ上げ
    → 平行四辺形（parallelogram）になる
  */
  clip-path: polygon(
    0 var(--hero-skew),
    100% 0%,
    100% calc(100% - var(--hero-skew)),
    0% 100%
  );
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 動画なし時のフォールバック背景 */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* ▼ 差し替え：background-image: url('assets/hero-fallback.jpg'); */
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.42);
}

/* ── ヒーロー テキスト（clip-path の影響を受けない）── */
.hero-content {
  position: absolute;
  z-index: 2;
  /* 左下寄せ：斜めの下辺よりも上に収まる位置 */
  bottom: calc(var(--hero-skew) + clamp(32px, 6vw, 72px));
  left: 0;
  right: 0;
  padding-inline: var(--pad-x);
  max-width: calc(var(--max-w) + var(--pad-x) * 2);
  margin-inline: auto;
}

.hero-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.4rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  background: #fff;
  color: var(--text) !important;
  border-radius: 2px;
  transition: background var(--dur), color var(--dur);
}
.btn-primary:hover { background: rgba(255,255,255,0.85); }

.btn-secondary {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85) !important;
  border-radius: 2px;
  transition: border-color var(--dur), color var(--dur);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.8); color: #fff !important; }

/* 暗背景用プライマリボタン */
.btn-dark {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.2rem;
  background: var(--text);
  color: #fff !important;
  border-radius: 2px;
  transition: background var(--dur);
}
.btn-dark:hover { background: #333; }

.hero-scroll {
  position: absolute;
  /* 右下：斜め切りの右下コーナー付近 */
  bottom: calc(var(--hero-skew) + 1.5rem);
  right: var(--pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  z-index: 2;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
  animation: scrollLine 1.8s ease infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── About ────────────────────────────────── */
#about {
  padding-block: var(--section-py);
  background: var(--bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.95;
  margin-bottom: 1.1rem;
}
.about-text p:last-child { margin-bottom: 0; }
.about-image {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-image img + ::after { display: none; }

/* ── Service ──────────────────────────────── */
#service {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.service-item {
  background: var(--bg);
  padding: 2rem 1.8rem;
  transition: background var(--dur);
}
.service-item:hover { background: #f0efed; }
.service-item-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.service-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.service-item-desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ── Strength ─────────────────────────────── */
#strength {
  padding-block: var(--section-py);
  background: var(--bg);
}
.strength-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
}
.strength-item {}

/* アイコン：線画風SVG。差し替えはHTMLのsvgタグを置き換えてください */
.strength-icon {
  display: block;
  width: 34px;
  height: 34px;
  color: var(--text);
  opacity: 0.4;           /* 主張しすぎず、情報の補助として機能する透明度 */
  margin-bottom: 1.2rem;
  flex-shrink: 0;
}

.strength-number {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.8rem;
}
.strength-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}
.strength-item-desc {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.9;
}

/* ── Works Preview（トップ）──────────────── */
#works {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  flex-wrap: wrap;
  gap: 1rem;
}
.works-header .section-title { margin-bottom: 0; }
.works-see-all {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--dur);
  white-space: nowrap;
}
.works-see-all:hover { color: var(--text); }
.works-see-all::after { content: '→'; }

.work-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 5vw, 5rem);
  border-top: 1px solid var(--border);
}
.work-feature:last-of-type { border-bottom: 1px solid var(--border); }

/* 偶数番目は左右反転 */
.work-feature.reverse { direction: rtl; }
.work-feature.reverse > * { direction: ltr; }

.work-feature-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  background: #ddd;
}
.work-feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-feature-thumb:hover img { transform: scale(1.04); }
.work-feature-thumb-link {
  display: block;
  position: relative;
}
.thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background var(--dur);
}
.thumb-play::after {
  content: '▶';
  font-size: 1.5rem;
  color: rgba(255,255,255,0);
  transition: color var(--dur);
}
.work-feature-thumb-link:hover .thumb-play { background: rgba(0,0,0,0.35); }
.work-feature-thumb-link:hover .thumb-play::after { color: rgba(255,255,255,0.9); }

.work-feature-info {}
.work-feature-genre {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 0.9rem;
}
.work-feature-title {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.work-feature-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.work-meta-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.83rem;
}
.work-meta-label {
  color: var(--text-muted);
  min-width: 70px;
  flex-shrink: 0;
}
.work-meta-value { color: var(--text-sub); }
.work-feature-note {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.85;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1.4rem;
}
.work-yt-link {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.1rem;
  transition: color var(--dur), border-color var(--dur);
}
.work-yt-link:hover { color: var(--text); border-color: var(--text); }

.works-cta {
  text-align: center;
  padding-top: clamp(2.5rem, 4vw, 4rem);
}

/* ── Profile ──────────────────────────────── */
#profile {
  padding-block: var(--section-py);
  background: var(--bg);
}
.profile-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.profile-photo {
  aspect-ratio: 3 / 4;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.profile-name {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.profile-role {
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.profile-bio {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 1.95;
  margin-bottom: 2.5rem;
}
.profile-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.profile-detail-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  font-size: 0.88rem;
}
.profile-detail-label {
  color: var(--text-muted);
  font-weight: 400;
}
.profile-detail-value { color: var(--text-sub); }

/* ── Flow ─────────────────────────────────── */
#flow {
  padding-block: var(--section-py);
  background: var(--bg-alt);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.flow-step {
  padding: 1.5rem 1rem;
  border-left: 1px solid var(--border);
  position: relative;
}
.flow-step:last-child { border-right: 1px solid var(--border); }
.flow-step-num {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  display: block;
}
.flow-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.flow-step-desc {
  font-size: 0.76rem;
  color: var(--text-sub);
  line-height: 1.75;
}

/* ── FAQ ──────────────────────────────────── */
#faq {
  padding-block: var(--section-py);
  background: var(--bg);
}
.faq-list {
  max-width: 760px;
}
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  user-select: none;
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--dur), opacity var(--dur);
}
.faq-icon::before { width: 14px; height: 1px; }
.faq-icon::after  { width: 1px; height: 14px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer-inner {
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.95;
}

/* ── Contact ──────────────────────────────── */
#contact {
  padding-block: var(--section-py);
  background: var(--bg-dark);
  color: #fff;
}
#contact .section-label { color: rgba(255,255,255,0.35); }
#contact .section-title { color: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-lead {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.95;
  margin-bottom: 2rem;
}
.contact-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-checklist li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding-left: 1.1rem;
  position: relative;
}
.contact-checklist li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.25);
}

/* フォーム */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
.form-group .required {
  color: rgba(255,255,255,0.3);
  margin-left: 0.2rem;
  font-size: 0.7rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: var(--font-ja);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: border-color var(--dur), background var(--dur);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.09);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  background: #fff;
  color: var(--text);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--dur);
  align-self: flex-start;
  margin-top: 0.4rem;
}
.form-submit:hover { background: rgba(255,255,255,0.87); }
.form-note {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.75;
  margin-top: 0.5rem;
}

/* ── Footer ───────────────────────────────── */
.site-footer {
  padding: 3rem var(--pad-x);
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
}
.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  transition: color var(--dur);
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 1rem;
}

/* =========================================
   Works ページ専用スタイル
   ========================================= */
.works-page-hero {
  /* ヘッダーが sticky になったので padding-top は不要 */
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
  padding-inline: var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.works-page-hero .container {}
.works-page-hero .section-label { margin-bottom: 1rem; }
.works-page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.works-page-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  max-width: 500px;
  line-height: 1.85;
}

/* カテゴリフィルター */
.filter-bar {
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 64px;
  z-index: 10;
}
.filter-bar .container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: none;
  color: var(--text-sub);
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}
.filter-btn:hover { border-color: var(--text-sub); }
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* 実績グリッド */
.works-grid-section {
  padding: clamp(40px, 6vw, 80px) var(--pad-x);
  background: var(--bg-alt);
}
.works-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.work-card {
  background: var(--bg);
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.work-card[hidden] { display: none; }
.work-card:hover { transform: translateY(-3px); }
.work-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #ddd;
}
.work-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.work-card:hover .work-card-thumb img { transform: scale(1.05); }
.work-card-body { padding: 1.4rem; }
.work-card-genre {
  font-family: var(--font-en);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}
.work-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.work-card-meta {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.work-card-note {
  font-size: 0.78rem;
  color: var(--text-sub);
  line-height: 1.75;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0.9rem;
}
.work-card-link {
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.1rem;
  transition: color var(--dur), border-color var(--dur);
}
.work-card-link:hover { color: var(--text); border-color: var(--text); }

/* Worksページ フッタCTA */
.works-bottom-cta {
  padding: clamp(60px, 8vw, 100px) var(--pad-x);
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--border);
}
.works-bottom-cta h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.works-bottom-cta p {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 900px) {
  /* ヒーローのスキュー角度をSPで縮小 */
  :root { --hero-skew: 48px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .about-inner { grid-template-columns: 1fr; }
  .about-image { order: -1; max-width: 500px; }

  .strength-list { grid-template-columns: 1fr; }

  .work-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .work-feature.reverse { direction: ltr; }

  .profile-inner { grid-template-columns: 1fr; }
  .profile-photo { max-width: 280px; aspect-ratio: 1 / 1; }

  .flow-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .flow-step {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
  }
  .flow-step:last-child { border-right: none; border-bottom: 1px solid var(--border); }

  .contact-inner { grid-template-columns: 1fr; }

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

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .btn-primary, .btn-secondary, .btn-dark { width: 100%; text-align: center; }
  .hero-cta { flex-direction: column; max-width: 320px; }

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

  .profile-detail-row { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
}
