/* =========================================
   株式会社justa — コーポレートサイト
   デザインコンセプト: 無骨なミニマリズム
   カラー: 白 #FFFFFF / 黒 #0D0D0D / ライン #E0E0E0
   ========================================= */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  color: #0D0D0D;
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
.font-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
}

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .container {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 16px 40px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
}

.btn--primary {
  background-color: #FFFFFF;
  color: #0D0D0D;
}

.btn--primary:hover {
  background-color: #0D0D0D;
  color: #FFFFFF;
}

/* Hero内のボタンは初期状態が白背景なのでそのまま */

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* スクロール後のスタイル（JSで .is-scrolled を付与）*/
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 #E0E0E0;
}

/* ヒーロー内（ダーク背景上）では白テキスト */
.site-header:not(.is-scrolled) .nav-link,
.site-header:not(.is-scrolled) .site-logo {
  color: #FFFFFF;
}

.site-header:not(.is-scrolled) .logo-img {
  filter: invert(1);
}

.site-header.is-scrolled .logo-img {
  filter: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .header-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

.site-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
}

.logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-list {
  display: none;
  gap: 40px;
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
    align-items: center;
  }
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 0.6;
}

.nav-link--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.coming-soon-badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #0D0D0D;
  background: #E0E0E0;
  padding: 2px 6px;
}

/* スクロール前はバッジも白系に */
.site-header:not(.is-scrolled) .coming-soon-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* スクロール後はダーク */
.site-header.is-scrolled .hamburger-line {
  background-color: #0D0D0D;
}

/* メニューオープン時: × に変形 */
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: #0D0D0D;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.mobile-menu-close__line {
  display: block;
  width: 28px;
  height: 1px;
  background-color: #FFFFFF;
}

.mobile-menu-close__line:first-child {
  transform: translateY(0.5px) rotate(45deg);
}

.mobile-menu-close__line:last-child {
  transform: translateY(-0.5px) rotate(-45deg);
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.mobile-nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 8vw, 56px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: opacity 0.3s ease;
  position: relative;
}

a.mobile-nav-link:hover {
  opacity: 0.5;
}

.mobile-nav-link--disabled {
  opacity: 0.25;
  cursor: default;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 背景プレースホルダー
   PHOTO/VIDEO差し替え時: .hero に直接 background-image を設定するか、
   ここの .hero-bg を削除して <video> タグに切り替える */
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1A1A1A 0%, #0D0D0D 60%, #111111 100%);
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

/* 画像背景差し替え後に使うオーバーレイ（現状は不要だがクラスは残す）*/
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 24px 80px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-inner {
    padding: 140px 40px 100px;
  }
}

@media (min-width: 1280px) {
  .hero-inner {
    width: 90%;
    max-width: 1200px;
    padding: 160px 0 120px;
  }
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.8s ease 0.1s forwards;
}

.hero-headline {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.25s forwards;
}

/* PCでは改行を消す（コピーが一行に収まる場合） */
@media (min-width: 768px) {
  .br-sp {
    display: none;
  }
}

.hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 2.0;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 56px;
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-cta {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.55s forwards;
}

/* スクロールインジケーター */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 0.25em;
}

/* ===== TOPICS ===== */
.topics-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .topics-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .topics-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

.topics-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0;
}

.topics-header .section-label {
  margin-bottom: 0;
}

.topics-all-btn {
  flex-shrink: 0;
  margin-bottom: 6px;
}

.topics-grid {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #0D0D0D;
}

@media (min-width: 768px) {
  .topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #0D0D0D;
  }
}

