/*
Theme Name: Keiriya
Theme URI: https://example.com
Author: Keiriya
Author URI: https://example.com
Description: IT freelancer portfolio & service site theme for small business clients.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: keiriya
Tags: portfolio, business, one-page, responsive
*/

/* ===========================
   CSS Variables
   ── Forest Green Palette ──
   #1A2E1A  forest-dark   (最暗・フッターBG)
   #1D6B3F  forest        (プライマリ・ボタン)
   #3ACC7A  forest-accent (アクセント・明るい緑)
   #6BAA7A  forest-mid    (中間緑)
   #A8D5B8  forest-light  (淡い緑)
   #E8F4ED  forest-pale   (超淡い緑・背景tint)
   #F8FAF7  forest-bg     (ほぼ白・サイト背景)
   #6B8F6B  forest-muted  (くすみ緑)
=========================== */
:root {
  /* ---- Brand palette ---- */
  --forest-dark:   #1A2E1A;
  --forest:        #1D6B3F;
  --forest-accent: #3ACC7A;
  --forest-mid:    #6BAA7A;
  --forest-light:  #A8D5B8;
  --forest-pale:   #E8F4ED;
  --forest-bg:     #F8FAF7;
  --forest-muted:  #6B8F6B;

  /* ---- Semantic color aliases (サイト全体で参照する変数) ---- */
  --color-primary:        var(--forest);          /* メインCTA・ボタン・リンク */
  --color-primary-dark:   var(--forest-dark);     /* ホバー・強調 */
  --color-primary-mid:    var(--forest-mid);      /* アイコン背景・ボーダー */
  --color-primary-light:  var(--forest-pale);     /* 薄い背景・ハイライト */
  --color-accent:         var(--forest-accent);   /* アクセント・バッジ */
  --color-muted:          var(--forest-muted);    /* サブテキスト装飾 */

  /* ---- Tag colors (カテゴリバッジ) ---- */
  --tag-blue-bg:    var(--forest-pale);   --tag-blue-fg:   var(--forest);
  --tag-teal-bg:    #D6F5E3;              --tag-teal-fg:   #145C35;
  --tag-amber-bg:   #FFF3D6;             --tag-amber-fg:  #7A5200;
  --tag-coral-bg:   #FFE8E0;             --tag-coral-fg:  #8B2E10;
  --tag-purple-bg:  #EEF0FF;             --tag-purple-fg: #3830A0;

  /* ---- Background ---- */
  --color-bg:           var(--forest-bg);    /* ページ地 */
  --color-bg-secondary: var(--forest-pale);  /* セクション地・カード */

  /* ---- Border ---- */
  --color-border: #C8DDD0;               /* 緑みがかったボーダー */

  /* ---- Text ---- */
  --color-text:           #1A2E1A;       /* 本文（forest-dark流用） */
  --color-text-secondary: #3D5C3D;       /* サブテキスト */
  --color-text-muted:     var(--forest-muted); /* 薄テキスト */

  /* ---- Typography & Layout ---- */
  --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --nav-height: 60px;
  --max-width:  1100px;
}

/* ===========================
   Animations
=========================== */

/* ---- スクロール連動フェードイン ---- */
.anim {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.anim.is-visible {
  opacity: 1;
  transform: none;
}
/* ステガー遅延 */
.anim[data-d="1"] { transition-delay: 0.08s; }
.anim[data-d="2"] { transition-delay: 0.16s; }
.anim[data-d="3"] { transition-delay: 0.24s; }
.anim[data-d="4"] { transition-delay: 0.32s; }
.anim[data-d="5"] { transition-delay: 0.40s; }
.anim[data-d="6"] { transition-delay: 0.48s; }

/* ---- ヒーロー入場（ページロード時） ---- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero__catch  { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.hero__title  { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.22s both; }
.hero__sub    { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.34s both; }
.hero__badges { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.44s both; }
.hero__cta    { animation: heroFadeUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.54s both; }

/* ---- カードホバー ---- */
.card {
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.25s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(29,107,63,.12);
}

/* ---- ボタンホバー ---- */
.btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary:hover {
  box-shadow: 0 6px 20px rgba(29,107,63,.3);
}

/* prefers-reduced-motion に対応 */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .hero__catch, .hero__title, .hero__sub, .hero__badges, .hero__cta,
  .card, .btn { animation: none; transition: none; }
  .anim { opacity: 1; transform: none; }
}

