﻿/*
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
   ── Ocean Blue Palette ──
   #1A1E2E  forest-dark   (最暗・フッターBG)
   #1B4B8A  forest        (プライマリ・ボタン)
   #3A7ACC  forest-accent (アクセント・明るい青)
   #6B8BAA  forest-mid    (中間青)
   #A8C4D5  forest-light  (淡い青)
   #E8EEF4  forest-pale   (超淡い青・背景tint)
   #F7F8FA  forest-bg     (ほぼ白・サイト背景)
   #6B7F8F  forest-muted  (くすみ青)
=========================== */
:root {
  /* ===== Colors ===== */
  --c-text:      #1A1E2E;
  --c-text-sub:  #3D4D6B;
  --c-text-soft: #6B7F8F;

  --c-primary:   #1B4B8A;
  --c-accent:    #3A7ACC;
  --c-mid:       #6B8BAA;
  --c-light:     #A8C4D5;
  --c-pale:      #E8EEF4;

  --c-bg:        #F7F8FA;
  --c-surface:   #ffffff;
  --c-dark:      #0a0c12;
  --c-border:    #C8D5DD;

  --c-glow:      rgba(58, 122, 204, 0.45);
  --c-glow-sm:   rgba(58, 122, 204, 0.15);
  --c-grid:      rgba(29,  63, 107, 0.07);
  --c-grid-dark: rgba(58, 122, 204, 0.05);

  /* Tag colors */
  --tag-blue-bg:   var(--c-pale);    --tag-blue-fg:   var(--c-primary);
  --tag-teal-bg:   #D6E5F5;          --tag-teal-fg:   #14355C;
  --tag-amber-bg:  #FFF3D6;          --tag-amber-fg:  #7A5200;
  --tag-coral-bg:  #FFE8E0;          --tag-coral-fg:  #8B2E10;
  --tag-purple-bg: #EEF0FF;          --tag-purple-fg: #3830A0;

  /* ===== Font sizes ===== */
  --fs-xs:   20px;
  --fs-sm:   24px;
  --fs-base: 26px;
  --fs-md:   28px;
  --fs-lg:   clamp(28px, 3.5vw, 36px);
  --fs-xl:   clamp(36px, 5vw, 48px);
  --fs-2xl:  clamp(44px, 7vw, 72px);

  /* ===== Heading scale ===== */
  --h1: var(--fs-2xl);    /* ページ最大見出し（hero） */
  --h2: var(--fs-xl);     /* セクション見出し */
  --h3: var(--fs-lg);     /* サブセクション見出し */
  --h4: var(--fs-md);     /* カード・ステップ見出し */
  --h5: var(--fs-base);   /* 小見出し */
  --h6: var(--fs-sm);     /* 最小見出し */
  --heading-weight:  700;
  --heading-leading: 1.25;
  --heading-color:   var(--c-text);
  /* ===== Spacing ===== */
  --space-section: 120px;
  --space-block:    72px;
  --space-gap:      28px;
  --space-card:     48px;
  --space-unit:     24px;

  /* ===== 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; }
}

/* ---- カードホバー ---- */
.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,63,107,.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,63,107,.3);
}

/* prefers-reduced-motion に対応 */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .card, .btn { animation: none; transition: none; }
  .anim { opacity: 1; transform: none; }
}

/* ===========================
   Site Intro Overlay
=========================== */
#site-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--c-dark);
  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: var(--c-pale);
}

.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: var(--c-glow-sm);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.intro__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--c-accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--c-glow);
  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: var(--fs-base);
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site {
  flex: 1;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   Heading system
=========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--heading-weight);
  line-height: var(--heading-leading);
  color: var(--heading-color);
}
h1 { font-size: var(--h1); letter-spacing: -0.02em; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

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-head,

.section-title {
  font-size: var(--h2);
  font-weight: var(--heading-weight);
  line-height: var(--heading-leading);
}

.desc {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  line-height: 1.8;
}

/* ===========================
   Grid utilities
=========================== */
.grid-2, .grid-3, .grid-4 { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-gap); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-unit); }

@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(--c-pale); color: var(--c-text-sub); }