.topic-card {
  padding: 32px 0;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.topic-card:hover {
  opacity: 0.6;
}


@media (min-width: 768px) {
  .topic-card {
    padding: 40px 32px;
    border-right: 1px solid #E0E0E0;
    border-bottom: none;
  }

  /* 各行の1列目: 左パディングなし */
  .topic-card:nth-child(3n+1) {
    padding-left: 0;
  }

  /* 各行の3列目: 右ボーダーなし・右パディングなし */
  .topic-card:nth-child(3n) {
    border-right: none;
    padding-right: 0;
  }

  /* 2行目以降: 上にボーダー */
  .topic-card:nth-child(n+4) {
    border-top: 1px solid #E0E0E0;
    padding-top: 40px;
  }
}

.topic-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topic-card__date {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #AAAAAA;
}

.topic-card__cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
}

/* カテゴリ別カラー（全て黒系で統一、仕様通り） */
.topic-card__cat[data-cat="news"] {
  color: #0D0D0D;
}

.topic-card__cat[data-cat="work"] {
  color: #0D0D0D;
}

.topic-card__cat[data-cat="press"] {
  color: #0D0D0D;
}

.topic-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: #0D0D0D;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 120px 0;
}

@media (min-width: 1280px) {
  .section {
    padding: 180px 0;
  }
}

/* セクションラベル: 英字大見出し + 日本語サブタイトル */
.section-label {
  margin-bottom: 80px;
}

.section-label__en {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 7vw, 100px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0D0D0D;
  margin-bottom: 10px;
}

.section-label__ja {
  display: block;
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: 0.15em;
  color: #888888;
}

/* ===== ABOUT ===== */
.about-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .about-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .about-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-bottom: 96px;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .about-content {
    grid-template-columns: 1fr 400px;
    gap: 100px;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
}

.about-text p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: #0D0D0D;
}

/* 引用見出し(h3): Shippori Mincho、本文より大きくセクション内見出しとして機能 */
.about-quote {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #0D0D0D;
  margin-bottom: 8px;
}

/* PHOTO: 代表写真プレースホルダー */
.about-photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background-color: #CCCCCC;
  /* PHOTO: 田口浩の写真差し替え後はここを削除 */
}

.about-photo-caption {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 400;
  font-size: 12px;
  color: #888888;
  letter-spacing: 0.12em;
}

/* 会社概要 */
/* .company-info は旧スタイル（不使用） */

.company-table {
  display: flex;
  flex-direction: column;
}

.company-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid #E0E0E0;
}

@media (min-width: 768px) {
  .company-row {
    grid-template-columns: 200px 1fr;
    gap: 24px;
    align-items: baseline;
  }
}

.company-row dt {
  font-size: 13px;
  color: #888888;
  font-weight: 400;
  white-space: nowrap;
}

.company-row dd {
  font-size: 15px;
  line-height: 1.7;
  color: #0D0D0D;
}

.company-row dd a {
  color: #0D0D0D;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s ease;
}

.company-row dd a:hover {
  opacity: 0.5;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.client-list li {
  font-size: 14px;
  line-height: 1.8;
}

.client-list li:not(:last-child)::after {
  content: ' /';
  color: #CCCCCC;
}

/* ===== PHILOSOPHY ===== */
.philosophy {
  background-color: #0D0D0D;
  padding: 120px 0;
  overflow: hidden;
}

@media (min-width: 1280px) {
  .philosophy {
    padding: 160px 0;
  }
}

.philosophy-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .philosophy-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .philosophy-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

/* セクションヘッダー */
.phil-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 80px;
}

.phil-header .section-label__en {
  font-size: clamp(52px, 7vw, 100px);
}

/* タグ（PURPOSE / MISSION / VISION） */
.phil-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  margin-bottom: 28px;
}

/* PURPOSE ブロック */
.phil-block--purpose {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .phil-block--purpose {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
  }
}

.phil-purpose-left {
  display: flex;
  flex-direction: column;
}

.phil-purpose-main {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #FFFFFF;
  margin-top: 20px;
}

.phil-purpose-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 2.2;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: 8px;
}

/* MISSION / VISION グリッド */
.phil-mv {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .phil-mv {
    grid-template-columns: 1fr 1fr;
  }
}

