/* ============================================================
   STUDIO S TECH — Main CSS
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --bg:         #0a0a0a;
  --bg-card:    #111111;
  --bg-cta:     #0d1117;
  --fg:         #e5e5e5;
  --fg-muted:   #a3a3a3;
  --primary:    #3b82f6;
  --primary-hl: #60a5fa;
  --cyan:       #00bcd4;
  --border:     #222222;
  --muted-bg:   #171717;
  --max-w:      1280px;
}

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

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

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   Utility
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.section-label .num {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-label .slash {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--primary);
}

.section-label .name {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-label .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   Header
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}

#site-header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.site-logo svg { flex-shrink: 0; }

.site-logo span {
  font-size: 17px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.global-nav a:hover { color: var(--fg); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--fg);
}

.mobile-nav {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.mobile-nav.open { display: block; }

.mobile-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--fg); }

@media (max-width: 767px) {
  .global-nav { display: none; }
  .hamburger { display: block; }
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-placeholder span {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: radial-gradient(circle, #3b82f6 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 24px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.hero-line {
  width: 40px;
  height: 1px;
  background: var(--primary);
  margin: 0 auto 24px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

.hero-badge .dot { color: var(--primary); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--fg-muted);
  transition: color 0.2s;
  animation: bounce 2s infinite;
}

.hero-scroll:hover { color: var(--fg); }

.hero-scroll svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Stats
   ============================================================ */
#stats {
  background: var(--bg-card);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
  divide-color: var(--border);
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-prefix {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  max-width: 260px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 24px;
  }
  .stat-item:last-child { border-bottom: none; }
}

/* ============================================================
   Services
   ============================================================ */
#services {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  border: 1px solid var(--border);
  padding: 32px;
  transition: border-color 0.3s;
  display: block;
}

.services-footer {
  margin-top: 48px;
  text-align: center;
}

.services-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 40px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: background 0.3s, color 0.3s;
}

.services-more-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.services-more-btn:hover {
  background: var(--primary);
  color: #fff;
}

.services-more-btn:hover svg { transform: translateX(4px); }

.service-index {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 16px;
  display: block;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted-bg);
  color: var(--fg-muted);
}

.arrow-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: var(--fg-muted);
  transition: color 0.2s, transform 0.2s;
}

.service-card:hover .arrow-icon {
  color: var(--primary);
  transform: translateX(4px);
}

.arrow-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

/* ============================================================
   Works
   ============================================================ */
#works {
  background: var(--bg-card);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.works-intro {
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-muted);
  margin: 0 0 40px;
  position: relative;
  z-index: 1;
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.work-card {
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-width: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.work-card:hover {
  border-color: #333;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.work-card__thumb {
  position: relative;
  overflow: hidden;
  flex: 0 0 clamp(200px, 26vw, 280px);
  min-height: 188px;
  align-self: stretch;
}

.work-card__thumb.has-image .work-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card__thumb.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #141820 0%, #0d1117 50%, #121a24 100%);
}

.work-card__thumb.is-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.work-head-token {
  position: relative;
  z-index: 1;
  font-size: clamp(13px, 2.2vw, 15px);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: rgba(229, 229, 229, 0.88);
  text-transform: uppercase;
}

.work-head-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(59, 130, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.work-card__thumb--type-migration.is-placeholder {
  background: linear-gradient(145deg, #152028 0%, #0f1419 100%);
}

.work-card__thumb--type-migration.is-placeholder::before {
  background-image:
    linear-gradient(rgba(0, 188, 212, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 188, 212, 0.07) 1px, transparent 1px);
}

.work-card__thumb--type-hotfix.is-placeholder {
  background: linear-gradient(145deg, #221818 0%, #120d0d 100%);
}

.work-card__thumb--type-hotfix.is-placeholder::before {
  background-image:
    linear-gradient(rgba(248, 113, 113, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248, 113, 113, 0.06) 1px, transparent 1px);
}

.work-card__thumb--type-feature.is-placeholder {
  background: linear-gradient(145deg, #181622 0%, #0f0e18 100%);
}

.work-card__thumb--type-feature.is-placeholder::before {
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.07) 1px, transparent 1px);
}

.work-card__thumb--type-maintenance.is-placeholder {
  background: linear-gradient(145deg, #161c18 0%, #0d120f 100%);
}

.work-card__thumb--type-maintenance.is-placeholder::before {
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.06) 1px, transparent 1px);
}

.work-card__thumb--type-new-build.is-placeholder {
  background: linear-gradient(145deg, #181a22 0%, #0e1018 100%);
}

.work-card__thumb--type-new-build.is-placeholder::before {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.07) 1px, transparent 1px);
}

.work-card__thumb--type-default.is-placeholder::before {
  opacity: 0.35;
}