/* ===========================
   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(--c-primary);
  color: #fff;
}

.btn--lg {
  font-size: 16px;
  padding: 16px 36px;
}

/* ===========================
   Card
=========================== */
.card {
  background: color-mix(in srgb, var(--c-surface) 75%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.card--highlight {
  border-color: var(--c-light);
  box-shadow: 0 0 0 3px rgba(29,63,107,.06);
}

/* ===========================
   Global Navigation
=========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--c-bg) 96%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-transparent {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  box-shadow: none !important;
}

.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(--c-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-logo__icon { line-height: 1; }
.site-logo__name { color: var(--c-text); }

.global-nav,
.global-nav ul {
  list-style: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-sub);
  transition: color .2s;
  text-decoration: none;
}

.global-nav a:hover {
  color: var(--c-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(--c-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(--c-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border);
    gap: 16px;
  }

  .global-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

/* ===========================
   Main content offset
=========================== */
.site-main {
  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 .hero 
/* バッジ */
.hero .tag {
  background: rgba(58, 204, 122, 0.12);
  color: var(--c-accent);
  border-color: rgba(58, 204, 122, 0.3);
}

/* 画像あり: テキスト左・画像右の2カラム */
.hero--image .container {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 48px;
  align-items: center;
  text-align: left;
}

@media (max-width: 900px) {
  .hero__sphere canvas { object-fit: cover; }
  .hero--image .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}







/* ===========================
   Stats Bar
=========================== */

/* ===========================
   Services
=========================== */
.service-card {
  padding: 24px;
}


/* ===========================
   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(--c-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--c-text-soft);
  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(--c-text-sub);
  margin-bottom: 10px;
}

.works-more {
  text-align: right;
  margin-top: 24px;
}


/* ===========================
   CTA Section
=========================== */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--c-pale) 0%, var(--c-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(--c-text-sub);
  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(--c-text-sub);
  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(--c-text-sub);
  cursor: pointer;
  padding: 4px 0;
  transition: color .2s;
}

.filter-list li.is-active,
.filter-list li:hover {
  color: var(--c-primary);
  font-weight: 600;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-divider {
  height: 1px;
  background: var(--c-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(--c-pale);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--c-text-soft);
}

.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(--c-text-sub);
  margin-bottom: 8px;
}

.work-list-item__date {
  font-size: 11px;
  color: var(--c-text-soft);
  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-form-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-unit);
}

.form-group {
  margin-bottom: var(--space-unit);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-text);
}

.form-label .required {
  color: #c0392b;
  margin-left: 4px;
  font-size: var(--fs-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-sans);
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(58,122,204,0.12);
}

.form-textarea {
  height: 160px;
  resize: vertical;
  line-height: 1.7;
}

.privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-unit);
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: 18px;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--c-text-sub);
}

.flow-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-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(--c-text-sub);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ===========================
   Blog / Archive
=========================== */

.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(--c-pale);
  color: var(--c-text-sub);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.category-tab.is-active,
.category-tab:hover {
  background: var(--c-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(--c-pale);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--c-text-soft);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: var(--space-unit);
}

.post-card__title {
  font-size: var(--h4);
  font-weight: var(--heading-weight);
  line-height: 1.4;
  margin: 10px 0 6px;
}

.post-card__meta {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

/* 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(--c-border);
  color: var(--c-text-sub);
  transition: .2s;
}

.pagination .current,
.pagination a:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ===========================
   Single Post
=========================== */
.single-wrap { max-width: 760px; }

.post-header {
  margin-bottom: 32px;
}

.post-header__title {
  font-size: var(--h2);
  font-weight: var(--heading-weight);
  line-height: var(--heading-leading);
  margin: 12px 0;
}

.post-header__meta {
  font-size: 12px;
  color: var(--c-text-soft);
  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(--c-pale);
}

.post-content {
  font-size: 16px;
  line-height: 1.9;
}

.post-content h2 {
  font-size: var(--h3);
  font-weight: var(--heading-weight);
  margin: 48px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--c-primary);
}

.post-content h3 {
  font-size: var(--h4);
  font-weight: var(--heading-weight);
  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(--c-primary);
  text-decoration: underline;
}

.post-content blockquote {
  border-left: 3px solid var(--c-border);
  padding: 12px 20px;
  margin: 24px 0;
  color: var(--c-text-sub);
  font-style: italic;
}

.post-content code {
  background: var(--c-pale);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: .9em;
  font-family: 'Courier New', monospace;
}