.phil-block--mission,
.phil-block--vision {
  padding: 72px 0;
  position: relative;
}

@media (min-width: 768px) {
  .phil-block--mission {
    padding-right: 64px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .phil-block--vision {
    padding-left: 64px;
  }
}

.phil-block--mission+.phil-block--vision {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .phil-block--mission+.phil-block--vision {
    border-top: none;
  }
}

/* 背景の大きな番号 */
.phil-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.05);
  margin-bottom: -20px;
  margin-left: -4px;
  user-select: none;
}

.phil-mv-text {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 400;
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
}

/* ダーク背景上のフェードイン */
.js-fade-dark {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade-dark.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SERVICE ===== */
.service-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .service-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .service-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid #0D0D0D;
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: 40px 0;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .service-card {
    padding: 56px 48px;
    border-right: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
  }

  .service-card:nth-child(odd) {
    padding-left: 0;
  }

  .service-card:nth-child(even) {
    border-right: none;
    padding-right: 0;
  }
}

.service-card__num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #AAAAAA;
}

.service-card__title {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #0D0D0D;
}

.service-card__body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.06em;
  color: #555555;
  flex-grow: 1;
}

.service-contact {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .service-contact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.service-contact__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: #555555;
}

.btn--secondary {
  background-color: transparent;
  color: #0D0D0D;
  border: 1px solid #0D0D0D;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn--secondary:hover {
  background-color: #0D0D0D;
  color: #FFFFFF;
}

/* ===== WORK ===== */
.work-inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .work-inner {
    padding: 0 40px;
  }
}

@media (min-width: 1280px) {
  .work-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

/* グリッド: SP/TB = 2列、PC = 6列ベース（大小カード対応） */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 1280px) {
  .work-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
}

/* カードサイズ（PC）: 大=4/6、小=2/6 */
@media (min-width: 1280px) {
  .work-card--large { grid-column: span 4; }
  .work-card--small { grid-column: span 2; }
}

/* カード共通 */
.work-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 画像エリア */
.work-card__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 1280px) {
  .work-card--large .work-card__img {
    aspect-ratio: 16 / 9;
  }

  .work-card--small .work-card__img {
    aspect-ratio: 3 / 4;
  }
}

.work-card__img--dark  { background-color: #1A1A1A; }
.work-card__img--light { background-color: #AAAAAA; }

/* 写真差し替え用 */
.work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card__img img {
  transform: scale(1.04);
}

/* オーバーレイ */
.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  opacity: 1;
  transition: background 0.4s ease;
}

@media (min-width: 1280px) {
  .work-card__overlay {
    padding: 28px;
  }
}

.work-card:hover .work-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 60%);
}

/* カテゴリタグ */
.work-card__tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 3px 8px;
  align-self: flex-start;
}

/* タイトル + 矢印 */
.work-card__info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.work-card__title {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.04em;
  color: #FFFFFF;
  line-height: 1.4;
  transform: translateY(4px);
  transition: transform 0.4s ease;
}

.work-card:hover .work-card__title {
  transform: translateY(0);
}

.work-card__arrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  color: #FFFFFF;
  flex-shrink: 0;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.work-card:hover .work-card__arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* もっと見る */
.work-more {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .work-more {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.work-more__label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #AAAAAA;
}

.btn--disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #0D0D0D;
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 40px;
}

.footer-inner {
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 0 40px;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .footer-inner {
    width: 90%;
    max-width: 1200px;
    padding: 0;
  }
}

.footer-company {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-address {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 2.0;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: #FFFFFF;
}

.footer-nav {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.footer-nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s ease;
}

.footer-nav-link:hover {
  color: #FFFFFF;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  width: 100%;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .footer-copy {
    text-align: right;
    align-self: flex-end;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.8;
    transform: scaleY(1.1);
  }
}

/* スクロールアニメーション（IntersectionObserver用）*/
.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}