/* ===========================
   Site Intro Overlay
=========================== */
#site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgb(8, 20, 12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1),
              opacity  0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

#site-intro.is-exit {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#site-intro.is-done {
  display: none;
}

.intro__center {
  text-align: center;
  color: #f0faf4;
}

.intro__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  animation: introLogoIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.intro__logo-img {
  height: 48px;
  width: auto;
}

.intro__icon {
  font-size: 36px;
  line-height: 1;
}

.intro__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.intro__bar {
  width: 200px;
  height: 2px;
  background: rgba(58, 204, 122, 0.15);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.intro__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--forest-accent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(58, 204, 122, 0.6);
  animation: introBarGrow 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes introLogoIn {
  to { opacity: 1; transform: none; }
}

@keyframes introBarGrow {
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  #site-intro { display: none !important; }
}

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

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

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

ul, ol {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section--gray {
  background: var(--color-bg-secondary);
}

.section-head {
  margin-bottom: 48px;
  text-align: center;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

.section-desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

/* ===========================
   Grid utilities
=========================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ===========================
   Tags / Badges
=========================== */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  line-height: 1.4;
}

.tag--blue   { background: var(--tag-blue-bg);   color: var(--tag-blue-fg); }
.tag--teal   { background: var(--tag-teal-bg);   color: var(--tag-teal-fg); }
.tag--amber  { background: var(--tag-amber-bg);  color: var(--tag-amber-fg); }
.tag--coral  { background: var(--tag-coral-bg);  color: var(--tag-coral-fg); }
.tag--purple { background: var(--tag-purple-bg); color: var(--tag-purple-fg); }
.tag--gray   { background: var(--color-bg-secondary); color: var(--color-text-secondary); }

/* ===========================
   Buttons
=========================== */
.btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: opacity .2s, transform .15s;
  line-height: 1;
  text-align: center;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}

.btn--lg {
  font-size: 16px;
  padding: 16px 36px;
}

/* ===========================
   Card
=========================== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card--highlight {
  border-color: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(29,107,63,.06);
}

/* ===========================
   Global Navigation
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(248,250,247,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo__icon { line-height: 1; }
.site-logo__name { color: var(--color-text); }

.global-nav,
.global-nav ul {
  list-style: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color .2s;
  text-decoration: none;
}

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

.header-cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 768px) {
  .global-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
  }

  .global-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

/* ===========================
   Main content offset
=========================== */
.site-main {
  padding-top: var(--nav-height);
  flex: 1;
}

/* ===========================
   Hero Section
=========================== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  background: rgb(8, 20, 12);
  color: #e8f4ed;
  overflow: hidden;
}

/* Sphere: ヒーロー全体の背景レイヤー */
.hero__sphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__sphere canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* テキスト・コンテンツをスフィアより前面に */
.hero .container {
  position: relative;
  z-index: 1;
}

/* ヒーロー内テキスト色 */
.hero .hero__catch { color: var(--forest-accent); }
.hero .hero__title { color: #f0faf4; }
.hero .hero__sub   { color: #a8d5b8; }

/* バッジ */
.hero .tag {
  background: rgba(58, 204, 122, 0.12);
  color: var(--forest-accent);
  border-color: rgba(58, 204, 122, 0.3);
}

/* アウトラインボタン */
.hero .btn--outline {
  color: #a8d5b8;
  border-color: rgba(168, 213, 184, 0.5);
}
.hero .btn--outline:hover {
  background: rgba(168, 213, 184, 0.1);
  border-color: #a8d5b8;
}

/* 画像あり: テキスト左・画像右の2カラム */
.hero--image .container {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
  text-align: left;
}
.hero--image .hero__badges,
.hero--image .hero__cta { justify-content: flex-start; }

.hero__image { width: 440px; flex-shrink: 0; }
.hero__image img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
  box-shadow: 0 8px 40px rgba(29,107,63,.15);
  border: 4px solid var(--forest-pale);
}

@media (max-width: 900px) {
  .hero__sphere canvas { object-fit: cover; }
  .hero--image .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero--image .hero__badges,
  .hero--image .hero__cta { justify-content: center; }
  .hero__image { width: 200px; margin: 0 auto; }
}

.hero__text { min-width: 0; }

.hero__catch {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero__sub {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

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

/* ===========================
   Stats Bar
=========================== */
.stats {
  padding: 48px 0;
  background: var(--color-bg-secondary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}

.stats__num {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stats__num--teal  { color: var(--forest-accent); }
.stats__num--amber { color: var(--forest-mid); }

.stats__label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

@media (max-width: 600px) {
  .stats__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===========================
   Services
=========================== */
.service-card {
  padding: 24px;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.service-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.service-card__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================
   Portfolio / Works
=========================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.work-card {
  padding: 0;
  overflow: hidden;
}

.work-card__thumb {
  aspect-ratio: 16/9;
  background: var(--color-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
  overflow: hidden;
}

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

.work-card:hover .work-card__thumb img {
  transform: scale(1.06);
}

.work-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.work-card__body {
  padding: 16px;
}

.work-card__title {
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.work-card__result {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.works-more {
  text-align: right;
  margin-top: 24px;
}

/* ===========================
   Testimonials
=========================== */
.testimonial-card {
  padding: 24px;
}

.testimonial-card__body {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial-card__author {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ===========================
   CTA Section
=========================== */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--forest-pale) 0%, var(--forest-bg) 100%);
}

.cta-section__title {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

/* ===========================
   Portfolio Page — Sidebar Layout
=========================== */
.portfolio-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.portfolio-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.portfolio-main {
  flex: 1;
  min-width: 0;
}

.filter-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-list li {
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}

.filter-list li.is-active,
.filter-list li:hover {
  color: var(--color-primary);
  font-weight: 600;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-divider {
  height: 1px;
  background: var(--color-border);
  margin: 14px 0;
}

/* Work list item */
.work-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.work-list-item__thumb {
  width: 100px;
  height: 70px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-secondary);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--color-text-muted);
}

.work-list-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-list-item__link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.work-list-item__body { flex: 1; }

.work-list-item__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.work-list-item__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.work-list-item__date {
  font-size: 11px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Tech Stack */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tech-stack-card { padding: 16px; }

.tech-stack-card__label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tech-stack-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 900px) {
  .portfolio-layout { flex-direction: column; }
  .portfolio-sidebar { width: 100%; position: static; }
  .tech-stack-grid { grid-template-columns: 1fr 1fr; }
}

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

/* ===========================
   Contact Page
=========================== */
.contact-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.contact-form-wrap {
  flex: 1;
  min-width: 0;
}

.contact-sidebar {
  width: 240px;
  flex-shrink: 0;
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-label .required {
  color: #c0392b;
  margin-left: 4px;
  font-size: 11px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .2s;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29,107,63,.12);
}

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

.budget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.budget-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.budget-label input { cursor: pointer; }

.privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 20px;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.flow-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-q {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}

.faq-a {
  font-size: 12px;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .contact-layout { flex-direction: column; }
  .contact-sidebar { width: 100%; }
}

/* ===========================
   Blog / Archive
=========================== */
.blog-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.blog-main { flex: 1; min-width: 0; }

.blog-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.category-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.category-tab.is-active,
.category-tab:hover {
  background: var(--color-primary);
  color: #fff;
}

.post-card {
  padding: 0;
  overflow: hidden;
  transition: box-shadow .2s;
}

.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  background: var(--color-bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 16px;
}

.post-card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin: 8px 0 4px;
}

.post-card__meta {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* Pagination */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: .2s;
}

.pagination .current,
.pagination a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

@media (max-width: 768px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar { width: 100%; position: static; }
}

/* ===========================
   Single Post
=========================== */
.single-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.single-main { flex: 1; min-width: 0; }

.post-header {
  margin-bottom: 32px;
}

.post-header__title {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 700;
  line-height: 1.35;
  margin: 12px 0;
}

.post-header__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  gap: 16px;
  align-items: center;
}

.post-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  background: var(--color-bg-secondary);
}

.post-content {
  font-size: 16px;
  line-height: 1.9;
}

.post-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--color-primary);
}

.post-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 36px 0 12px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul, .post-content ol {
  list-style: disc;
  padding-left: 28px;
  margin-bottom: 20px;
}

.post-content ol {
  list-style: decimal;
}

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 3px solid var(--color-border);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.post-content code {
  background: var(--color-bg-secondary);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background: var(--forest-dark);
  color: #d4edda;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 24px;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 14px;
}

.post-cta-banner {
  background: linear-gradient(135deg, var(--forest-pale) 0%, var(--forest-bg) 100%);
  border: 1px solid var(--forest-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 60px;
  text-align: center;
}

.post-cta-banner__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-cta-banner__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .single-layout { flex-direction: column; }
}

/* ===========================
   Sidebar widgets (blog/single)
=========================== */
.widget {
  margin-bottom: 24px;
}

.widget__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.recent-post-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.recent-post-item__thumb {
  width: 60px;
  height: 44px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-secondary);
}

.recent-post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post-item__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
}

.recent-post-item__date {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--forest-dark);
  color: var(--forest-muted);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-brand__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--forest-accent);
}

.footer-brand__desc {
  font-size: 12px;
  line-height: 1.8;
}

.footer-sns {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-sns__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--forest-accent);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}