.post-content pre {
  background: var(--c-text);
  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-tags {
  margin-top: var(--space-unit);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.post-tags__label {
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}

.post-cta-banner {
  background: var(--c-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-block) var(--space-card);
  margin-top: var(--space-block);
  text-align: center;
}
.post-cta-banner__label { color: rgba(255,255,255,0.3); }
.post-cta-banner__title {
  font-size: var(--h3);
  font-weight: var(--heading-weight);
  color: var(--c-pale);
  margin-bottom: 10px;
}
.post-cta-banner__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-unit);
}

.post-navigation {
  margin-top: var(--space-block);
  display: flex;
  justify-content: space-between;
  gap: var(--space-unit);
}
.post-navigation__item { flex: 1; }



/* ---- 固定ページ共通 ---- */
/* ---- 固定ページ ヘッダー（横並び・中央寄せ） ---- */
.page-header {
  position: relative;
  display: flex;
  gap: var(--space-block);
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin-bottom: var(--space-block);
  padding-bottom: calc(var(--fs-xs) * 2 + 16px); /* パンくずの高さ分の余白 */
}

/* 右下に絶対配置：パンくず */
.page-breadcrumb {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.page-breadcrumb a { color: var(--c-accent); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
.page-breadcrumb__sep { opacity: 0.4; margin: 0 4px; }

/* 中央列：label + title + button */
.page-header__main { flex-shrink: 0; }
.page-header__title {
  font-size: var(--h2);
  font-weight: var(--heading-weight);
  line-height: var(--heading-leading);
  color: var(--heading-color);
  margin: 10px 0 var(--space-unit);
}
.page-header__cta { display: inline-block; }

/* 右列：desc */
.page-header__desc {
  max-width: 260px;
  padding-top: calc(var(--fs-xs) + 16px);
  color: var(--c-text-sub);
  font-size: var(--fs-sm);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: calc(var(--fs-xs) * 2 + 24px);
  }
  .page-header__desc { max-width: none; }
  .page-header__cta { display: block; }
}

.page-body {
  background: color-mix(in srgb, var(--c-surface) 80%, transparent);
  backdrop-filter: blur(12px);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--space-card);
}

/* ---- ページ共通の背景円 ---- */
.page-section { position: relative; }

/* A: 右上から食み出す大円 */
.page-circle--a {
  width: 560px; height: 560px;
  top: -180px; right: -140px;
  background: rgba(58,122,204,0.12);
  animation: float-a 18s ease-in-out infinite;
}
/* B: 左下のアクセント小円 */
.page-circle--b {
  width: 180px; height: 180px;
  bottom: 80px; left: 4%;
  background: rgba(58,122,204,0.22);
  animation: float-d 11s ease-in-out infinite 2s;
}

/* post-cta-banner の円（::before/::after） */
.post-cta-banner::before,
.post-cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.post-cta-banner::before {
  width: 320px; height: 320px;
  top: -100px; right: -80px;
  background: rgba(58,122,204,0.15);
  animation: float-b 14s ease-in-out infinite;
}
.post-cta-banner::after {
  width: 100px; height: 100px;
  bottom: -30px; left: 6%;
  background: rgba(58,122,204,0.28);
  animation: float-d 9s ease-in-out infinite 1.5s;
}


/* ===========================
   Sidebar widgets (blog/single)
=========================== */

/* ===========================
   Footer
=========================== */
.site-footer {
  background: var(--c-text);
  color: var(--c-text-soft);
  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(--c-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(--c-accent);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s, border-color 0.2s;
}

.footer-sns__link:hover {
  background: rgba(58,122,204,.15);
  border-color: var(--c-accent);
}

.footer-nav__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-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(--c-text-soft);
  transition: color .2s;
}

.footer-nav a:hover { color: var(--c-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(--c-text-soft);
  transition: color .2s;
}

.footer-bottom__links a:hover { color: var(--c-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(--c-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(--c-text-sub);
  margin-bottom: 28px;
}

/* ===========================
   Utility
=========================== */
.mb-16 { margin-bottom: 16px; }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; }

/* Load more */
.load-more-wrap {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  border: 1.5px dashed var(--c-border);
  color: var(--c-text-soft);
  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(--c-primary);
  color: var(--c-primary);
}

/* ===========================
   Image Placeholder
   アイキャッチがない場合の代替表示
=========================== */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--c-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--c-text-soft);
}

.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(--c-pale);
  box-shadow: 0 2px 12px rgba(29,63,107,.1);
  background: var(--c-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(--c-text);
}