.work-card__body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 0;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.work-card__type {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.work-card__industry {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.work-card__title {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1.45;
  margin-bottom: 10px;
}

.work-card__excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 14px;
  flex: 1;
}

.work-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 0;
}

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--primary);
  transition: gap 0.2s;
}

.work-card__link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.work-card:hover .work-card__link svg { transform: translateX(3px); }

/* アコーディオン */
.work-card--expandable {
  flex-wrap: wrap;
  cursor: default;
}

.work-card__toggle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 18px;
  background: var(--primary);
  border: none;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.work-card__toggle:hover { background: var(--primary-hl); }

.work-card__chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s ease;
}

.work-card__toggle[aria-expanded="true"] .work-card__toggle-label::before {
  content: '閉じる';
}

.work-card__toggle[aria-expanded="true"] .work-card__toggle-label {
  font-size: 0;
}

.work-card__toggle[aria-expanded="true"] .work-card__toggle-label::before {
  font-size: 12px;
}

.work-card__toggle[aria-expanded="true"] .work-card__chevron {
  transform: rotate(180deg);
}

.work-card__detail {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 0 solid var(--border);
}

.work-card__detail.is-open {
  max-height: 800px;
  border-top-width: 1px;
}

.work-card__detail-inner {
  padding: 28px 28px 28px calc(clamp(200px, 26vw, 280px) + 26px);
  font-size: 14px;
  line-height: 1.9;
  color: var(--fg-muted);
}

.work-card__detail-inner p { margin-bottom: 1.4em; }
.work-card__detail-inner p:last-child { margin-bottom: 0; }

@media (max-width: 767px) {
  .work-card__detail-inner {
    padding: 20px 20px 24px;
  }
}

.works-more {
  text-align: right;
  position: relative;
  z-index: 1;
}

.works-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.works-more a:hover { color: var(--fg); }

.works-more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.works-more a:hover svg { transform: translateX(4px); }

@media (max-width: 767px) {
  .work-card {
    flex-direction: column;
  }

  .work-card__thumb {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .work-card__body {
    padding: 18px 20px 22px;
  }
}

/* ============================================================
   Voice
   ============================================================ */
#voice {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.voice-card {
  border: 1px solid var(--border);
  border-left: 2px solid var(--primary);
  padding: 32px;
}

.voice-quote-mark {
  font-size: 48px;
  line-height: 1;
  color: var(--primary);
  font-family: Georgia, serif;
  margin-bottom: 16px;
  display: block;
}

.voice-quote {
  font-size: 16px;
  line-height: 1.8;
  color: var(--fg);
  margin-bottom: 24px;
}

.voice-client {
  font-size: 13px;
  color: var(--fg-muted);
}

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

/* ============================================================
   CTA
   ============================================================ */
#cta {
  background: var(--bg-cta);
  padding: 120px 0;
  text-align: center;
}

.cta-line {
  width: 60px;
  height: 1px;
  background: var(--primary);
  margin: 0 auto 24px;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.4;
}

.cta-sub {
  font-size: 14px;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.cta-btn {
  display: inline-block;
  padding: 18px 56px;
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 500;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 0 24px rgba(59,130,246,0.3);
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: transparent;
  color: var(--primary);
  box-shadow: 0 0 32px rgba(59,130,246,0.5);
}

.cta-mail {
  display: block;
  margin-top: 20px;
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.cta-mail:hover { color: var(--fg); }

/* ============================================================
   Footer
   ============================================================ */
#site-footer {
  position: relative;
  padding-top: 40px;
  overflow: hidden;
}

.footer-ghost {
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 700;
  color: var(--fg);
  opacity: 0.04;
  pointer-events: none;
  white-space: nowrap;
}

.footer-border { height: 1px; background: var(--border); }

.footer-inner {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 300;
  color: var(--fg);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 12px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--fg); }

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
}

/* ============================================================
   Page: Services (page-services.php)
   ============================================================ */
.page-hero {
  padding: 180px 0 80px;
  background: var(--bg-card);
}

.page-hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.page-hero-desc {
  font-size: 15px;
  color: var(--fg-muted);
  max-width: 640px;
  line-height: 1.8;
}

.page-section {
  padding: 80px 0;
}

.services-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .services-grid-2col {
    grid-template-columns: 1fr;
  }
}

.why-us-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.why-us-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.why-us-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.9;
}