.footer-sns__link:hover {
  background: rgba(58,204,122,.15);
  border-color: var(--forest-accent);
}

.footer-nav__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--forest-light);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav li { list-style: none; }

.footer-nav a {
  font-size: 13px;
  color: var(--forest-muted);
  transition: color .2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(107,143,107,.3);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-bottom__links {
  display: flex;
  gap: 20px;
}

.footer-bottom__links a {
  color: var(--forest-muted);
  transition: color .2s;
}

.footer-bottom__links a:hover { color: var(--forest-accent); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===========================
   404 Page
=========================== */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-page__num {
  font-size: 80px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-page__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

/* ===========================
   Utility
=========================== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.w-full { width: 100%; }

/* Load more */
.load-more-wrap {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  border: 1.5px dashed var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
  font-size: 13px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 100%;
  transition: .2s;
}

.load-more-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===========================
   Image Placeholder
   アイキャッチがない場合の代替表示
=========================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--forest-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--forest-muted);
}

.img-placeholder--sm {
  min-height: 70px;
  font-size: 20px;
}

/* ===========================
   Profile Card（お問い合わせサイドバー）
=========================== */
.profile-card {
  text-align: center;
  padding: 24px 20px;
}

.profile-card__img-wrap {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--forest-pale);
  box-shadow: 0 2px 12px rgba(29,107,63,.1);
  background: var(--forest-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.profile-card__img-placeholder {
  font-size: 40px;
  line-height: 1;
}

.profile-card__name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.profile-card__bio {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.profile-card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ===========================
   Pain Points (こんなお悩みは？)
=========================== */
.pain-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
}

.pain-card:hover {
  border-color: var(--forest-light);
  box-shadow: 0 4px 16px rgba(29,107,63,.07);
}

.pain-card__icon {
  display: block;
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.pain-card__text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================
   Works Empty State
=========================== */
.works-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--color-bg);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-lg);
}