.profile-card__bio {
  font-size: 12px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

.profile-card__techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

/* ===========================
   Pain Points (こんなお悩みは？)
=========================== */




/* ===========================
   Works Empty State
=========================== */
.works-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--c-bg);
  border: 1.5px dashed var(--c-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(--c-text);
}

.works-empty__desc {
  font-size: 14px;
  color: var(--c-text-sub);
  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(--c-light), var(--c-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(--c-primary);
  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(--c-pale);
}

.flow-step__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.
@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(--c-light), var(--c-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
=========================== */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-unit);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: 700;
}

/* ===========================
   Profile Page
=========================== */
.profile-wrap { max-width: 800px; margin: 0 auto; }

.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(--c-pale);
  box-shadow: 0 2px 16px rgba(29,63,107,.12);
  background: var(--c-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(--c-text);
}

.profile-hero__bio {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .profile-wrap {
    max-width: 100%;
  }
  .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(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  text-decoration: none;
  transition: background .15s;
  flex-wrap: wrap;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: var(--c-pale);
}

.news-item__date {
  font-size: 12px;
  color: var(--c-text-soft);
  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(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-bg);
  transition: border-color .2s;
}

.faq-accordion[open] {
  border-color: var(--c-mid);
}

.faq-accordion__q {
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-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(--c-primary);
  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(--c-text-soft);
  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(--c-text-sub);
  line-height: 1.8;
}

/* =====================================================
   FUTURISTIC LAYER
===================================================== */
:root {
  /* ===== Colors ===== */
  --c-text:      #1A1E2E;
  --c-text-sub:  #3D4D6B;
  --c-text-soft: #6B7F8F;

  --c-primary:   #1B4B8A;
  --c-accent:    #3A7ACC;
  --c-mid:       #6B8BAA;
  --c-light:     #A8C4D5;
  --c-pale:      #E8EEF4;

  --c-bg:        #F7F8FA;
  --c-surface:   #ffffff;
  --c-dark:      #0a0c12;
  --c-border:    #C8D5DD;

  --c-glow:      rgba(58, 122, 204, 0.45);
  --c-glow-sm:   rgba(58, 122, 204, 0.15);
  --c-grid:      rgba(29,  63, 107, 0.07);
  --c-grid-dark: rgba(58, 122, 204, 0.05);

  /* Tag colors */
  --tag-blue-bg:   var(--c-pale);    --tag-blue-fg:   var(--c-primary);
  --tag-teal-bg:   #D6E5F5;          --tag-teal-fg:   #14355C;
  --tag-amber-bg:  #FFF3D6;          --tag-amber-fg:  #7A5200;
  --tag-coral-bg:  #FFE8E0;          --tag-coral-fg:  #8B2E10;
  --tag-purple-bg: #EEF0FF;          --tag-purple-fg: #3830A0;

  /* ===== Font sizes ===== */
  --fs-xs:   11px;
  --fs-sm:   14px;
  --fs-base: 16px;
  --fs-md:   18px;
  --fs-lg:   clamp(28px, 3.5vw, 36px);
  --fs-xl:   clamp(36px, 5vw, 48px);
  --fs-2xl:  clamp(44px, 7vw, 72px);

  /* ===== Spacing ===== */
  --space-section: 120px;
  --space-block:    72px;
  --space-gap:      28px;
  --space-card:     48px;
  --space-unit:     24px;

  /* ===== 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;
}


/* Intro */
.intro__name { font-family: 'Courier New', monospace; letter-spacing: 0.1em; text-shadow: 0 0 12px var(--c-glow); }
.intro__bar-fill { box-shadow: 0 0 10px var(--c-glow), 0 0 20px var(--c-glow-sm); }

/* Header */
.site-header { background: color-mix(in srgb, var(--c-bg) 96%, transparent); border-bottom: 1px solid var(--c-border); backdrop-filter: blur(10px); }
.site-header.is-transparent { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-logo__name { color: var(--c-accent); font-family: 'Courier New', monospace; letter-spacing: 0.06em; text-shadow: 0 0 10px var(--c-glow-sm); }
.site-logo__icon { filter: drop-shadow(0 0 4px var(--c-glow)); }
.nav-toggle span { background: var(--c-accent); }

/* Nav links */
.global-nav a {
  font-family: 'Courier New', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  position: relative;
}
.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--c-accent);
  box-shadow: 0 0 6px var(--c-glow);
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1);
}
.global-nav a:hover { color: var(--c-accent); text-shadow: 0 0 8px var(--c-glow-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(--c-glow), 0 0 0 1px rgba(58,122,204,0.3); transform: translateY(-2px); }
/* Section labels & heads */
.section-label, .label {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
  display: block;
}

/* Spacing */
.section { padding: var(--space-section) 0; }
.works-grid { gap: var(--space-gap); }

/* Cards */
.card {
  position: relative;
  background: rgba(247,248,250,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(29,63,107,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(--c-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,122,204,0.3); box-shadow: 0 8px 32px rgba(58,122,204,0.28), inset 0 1px 0 rgba(58,122,204,0.22); }

/* CTA */
.cta-section {
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

.cta-section { padding: var(--space-section) 0; }
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--c-text) 0%, transparent 22%, transparent 78%, var(--c-text) 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,122,204,0.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section__title { color: var(--c-light); }
.cta-section__desc  { color: var(--c-text-soft); }

/* Hero */
.hero {
  background: var(--c-bg);
  color: var(--c-text);
  padding: 200px 0 180px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .hero .hero .hero .tag { background: var(--c-pale); color: var(--c-primary); border-color: var(--c-light); box-shadow: none; }
.hero__sphere canvas { opacity: 0.55; }

/* Service cards */

/* Pain cards */

/* Flow steps */
.flow-step__num {
  background: transparent;
  border: 2px solid var(--c-accent);
  color: var(--c-accent);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  box-shadow: 0 0 0 5px rgba(58,122,204,0.28), 0 0 18px rgba(58,122,204,0.2);
  position: relative;
}
.flow-step__num::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: rgba(58,122,204,0.28); }
.flow-step:hover .flow-step__num { box-shadow: 0 0 0 5px rgba(58,122,204,0.12), 0 0 28px rgba(58,122,204,0.3); background: rgba(58,122,204,0.22); }
.flow-steps::before { background: linear-gradient(to right, transparent 0%, rgba(58,122,204,0.35) 20%, rgba(107,170,122,0.4) 50%, rgba(58,122,204,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,122,204,0.28) 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(--c-glow-sm); }
.footer-nav__title  { font-family: 'Courier New', monospace; letter-spacing: 0.1em; }
.footer-bottom { border-top: 1px solid rgba(58,122,204,0.12); }

/* FAQ */
.faq-accordion__q::before { background: transparent; border: 1.5px solid var(--c-accent); color: var(--c-accent); font-family: 'Courier New', monospace; box-shadow: 0 0 8px rgba(58,122,204,0.2); }
.faq-accordion[open] { border-color: rgba(58,122,204,0.35); box-shadow: 0 0 0 1px rgba(58,122,204,0.22); }


/* Post content */
.post-content pre { border: 1px solid rgba(58,122,204,0.15); box-shadow: inset 0 0 0 1px rgba(58,122,204,0.05); }
.post-content h2  { border-left-color: var(--c-accent); box-shadow: -4px 0 12px rgba(58,122,204,0.15); }

/* Misc */
.profile-card__img-wrap, .profile-hero__img-wrap { border-color: rgba(58,122,204,0.35); box-shadow: 0 0 0 4px rgba(58,122,204,0.25), 0 0 16px rgba(58,122,204,0.1); }
.news-list { border-color: rgba(29,63,107,0.12); background: rgba(247,248,250,0.7); backdrop-filter: blur(4px); }
.news-item { border-bottom-color: rgba(29,63,107,0.08); }
.news-item:hover { background: rgba(58,122,204,0.15); }
.news-item__date { font-family: 'Courier New', monospace; font-size: 11px; }
.pagination .current, .pagination a:hover { box-shadow: 0 0 10px rgba(29,63,107,0.3); }
.anim { transform: translateY(20px) scale(0.98); }
.anim.is-visible { transform: none; }
.works-empty { border-color: rgba(58,122,204,0.15); background: rgba(247,248,250,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; }
.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(--c-accent); color: var(--c-accent); box-shadow: 0 0 12px var(--c-glow-sm); }

/* Media queries */
@media (max-width: 768px) {
  .global-nav { background: rgba(8,20,12,0.97); border-bottom: 1px solid rgba(58,122,204,0.15); backdrop-filter: blur(12px); }
  .global-nav a { color: var(--c-text-soft); }
  .flow-steps::before { background: linear-gradient(to bottom, transparent 0%, rgba(58,122,204,0.35) 20%, rgba(58,122,204,0.35) 80%, transparent 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .btn--primary::before { display: none; }
}

/* =====================================================
   LP REDESIGN — New Design Language
===================================================== */

/* ---- Hero ---- */
.lp-hero {
  background: var(--c-bg);
  position: relative;
  z-index: 1;
  padding: calc(var(--space-section) + 20px) 0 var(--space-section);
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: left;
}
.lp-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: none;
  padding-left: clamp(24px, 4vw, 72px);
  padding-right: clamp(24px, 4vw, 72px);
}

/* Canvas sphere */
.lp-hero__sphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.lp-hero__sphere canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Background circles — Internet node topology */
.lp-hero__circles,
.lp-sec-circles,
.lp-cta__circles { position: absolute; inset: 0; pointer-events: none; }
.lp-hero__circles,
.lp-sec-circles { z-index: 0; }

.lp-hero__circle,
.lp-sec-circle,
.lp-cta__circle { position: absolute; border-radius: 50%; }

/* Floating keyframes */
@keyframes float-a {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(28px, -36px); }
  50%  { transform: translate(-18px, -52px); }
  75%  { transform: translate(-32px, -24px); }
  100% { transform: translate(0, 0); }
}
@keyframes float-b {
  0%   { transform: translate(0, 0); }
  30%  { transform: translate(-22px, -30px); }
  60%  { transform: translate(18px, -44px); }
  100% { transform: translate(0, 0); }
}
@keyframes float-c {
  0%   { transform: translateY(-50%) translateX(0); }
  33%  { transform: translateY(calc(-50% - 28px)) translateX(24px); }
  66%  { transform: translateY(calc(-50% - 16px)) translateX(-20px); }
  100% { transform: translateY(-50%) translateX(0); }
}
@keyframes float-d {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(16px, -22px) scale(1.07); }
  70%  { transform: translate(-12px, -14px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero__circle, .lp-sec-circle, .lp-cta__circle { animation: none !important; }
}

/* D: 小ノード */
.lp-hero__circle--d {
  width: 140px; height: 140px;
  bottom: 72px; left: 5%;
  background: rgba(58,122,204,0.22);
  animation: float-d 9s ease-in-out infinite 3s;
}
/* E: 最小ノード */
.lp-hero__circle--e {
  width: 48px; height: 48px;
  top: 34%; left: 17%;
  background: rgba(58,122,204,0.50);
  animation: float-b 7s ease-in-out infinite 0.5s;
}

.lp-hero__inner {
  position: relative;
  z-index: 1;
  text-align: left;
}

.lp-hero__inner .label {
  opacity: 0.85;
  margin-bottom: 28px;
}

.lp-hero__title {
  font-size: var(--h1);
  font-weight: var(--heading-weight);
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

/* タイピングカーソル */
.lp-hero__title::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.85em;
  background: var(--heading-color);
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 2px;
  animation: typing-cursor 1.6s step-end infinite;
}
@keyframes typing-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero__title::after { display: none; }
}

.lp-hero__sub {
  font-size: var(--fs-md);
  color: var(--c-text-sub);
  line-height: 1.85;
  margin-bottom: 52px;
}

/* ---- Marquee ---- */
.lp-marquee {
  background: var(--c-surface);
  position: relative;
  z-index: 1;
  padding: 15px 0;
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.lp-marquee__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: lp-marquee 1s linear infinite; /* duration は JS が上書き */
}
.lp-marquee__item {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--c-text-soft);
  padding: 0 6px;
}
.lp-marquee__sep {
  color: var(--c-accent);
  opacity: 0.5;
  padding: 0 14px;
  font-size: 10px;
}
@keyframes lp-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-marquee__track { animation: none; }
}

/* ---- Section head（英日バイリンガル見出し） ---- */
.label {
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 8px;
  display: block;
}
.lp-ja-title {
  font-size: var(--h2);
  font-weight: var(--heading-weight);
  color: var(--heading-color);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  line-height: var(--heading-leading);
}

/* ---- Services ---- */
.lp-service-grid,
.lp-flow-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-gap);
}
.lp-service-grid { margin-bottom: var(--space-block); }
/* Services & Flow — 共通カードスタイル */
.lp-service-item,
.lp-flow-step {
  background: color-mix(in srgb, var(--c-surface) 75%, transparent);
  backdrop-filter: blur(8px);
  padding: var(--space-card) calc(var(--space-card) - 4px);
  position: relative;
  transition: background 0.2s;
}
.lp-service-item:hover,
.lp-flow-step:hover { background: var(--c-bg); }