.scope-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.scope-table th {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.scope-table td {
  font-size: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.scope-table tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   Page: Works (page-works.php)
   ============================================================ */
.works-filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.works-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.works-page-grid {
  margin-bottom: 0;
}

/* work-card type variants — security / ssl */
.work-card__thumb--type-security.is-placeholder {
  background: linear-gradient(145deg, #1a1620 0%, #110f18 100%);
}

.work-card__thumb--type-security.is-placeholder::before {
  background-image:
    linear-gradient(rgba(234, 179, 8, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 179, 8, 0.06) 1px, transparent 1px);
}

.work-card__thumb--type-ssl.is-placeholder {
  background: linear-gradient(145deg, #152018 0%, #0f180f 100%);
}

.work-card__thumb--type-ssl.is-placeholder::before {
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.06) 1px, transparent 1px);
}

/* ============================================================
   Page: Works single (single-works.php)
   ============================================================ */
.sst-work-single__hero .page-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

.sst-work-single__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}

.sst-work-single {
  padding: 64px 0 80px;
}

.sst-work-single__body {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg);
}

.sst-work-single__body p {
  margin-bottom: 1.6em;
}

.sst-work-single__body p:last-child {
  margin-bottom: 0;
}

.sst-work-single__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.sst-work-single__back {
  margin-top: 48px;
}

.sst-work-single__back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 0.2s;
}

.sst-work-single__back a:hover { color: var(--fg); }

.sst-work-single__back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.sst-work-single__back a:hover svg { transform: translateX(-3px); }

/* ============================================================
   Page: About (page-about.php)
   ============================================================ */
.about-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 767px) {
  .about-profile-grid {
    grid-template-columns: 1fr;
  }
}

.about-photo-placeholder {
  aspect-ratio: 1;
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo-placeholder span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.about-profile-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.about-profile-body .about-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-profile-body .about-text:last-child {
  margin-bottom: 0;
}

.about-duration {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 20px;
}

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

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

.skill-block {
  border: 1px solid var(--border);
  padding: 28px;
}

.skill-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 120px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 80px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-year {
  position: absolute;
  left: -110px;
  top: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

.timeline-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .timeline {
    padding-left: 80px;
  }

  .timeline::before {
    left: 40px;
  }

  .timeline-item::before {
    left: -44px;
  }

  .timeline-year {
    left: -70px;
  }
}

.workstyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.workstyle-card {
  border: 1px solid var(--border);
  padding: 32px;
}

.workstyle-en {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--primary);
  margin-bottom: 12px;
}

.workstyle-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--fg);
}

.workstyle-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.8;
}

/* ============================================================
   Page: Voice (page-voice.php)
   ============================================================ */
.voice-page-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}

.voice-page-list .voice-quote {
  margin: 0;
}

.voice-service {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-top: 12px;
}

/* ============================================================
   Page: Contact (page-contact.php)
   ============================================================ */
.form-notice {
  background: var(--bg-card);
  border-left: 2px solid var(--primary);
  padding: 24px;
  margin-bottom: 48px;
}

.form-notice ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-notice li {
  font-size: 13px;
  color: var(--fg-muted);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--primary);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-success {
  text-align: center;
  padding: 60px 0;
  color: var(--fg);
}

.form-error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 0;
  margin-bottom: 24px;
}

.form-error p {
  margin: 0 0 8px;
}

.form-error p:last-child {
  margin-bottom: 0;
}

.contact-mail-alt {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
}

.contact-mail-alt a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-mail-alt a:hover {
  color: var(--primary-hl);
}

/* ============================================================
   Skill cards (About page)
   ============================================================ */
.skill-card {
    background: var(--color-bg, #111);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 1.5rem 1.25rem 1.25rem;
    border-top-width: 3px;
}

.skill-card--teal   { border-top-color: #1D9E75; }
.skill-card--purple { border-top-color: #7F77DD; }
.skill-card--blue   { border-top-color: #378ADD; }
.skill-card--coral  { border-top-color: #D85A30; }
.skill-card--amber  { border-top-color: #BA7517; }
.skill-card--pink   { border-top-color: #D4537E; }

.skill-card-index {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 6px;
}

.skill-card-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 1rem;
}

.tag--teal   { background: rgba(29,158,117,0.12);  color: #5DCAA5; border: 1px solid rgba(29,158,117,0.2); }
.tag--purple { background: rgba(127,119,221,0.12); color: #AFA9EC; border: 1px solid rgba(127,119,221,0.2); }
.tag--blue   { background: rgba(55,138,221,0.12);  color: #85B7EB; border: 1px solid rgba(55,138,221,0.2); }
.tag--coral  { background: rgba(216,90,48,0.12);   color: #F0997B; border: 1px solid rgba(216,90,48,0.2); }
.tag--amber  { background: rgba(186,117,23,0.12);  color: #FAC775; border: 1px solid rgba(186,117,23,0.2); }
.tag--pink   { background: rgba(212,83,126,0.12);  color: #ED93B1; border: 1px solid rgba(212,83,126,0.2); }

/* ============================================================
   Workstyle 3×3 grid (About page)
   ============================================================ */
.workstyle-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .workstyle-grid--3col {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .workstyle-grid--3col {
        grid-template-columns: repeat(2, 1fr);
    }
}