.works-empty__icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}

.works-empty__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.works-empty__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ===========================
   Flow Steps（ご依頼の流れ）
=========================== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* 横の線 */
.flow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 4px);
  right: calc(12.5% + 4px);
  height: 2px;
  background: linear-gradient(to right, var(--forest-light), var(--forest-mid));
  z-index: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.flow-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--color-bg-secondary);
}

.flow-step__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.flow-step__desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .flow-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .flow-steps::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, var(--forest-light), var(--forest-mid));
  }

  .flow-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }

  .flow-step__num {
    margin-bottom: 0;
  }

  .flow-step__body { flex: 1; }
}

/* ===========================
   Services Detail Page
=========================== */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.services-detail-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.services-detail-card__icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 16px;
}

.services-detail-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.services-detail-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.services-detail-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.services-detail-card__list li {
  font-size: 13px;
  color: var(--color-text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.services-detail-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
}

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

/* ===========================
   Profile Page
=========================== */
.profile-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.profile-hero {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
}

.profile-hero__img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--forest-pale);
  box-shadow: 0 2px 16px rgba(29,107,63,.12);
  background: var(--forest-pale);
}

.profile-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-hero__body {
  flex: 1;
  min-width: 0;
}

.profile-hero__name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.profile-hero__bio {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .profile-layout {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
    position: static;
  }
  .profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===========================
   News / お知らせ List
=========================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: background .15s;
  flex-wrap: wrap;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--forest-pale);
}