.lp-service-num,
.lp-flow-step__num {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 700;
  color: var(--c-pale);
  line-height: 1;
  margin-bottom: 14px;
  transition: color 0.25s;
  user-select: none;
}
.lp-service-item:hover .lp-service-num,
.lp-flow-step:hover .lp-flow-step__num { color: rgba(58,122,204,0.14); }

.lp-service-title,
.lp-flow-step__title {
  font-size: var(--h4);
  font-weight: var(--heading-weight);
  color: var(--heading-color);
  margin-bottom: 10px;
}

/* ---- Pain points ---- */
.lp-issues,
.lp-works { position: relative; }
.lp-issues__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--space-unit) / 1.5);
  margin-bottom: var(--space-unit);
}
.lp-issues__item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 20px 20px 20px 36px;
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  line-height: 1.65;
  position: relative;
}
.lp-issues__item::before {
  content: '—';
  position: absolute;
  left: 16px;
  top: 20px;
  color: var(--c-accent);
  font-family: 'Courier New', monospace;
  font-size: 12px;
}
.lp-issues__bottom {
  text-align: center;
  margin-top: var(--space-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-unit);
}
.lp-issues__footer { font-size: var(--fs-sm); color: var(--c-text-soft); }

/* ---- Works ---- */


/* ---- Section circles（交互配置） ---- */
.lp-services,
.lp-flow { position: relative; }


