:root {
  --background: #ffffff;
  --foreground: #0f0f0f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #111111;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", "Yu Gothic",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

button:hover {
  opacity: 0.8;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: clamp(12px, 3vw, 24px);
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 2vw, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(12px, 2.5vw, 14px);
}

.logo-mark {
  width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.logo-text {
  display: inline-block;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.primary-nav a {
  transition: opacity 0.15s ease;
}

.primary-nav a:hover {
  opacity: 0.8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2vw, 10px);
  flex-shrink: 0;
}

.lang-toggle,
.sitemap-btn {
  font-size: clamp(10px, 2vw, 12px);
  letter-spacing: 0.04em;
  padding: clamp(6px, 1.5vw, 8px) clamp(10px, 2.5vw, 16px);
  white-space: nowrap;
}

.page {
  padding-top: clamp(100px, 15vh, 120px);
}

.hero {
  padding: clamp(48px, 10vh, 80px) 0 clamp(64px, 12vh, 96px);
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--muted);
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero-lead {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.7;
}

.services {
  padding: clamp(48px, 8vh, 64px) 0 clamp(80px, 15vh, 120px);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.section-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.service-card {
  border: 1px solid var(--border);
  border-radius: clamp(8px, 2vw, 12px);
  padding: clamp(24px, 5vw, 32px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.service-card:hover {
  opacity: 0.9;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.card-body h3 {
  margin: 0 0 clamp(12px, 3vw, 16px);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
}

.card-body p {
  margin: 0 0 clamp(16px, 4vw, 24px);
  color: var(--muted);
  font-size: clamp(13px, 2.5vw, 14px);
  line-height: 1.7;
}

.card-cta {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  font-size: 12px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  transition: opacity 0.15s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

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

/* ページヘッダー */
.page-header {
  padding: clamp(48px, 10vh, 80px) 0 clamp(40px, 8vh, 64px);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: clamp(13px, 2.5vw, 14px);
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--foreground);
}

.breadcrumb span:last-child {
  color: var(--foreground);
  font-weight: 500;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.page-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* コンテンツセクション */
.content-section {
  padding: clamp(48px, 10vh, 80px) 0 clamp(80px, 15vh, 120px);
}

.content-block {
  margin-bottom: clamp(48px, 8vh, 72px);
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-heading {
  margin: 0 0 clamp(16px, 3vw, 20px);
  font-size: clamp(18px, 3.5vw, 20px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.content-text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 15px);
  line-height: 1.8;
}

.content-list {
  margin: 0;
  padding: 0 0 0 clamp(16px, 3vw, 20px);
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 15px);
  line-height: 1.8;
}

.content-list li {
  margin-bottom: 8px;
}

/* サービスグリッド（全幅） */
.service-grid-full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.service-card-full {
  border: 1px solid var(--border);
  border-radius: clamp(8px, 2vw, 12px);
  padding: clamp(24px, 5vw, 32px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.service-card-full:hover {
  opacity: 0.9;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

.service-card-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* フォーム */
.contact-form {
  max-width: 640px;
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
}

.form-actions {
  margin-top: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 12px) clamp(24px, 5vw, 32px);
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 500;
  color: #ffffff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 100%;
  max-width: 300px;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 会社情報 */
.company-info {
  margin-bottom: clamp(48px, 8vh, 72px);
}

.info-list {
  margin: 0;
  padding: 0;
  max-width: 720px;
}

.info-item {
  display: grid;
  grid-template-columns: clamp(100px, 20vw, 140px) 1fr;
  gap: clamp(16px, 4vw, 24px);
  padding: clamp(16px, 3vw, 20px) 0;
  border-bottom: 1px solid var(--border);
}

.info-item:first-child {
  border-top: 1px solid var(--border);
}

.info-item dt {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 500;
}

.info-item dd {
  margin: 0;
  font-size: clamp(13px, 2.5vw, 15px);
  color: var(--muted);
  line-height: 1.7;
}

/* 空の状態 */
.empty-state {
  padding: clamp(80px, 15vh, 120px) 0;
  text-align: center;
}

.empty-message {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* エラーページ */
.error-page {
  padding: clamp(80px, 15vh, 120px) 0;
}

.error-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.error-code {
  margin: 0 0 24px;
  font-size: clamp(72px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.error-message {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.error-description {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 15px;
}

/* サイトマップドロワー */
.sitemap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}

.sitemap-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.sitemap-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-height: 80vh;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 101;
  overflow-y: auto;
}

.sitemap-drawer.is-open {
  transform: translateY(0);
}

.sitemap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--border);
}

.sitemap-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sitemap-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sitemap-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.sitemap-nav {
  padding: clamp(20px, 4vw, 32px);
}

.sitemap-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 30vw, 200px), 1fr));
  gap: clamp(12px, 2vw, 16px);
}

.sitemap-list a {
  display: block;
  padding: clamp(12px, 2.5vw, 16px) clamp(16px, 3vw, 20px);
  font-size: clamp(14px, 2.5vw, 15px);
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.sitemap-list a:hover {
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

/* タブレット・スマートフォン対応 */
@media (max-width: 900px) {
  .primary-nav {
    display: none;
  }

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

  .service-grid-full {
    grid-template-columns: 1fr;
  }

  .hero-lead {
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(24px, 5vw, 28px);
  }
}

/* タブレット（横向き・縦向き）*/
@media (max-width: 768px) {
  .info-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-body h3 {
    font-size: clamp(20px, 5vw, 22px);
  }

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

/* スマートフォン */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    display: none;
  }

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

  .service-card:hover,
  .service-card-full:hover {
    transform: none;
  }

  .btn-primary {
    max-width: 100%;
  }

  .contact-form {
    max-width: 100%;
  }

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

  .sitemap-list a:hover {
    transform: none;
  }
}

/* 極小スマートフォン */
@media (max-width: 375px) {
  .header-actions {
    gap: 4px;
  }

  .lang-toggle,
  .sitemap-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* タッチデバイス対応 */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .service-card-full:hover,
  .btn-primary:hover,
  button:hover {
    transform: none;
  }

  button:active {
    transform: scale(0.98);
  }
}

/* Legal ページ専用スタイル */
.legal-nav-section {
  padding: clamp(24px, 4vh, 32px) 0;
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 20px);
  flex-wrap: wrap;
  font-size: clamp(13px, 2.5vw, 14px);
}

.legal-nav a {
  transition: opacity 0.15s ease;
}

.legal-nav a:hover {
  opacity: 0.7;
}

.legal-nav-separator {
  color: var(--muted);
}

.legal-section {
  margin-bottom: clamp(64px, 10vh, 96px);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section-title {
  margin: 0 0 clamp(32px, 5vh, 48px);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-bottom: clamp(16px, 3vh, 24px);
  border-bottom: 2px solid var(--border);
}

.legal-content {
  max-width: 800px;
}

.legal-content > p {
  margin: 0 0 clamp(24px, 4vh, 32px);
  color: var(--foreground);
  font-size: clamp(14px, 2.5vw, 15px);
  line-height: 1.8;
}

.legal-subsection-title {
  margin: clamp(32px, 5vh, 40px) 0 clamp(16px, 3vh, 20px);
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.legal-list {
  margin: 0 0 clamp(24px, 4vh, 32px);
  padding: 0 0 0 clamp(20px, 4vw, 28px);
  color: var(--foreground);
  font-size: clamp(14px, 2.5vw, 15px);
  line-height: 1.8;
}

.legal-list li {
  margin-bottom: 12px;
}

.legal-contact {
  margin: clamp(20px, 3vh, 24px) 0;
  padding: clamp(20px, 4vw, 24px);
  background: rgba(0, 0, 0, 0.02);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.legal-contact p {
  margin: 0 0 8px;
  font-size: clamp(13px, 2.5vw, 14px);
  line-height: 1.7;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-table {
  margin: clamp(24px, 4vh, 32px) 0;
}

.legal-table-row {
  display: grid;
  grid-template-columns: clamp(120px, 25vw, 180px) 1fr;
  gap: clamp(16px, 4vw, 24px);
  padding: clamp(16px, 3vw, 20px) 0;
  border-bottom: 1px solid var(--border);
}

.legal-table-row:first-child {
  border-top: 1px solid var(--border);
}

.legal-table-row dt {
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 600;
  color: var(--foreground);
}

.legal-table-row dd {
  margin: 0;
  font-size: clamp(13px, 2.5vw, 14px);
  line-height: 1.7;
  color: var(--foreground);
}

.legal-note {
  margin-top: clamp(20px, 3vh, 24px);
  font-size: clamp(12px, 2vw, 13px);
  color: var(--muted);
  font-style: italic;
}

/* 横向き対応（スマートフォン） */
@media (max-height: 500px) and (orientation: landscape) {
  .page {
    padding-top: 80px;
  }

  .hero,
  .services,
  .content-section {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .sitemap-drawer {
    max-height: 90vh;
  }
}

/* Legal ページのレスポンシブ対応 */
@media (max-width: 768px) {
  .legal-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-nav {
    font-size: 12px;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .legal-nav-section {
    padding: 16px 0;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Trunk ポートフォリオページ */
.works-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(80px, 15vh, 120px) 0;
  gap: 20px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.works-loading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 15px);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 32px);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--background);
  border: 2px solid transparent;
  border-radius: clamp(8px, 2vw, 12px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* カテゴリ別のホバースタイル - 色付き枠線と影 */
.work-card.category-3d:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(147, 197, 253, 0.25);
}

.work-card.category-brand:hover {
  border-color: #fdba74;
  box-shadow: 0 8px 24px rgba(253, 186, 116, 0.25);
}

.work-card.category-web:hover {
  border-color: #86efac;
  box-shadow: 0 8px 24px rgba(134, 239, 172, 0.25);
}

.work-card.category-education:hover {
  border-color: #d8b4fe;
  box-shadow: 0 8px 24px rgba(216, 180, 254, 0.25);
}

.work-card.category-content:hover {
  border-color: #fde047;
  box-shadow: 0 8px 24px rgba(253, 224, 71, 0.25);
}

.work-card.category-app:hover {
  border-color: #fca5a5;
  box-shadow: 0 8px 24px rgba(252, 165, 165, 0.25);
}

.work-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
}

.work-thumbnail::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 4px solid #ffffff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.work-thumbnail::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 28px;
  background: #ffffff;
  transform: translate(16px, 18px) rotate(45deg);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.work-card:hover .work-thumbnail::after,
.work-card:hover .work-thumbnail::before {
  opacity: 0.9;
}

.work-image-gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.work-image-gallery .work-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  background-color: rgba(255, 255, 255, 1);
}

.work-card:hover .work-image {
  transform: scale(1.02);
}

.work-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #e5e5e5;
  color: #888888;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.work-content {
  padding: clamp(20px, 4vw, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.5vw, 8px);
}

.work-title {
  margin: 0;
  font-size: clamp(16px, 3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--foreground);
  line-height: 1.4;
}

.work-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 2vw, 13px);
  color: var(--muted);
  order: 3;
}

.work-category {
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.05);
  font-size: clamp(11px, 2vw, 12px);
}

/* カテゴリごとの色分け */
.work-category.category-3d {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.work-category.category-brand {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}

.work-category.category-web {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.work-category.category-education {
  background: rgba(168, 85, 247, 0.1);
  color: #9333ea;
}

.work-category.category-content {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
}

.work-category.category-app {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.work-year {
  font-weight: 400;
}

.work-description {
  margin: 0;
  font-size: clamp(13px, 2.5vw, 14px);
  line-height: 1.6;
  color: #666666;
  order: 2;
}

.work-details {
  margin: 12px 0 0 0;
  padding-left: 20px;
  font-size: clamp(12px, 2.5vw, 13px);
  line-height: 1.8;
  color: #666666;
  order: 4;
}

.work-details li {
  margin-bottom: 4px;
}

/* 作品リンクボタン */
.work-link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: clamp(13px, 2.5vw, 14px);
  font-weight: 600;
  transition: all 0.3s ease;
  order: 5;
}

.work-link-button:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.work-link-button:active {
  transform: translateX(2px);
}

/* Trunk ページのレスポンシブ対応 */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .work-card:hover {
    transform: none;
  }
  
  .work-content {
    padding: 16px;
  }
}

/* 画像ギャラリーモーダル */
.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal.is-open {
  display: flex;
  opacity: 1;
}

.gallery-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.gallery-modal-close {
  position: absolute;
  top: clamp(16px, 3vh, 24px);
  right: clamp(16px, 3vw, 24px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.gallery-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.gallery-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  z-index: 1001;
}

.gallery-modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gallery-modal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-modal-nav.prev {
  left: clamp(16px, 3vw, 32px);
}

.gallery-modal-nav.next {
  right: clamp(16px, 3vw, 32px);
}

.gallery-modal-counter {
  position: absolute;
  bottom: clamp(16px, 3vh, 24px);
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #ffffff;
  font-size: 14px;
  z-index: 1001;
}

@media (max-width: 640px) {
  .gallery-modal-content {
    width: 95%;
    height: 70vh;
  }

  .gallery-modal-close,
  .gallery-modal-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .gallery-modal-nav.prev {
    left: 8px;
  }

  .gallery-modal-nav.next {
    right: 8px;
  }
}

/* 動画サムネイル */
.work-video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.work-card:hover .work-video-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.play-icon {
  width: 64px;
  height: 64px;
  transition: transform 0.3s ease;
}

.work-card:hover .play-icon {
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .play-icon {
    width: 48px;
    height: 48px;
  }
}

/* 動画再生モーダル */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-modal.is-open {
  display: flex;
  opacity: 1;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: auto;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-player {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
  position: absolute;
  top: clamp(16px, 3vh, 24px);
  right: clamp(16px, 3vw, 24px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 1001;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

@media (max-width: 640px) {
  .video-modal-content {
    width: 95%;
    max-height: 70vh;
  }

  .video-modal-player {
    max-height: 70vh;
  }

  .video-modal-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* CTA Section */
.cta-section {
  padding: clamp(48px, 8vw, 80px) 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.02));
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-heading {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--foreground);
}

.cta-text {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--muted);
  margin: 0 0 32px 0;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 999px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

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

@media (max-width: 640px) {
  .cta-section {
    padding: clamp(32px, 6vw, 48px) 0;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 14px;
  }
}