.news-item__date {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.news-item__title {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

/* ===========================
   FAQ Accordion（よくある質問）
=========================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  transition: border-color .2s;
}

.faq-accordion[open] {
  border-color: var(--forest-mid);
}

.faq-accordion__q {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  line-height: 1.5;
}

.faq-accordion__q::-webkit-details-marker { display: none; }

.faq-accordion__q::before {
  content: 'Q';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-accordion__q::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform .2s;
  flex-shrink: 0;
}

.faq-accordion[open] .faq-accordion__q::after {
  transform: rotate(45deg);
}

.faq-accordion__a {
  padding: 0 20px 16px 56px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* =====================================================
   FUTURISTIC LAYER
===================================================== */
:root {
  --glow-accent:    rgba(58, 204, 122, 0.45);
  --glow-accent-sm: rgba(58, 204, 122, 0.15);
  --grid-line:      rgba(29, 107, 63, 0.07);
  --grid-line-dark: rgba(58, 204, 122, 0.05);
  --corner-size:    10px;
}

/* Body grid */
body {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Intro */
.intro__name { font-family: 'Courier New', monospace; letter-spacing: 0.1em; text-shadow: 0 0 12px var(--glow-accent); }
.intro__bar-fill { box-shadow: 0 0 10px rgba(58,204,122,0.8), 0 0 20px rgba(58,204,122,0.4); }

/* Header */
.site-header { background: rgba(8,20,12,0.94); border-bottom: 1px solid rgba(58,204,122,0.18); backdrop-filter: blur(14px); }
.site-header[style*="box-shadow"] { border-bottom-color: rgba(58,204,122,0.25); }
.site-logo__name { color: var(--forest-accent); font-family: 'Courier New', monospace; letter-spacing: 0.06em; text-shadow: 0 0 10px var(--glow-accent-sm); }
.site-logo__icon { filter: drop-shadow(0 0 4px var(--glow-accent)); }
.nav-toggle span { background: var(--forest-accent); }

/* Nav links */
.global-nav a {
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-muted);
  position: relative;
}
.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--forest-accent);
  box-shadow: 0 0 6px var(--glow-accent);
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.global-nav a:hover { color: var(--forest-accent); text-shadow: 0 0 8px var(--glow-accent-sm); }
.global-nav a:hover::after { width: 100%; }

/* Buttons */
.btn--primary {
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -80px;
  width: 50px; height: 100%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { box-shadow: 0 4px 20px var(--glow-accent), 0 0 0 1px rgba(58,204,122,0.3); transform: translateY(-2px); }
.btn--outline {
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  border-radius: 0;
  border: 1.5px solid var(--color-border);
}
.btn--outline:hover { border-color: var(--forest-accent); color: var(--forest-accent); box-shadow: 0 0 10px var(--glow-accent-sm); }
.hero .btn--outline { border-color: rgba(168,213,184,0.4); }
.hero .btn--outline:hover { background: var(--forest-pale); border-color: var(--color-primary); color: var(--color-primary); box-shadow: none; }

/* Section labels & heads */
.section-label { font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: 0.15em; color: var(--forest-accent); text-shadow: 0 0 8px var(--glow-accent-sm); }
.section-label::before { content: '// '; opacity: 0.55; }
.section-head { margin-bottom: 72px; }
.section-head::after {
  content: '';
  display: block;
  width: 36px; height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(to right, var(--forest-accent), transparent);
  box-shadow: 0 0 8px var(--glow-accent);
}

/* Spacing */
.section { padding: 120px 0; }
.section--gray { background: rgba(232,244,237,0.6); backdrop-filter: blur(2px); }
.section + .section,
.section + .section--gray,
.section--gray + .section { border-top: 1px solid rgba(29,107,63,0.08); }
.grid-2 { gap: 28px; }
.grid-3 { gap: 28px; }
.grid-4 { gap: 24px; }
.works-grid { gap: 28px; }

/* Cards */
.card {
  position: relative;
  background: rgba(248,250,247,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(29,107,63,0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.card::before, .card::after {
  content: '';
  position: absolute;
  width: var(--corner-size); height: var(--corner-size);
  border-color: var(--forest-accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { border-color: rgba(58,204,122,0.3); box-shadow: 0 8px 32px rgba(58,204,122,0.08), inset 0 1px 0 rgba(58,204,122,0.06); }

/* Stats & CTA — shared parallax background */
.stats, .cta-section {
  background-color: var(--forest-dark);
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(58,204,122,0.07) 0%, transparent 65%);
  background-size: 48px 48px, 48px 48px, cover;
  background-attachment: fixed, fixed, fixed;
  position: relative;
  overflow: hidden;
}
.stats { padding: 72px 0; }
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--forest-dark) 22%, var(--forest-dark) 78%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.stats .container { position: relative; z-index: 2; }
.stats__grid > div {
  padding: 20px 16px;
  border: 1px solid rgba(58,204,122,0.1);
  border-radius: var(--radius-sm);
  background: rgba(58,204,122,0.03);
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stats__grid > div::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--forest-accent), transparent);
  opacity: 0.5;
}
.stats__grid > div:hover { border-color: rgba(58,204,122,0.25); box-shadow: 0 0 20px rgba(58,204,122,0.06); }
.stats__num { font-family: 'Courier New', monospace; color: var(--forest-accent); text-shadow: 0 0 14px var(--glow-accent); }
.stats__num--teal  { color: var(--forest-accent); text-shadow: 0 0 14px var(--glow-accent); }
.stats__num--amber { color: var(--forest-mid);    text-shadow: 0 0 10px rgba(107,170,122,0.5); }
.stats__label { color: var(--forest-muted); font-size: 12px; letter-spacing: 0.04em; }

.cta-section { padding: 120px 0; }
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--forest-dark) 0%, transparent 22%, transparent 78%, var(--forest-dark) 100%);
  pointer-events: none;
  z-index: 1;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse at center, rgba(58,204,122,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section__title { color: var(--forest-light); }
.cta-section__desc  { color: var(--forest-muted); }

/* Hero */
.hero {
  background: var(--forest-bg);
  color: var(--color-text);
  padding: 200px 0 180px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .hero__catch { color: var(--color-primary); }
.hero .hero__title { color: var(--color-text); }
.hero .hero__sub   { color: var(--color-text-secondary); }
.hero .tag { background: var(--forest-pale); color: var(--forest); border-color: var(--forest-light); box-shadow: none; }
.hero__sphere canvas { opacity: 0.55; }

/* Service cards */
.service-card__icon { clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%); border-radius: 0; border: none; box-shadow: 0 0 0 2px rgba(58,204,122,0.15); }

/* Pain cards */
.pain-card { background: rgba(248,250,247,0.6); border: 1px solid rgba(29,107,63,0.1); backdrop-filter: blur(4px); transition: border-color 0.3s, box-shadow 0.3s; }
.pain-card:hover { border-color: rgba(58,204,122,0.3); box-shadow: 0 4px 16px rgba(58,204,122,0.08); }
.pain-card__icon { filter: drop-shadow(0 0 4px var(--glow-accent-sm)); }

/* Flow steps */
.flow-step__num {
  background: transparent;
  border: 2px solid var(--forest-accent);
  color: var(--forest-accent);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  box-shadow: 0 0 0 5px rgba(58,204,122,0.08), 0 0 18px rgba(58,204,122,0.2);
  position: relative;
}
.flow-step__num::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(58,204,122,0.08); }
.flow-step:hover .flow-step__num { box-shadow: 0 0 0 5px rgba(58,204,122,0.12), 0 0 28px rgba(58,204,122,0.3); background: rgba(58,204,122,0.06); }
.flow-steps::before { background: linear-gradient(to right, transparent 0%, rgba(58,204,122,0.35) 20%, rgba(107,170,122,0.4) 50%, rgba(58,204,122,0.35) 80%, transparent 100%); height: 1px; opacity: 1; }
.flow-step__title { font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: 0.03em; }

/* Work cards */
.work-card__thumb { position: relative; overflow: hidden; }
.work-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 60%, rgba(58,204,122,0.08) 100%); opacity: 0; transition: opacity 0.3s ease; }
.work-card:hover .work-card__thumb::after { opacity: 1; }