/* Services / Flow 大円：同色を共有 */
.lp-sec-circle--a,
.lp-sec-circle--c { background: rgba(58,122,204,0.15); }

/* Services: 左上から回り込む大円 + 右下アクセント */
.lp-sec-circle--a {
  width: 520px; height: 520px;
  top: -160px; left: -140px;
  animation: float-a 18s ease-in-out infinite 1s;
}
.lp-sec-circle--b {
  width: 160px; height: 160px;
  bottom: 80px; right: 6%;
  background: rgba(58,122,204,0.25);
  animation: float-d 10s ease-in-out infinite 2.5s;
}

/* Flow: 右下から回り込む大円 + 左上アクセント */
.lp-sec-circle--c {
  width: 460px; height: 460px;
  bottom: -130px; right: -110px;
  animation: float-a 20s ease-in-out infinite 0.5s;
}
.lp-sec-circle--d {
  width: 90px; height: 90px;
  top: 12%; left: 4%;
  background: rgba(58,122,204,0.30);
  animation: float-d 8s ease-in-out infinite 1.5s;
}

/* ---- Flow ---- */

/* ---- CTA ---- */
.lp-cta {
  background: var(--c-dark);
  text-align: center;
  padding: var(--space-section) 0;
  position: relative;
}

/* A: 右下から食み出す大円 */
.lp-cta__circle--a {
  width: 560px; height: 560px;
  bottom: -180px; right: -100px;
  background: rgba(58,122,204,0.10);
}
/* B: 左上、補助ノード */
.lp-cta__circle--b {
  width: 320px; height: 320px;
  top: -100px; left: 4%;
}
/* C: 右上アクセント小円 */
.lp-cta__circle--c {
  width: 90px; height: 90px;
  top: 18%; right: 14%;
  background: rgba(58,122,204,0.22);
}

.lp-cta__en { color: rgba(255,255,255,0.30); margin-bottom: 16px; }
.lp-cta__title {
  font-size: var(--h2);
  font-weight: var(--heading-weight);
  color: var(--c-pale);
  margin-bottom: 14px;
  line-height: var(--heading-leading);
}
.lp-cta__desc {
  color: rgba(255,255,255,0.30);
  margin-bottom: 40px;
  letter-spacing: 0.06em;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .lp-hero { min-height: auto; padding: calc(var(--space-section) - 20px) 0 calc(var(--space-section) - 40px); }
  .lp-flow-steps,
}
@media (max-width: 768px) {
  .lp-hero__inner { text-align: center; }
  .lp-service-item { padding: calc(var(--space-card) - 12px) calc(var(--space-card) - 20px); }
  .lp-issues__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .lp-issues__grid { grid-template-columns: 1fr; }
}