/* Footer */
.site-footer { position: relative; overflow: hidden; }
.site-footer .container { position: relative; z-index: 1; }
.footer-brand__name { font-family: 'Courier New', monospace; letter-spacing: 0.06em; text-shadow: 0 0 8px var(--glow-accent-sm); }
.footer-nav__title  { font-family: 'Courier New', monospace; letter-spacing: 0.1em; }
.footer-bottom { border-top: 1px solid rgba(58,204,122,0.12); }

/* FAQ */
.faq-accordion__q::before { background: transparent; border: 1.5px solid var(--forest-accent); color: var(--forest-accent); font-family: 'Courier New', monospace; box-shadow: 0 0 8px rgba(58,204,122,0.2); }
.faq-accordion[open] { border-color: rgba(58,204,122,0.35); box-shadow: 0 0 0 1px rgba(58,204,122,0.06); }

/* Forms */
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--forest-accent);
  box-shadow: 0 0 0 3px rgba(58,204,122,0.12), 0 0 10px rgba(58,204,122,0.08);
  outline: none;
}

/* Post content */
.post-content pre { border: 1px solid rgba(58,204,122,0.15); box-shadow: inset 0 0 0 1px rgba(58,204,122,0.05); }
.post-content h2  { border-left-color: var(--forest-accent); box-shadow: -4px 0 12px rgba(58,204,122,0.15); }

/* Misc */
.profile-card__img-wrap, .profile-hero__img-wrap { border-color: rgba(58,204,122,0.35); box-shadow: 0 0 0 4px rgba(58,204,122,0.07), 0 0 16px rgba(58,204,122,0.1); }
.news-list { border-color: rgba(29,107,63,0.12); background: rgba(248,250,247,0.7); backdrop-filter: blur(4px); }
.news-item { border-bottom-color: rgba(29,107,63,0.08); }
.news-item:hover { background: rgba(58,204,122,0.04); }
.news-item__date { font-family: 'Courier New', monospace; font-size: 11px; }
.pagination .current, .pagination a:hover { box-shadow: 0 0 10px rgba(29,107,63,0.3); }
.anim { transform: translateY(20px) scale(0.98); }
.anim.is-visible { transform: none; }
.works-empty { border-color: rgba(58,204,122,0.15); background: rgba(248,250,247,0.6); backdrop-filter: blur(4px); }
.category-tab { border-radius: 0; clip-path: polygon(0 0,calc(100% - 5px) 0,100% 5px,100% 100%,5px 100%,0 calc(100% - 5px)); font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: 0.05em; }
.services-detail-card { border-top: 2px solid transparent; transition: border-color 0.3s ease; }
.services-detail-card:hover { border-top-color: var(--forest-accent); }
.load-more-btn { font-family: 'Courier New', monospace; font-size: 12px; letter-spacing: 0.08em; border-style: solid; clip-path: polygon(0 0,calc(100% - 6px) 0,100% 6px,100% 100%,6px 100%,0 calc(100% - 6px)); border-radius: 0; }
.load-more-btn:hover { border-color: var(--forest-accent); color: var(--forest-accent); box-shadow: 0 0 12px var(--glow-accent-sm); }

/* Media queries */
@media (max-width: 768px) {
  .global-nav { background: rgba(8,20,12,0.97); border-bottom: 1px solid rgba(58,204,122,0.15); backdrop-filter: blur(12px); }
  .global-nav a { color: var(--forest-muted); }
  .stats, .cta-section { background-attachment: scroll, scroll, scroll; }
  .flow-steps::before { background: linear-gradient(to bottom, transparent 0%, rgba(58,204,122,0.35) 20%, rgba(58,204,122,0.35) 80%, transparent 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before { display: none; }
  .stats, .cta-section { background-attachment: scroll, scroll, scroll; }
}
