/*
Theme Name: Autim
Theme URI: https://autim.jp
Author: Autim
Description: Autim 公式サイトテーマ
Version: 1.0.0
*/

/* =============================================
   CSS Variables（LPに合わせたカラー）
============================================= */
:root {
  --c-base: #FFFFFF;
  --c-light: #F8FAFC;
  --c-main: #2563EB;
  --c-main-dark: #1D4ED8;
  --c-main-light: #EFF6FF;
  --c-text: #1E293B;
  --c-text-muted: #64748B;
  --c-border: #E2E8F0;
  --c-line: #06C755;
  --font-base: 'Inter', 'Noto Sans JP', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-w: 1100px;
}

/* =============================================
   Reset & Base
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-base);
  background-color: var(--c-base);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.bg-light { background: var(--c-light); }

/* =============================================
   Header
============================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

/* ロゴ */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  opacity: 1 !important;
}
.site-logo:hover { opacity: 1 !important; }

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

.logo-text-wrap {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-left: -14px;
  display: flex;
  align-items: center;
  color: var(--c-text);
}
.logo-accent { color: var(--c-main); }

/* ナビ */
.header-nav > ul {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color 0.3s;
  opacity: 1 !important;
}
.header-nav a:hover { color: var(--c-main); opacity: 1 !important; }

/* サブメニュー */
.has-submenu { position: relative; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 20px 8px 8px;
  min-width: 160px;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.has-submenu:hover .submenu { display: flex; }
.submenu li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-radius: 6px;
  transition: all 0.2s;
  opacity: 1 !important;
}
.submenu li a:hover { background: var(--c-main-light); color: var(--c-main); }

.header-cta .btn-header {
  padding: 9px 22px;
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  transition: all 0.3s;
  opacity: 1 !important;
}
.header-cta .btn-header:hover {
  background: var(--c-main-dark);
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

/* =============================================
   Hero Section
============================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
  overflow: hidden;
  background: radial-gradient(circle at top right, var(--c-main-light), transparent 55%),
              radial-gradient(circle at bottom left, #f0f4ff, transparent 50%);
}

/* 動くグリッド背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--c-main-light);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-main);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--c-main);
  border-radius: 50%;
  animation: blink 2s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-catch {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--c-text);
  animation: fadeInUp 0.9s ease 0.2s both;
}
.hero-catch .accent {
  color: var(--c-main);
}
.hero-catch .line1, .hero-catch .line2 { display: block; }

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  margin-bottom: 48px;
  line-height: 1.9;
  animation: fadeInUp 0.9s ease 0.4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.9s ease 0.6s both;
}

.btn-primary {
  padding: 16px 36px;
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1 !important;
}
.btn-primary:hover {
  background: var(--c-main-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.5), var(--shadow-lg);
  opacity: 1 !important;
}

.btn-secondary {
  padding: 16px 36px;
  background: transparent;
  color: var(--c-main);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--c-main);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 1 !important;
}
.btn-secondary:hover {
  background: var(--c-main-light);
  opacity: 1 !important;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  animation: fadeIn 1.5s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--c-main), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* =============================================
   Numbers / 実績
============================================= */
.numbers-section {
  padding: 60px 0;
  background: var(--c-main);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.2);
}
.number-item {
  background: var(--c-main);
  padding: 40px 24px;
  text-align: center;
}
.number-value {
  font-size: 3.5rem;
  font-weight: 900;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.04em;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.number-unit { font-size: 1.6rem; }
.number-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}
.number-note {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  letter-spacing: 0;
}

/* =============================================
   Section共通
============================================= */
.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-main);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--c-text);
}
.section-title .grad { color: var(--c-main); }
.section-desc { margin-top: 14px; font-size: 1rem; color: var(--c-text-muted); }

/* =============================================
   Services
============================================= */
.services-section { background: var(--c-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(37, 99, 235, 0.3);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--c-main-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}
.service-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--c-text);
}
.service-desc {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.9;
  margin-bottom: 28px;
  flex-grow: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.service-tag {
  padding: 4px 12px;
  background: var(--c-main-light);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--c-main);
  font-weight: 600;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-main);
  transition: gap 0.3s;
  opacity: 1 !important;
}
.service-link:hover { gap: 12px; opacity: 1 !important; }

/* =============================================
   Why
============================================= */
.why-section { background: var(--c-base); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--c-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}
.why-number {
  font-family: 'Inter', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.15);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}
.why-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--c-text); }
.why-desc { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.9; }

/* =============================================
   CTA Banner
============================================= */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--c-main) 0%, var(--c-main-dark) 100%);
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 40px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--c-main);
  box-shadow: var(--shadow-lg);
}
.cta-banner .btn-primary:hover {
  background: var(--c-main-light);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* =============================================
   Footer
============================================= */
.site-footer {
  background: var(--c-light);
  border-top: 1px solid var(--c-border);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo-wrap .logo-text-wrap { color: var(--c-text); }
.footer-logo-wrap .logo-accent { color: var(--c-main); }
.footer-tagline { font-size: 0.85rem; color: var(--c-text-muted); margin: 8px 0 20px; }
.footer-info p { font-size: 0.82rem; color: var(--c-text-muted); line-height: 2.1; }
.footer-info a { color: var(--c-main); text-decoration: underline; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  transition: color 0.3s;
  opacity: 1 !important;
}
.footer-nav a:hover { color: var(--c-main); opacity: 1 !important; }
.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom small { font-size: 0.8rem; color: var(--c-text-muted); }

/* =============================================
   Page Hero（About / Contact）
============================================= */
.page-hero {
  padding: 140px 0 80px;
  background: radial-gradient(circle at top right, var(--c-main-light), transparent 55%);
  text-align: center;
}
.page-hero-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--c-main);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text);
}
.page-hero-desc { margin-top: 14px; color: var(--c-text-muted); font-size: 1rem; }

/* =============================================
   About
============================================= */
.about-section { background: var(--c-base); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.about-mission-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.35;
  color: var(--c-text);
}
.about-mission-text { color: var(--c-text-muted); line-height: 2; }
.about-visual {
  background: var(--c-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}
.about-stat:last-child { border-bottom: none; padding-bottom: 0; }
.about-stat-label { font-size: 0.85rem; color: var(--c-text-muted); }
.about-stat-value { font-size: 1.1rem; font-weight: 700; color: var(--c-main); }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.9rem;
  text-align: left;
  vertical-align: top;
}
.company-table th { width: 180px; color: var(--c-text-muted); font-weight: 500; }
.company-table td { color: var(--c-text); }

/* =============================================
   Contact
============================================= */
.contact-section { background: var(--c-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 14px; color: var(--c-text); }
.contact-info p { color: var(--c-text-muted); line-height: 1.9; margin-bottom: 28px; font-size: 0.95rem; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: var(--c-main-light);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-item-text { font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.7; }
.contact-item-text a { color: var(--c-main); text-decoration: underline; opacity: 1 !important; }
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.contact-sent-msg {
  padding: 32px 24px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  color: var(--c-main);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
  text-align: center;
}
.form-group { margin-bottom: 22px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--c-text); }
.form-label .req { color: var(--c-main); margin-left: 4px; }
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--c-light);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: 0.95rem;
  transition: all 0.3s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--c-main);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
  background: #fff;
}
.form-textarea { min-height: 160px; resize: vertical; }
.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--c-main);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-glow);
}
.form-submit:hover {
  background: var(--c-main-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(37,99,235,0.4);
}

/* =============================================
   Characters
============================================= */

/* ヒーロー：浮遊キャラ */
/* ラッパー：バーによる押し出し制御 */
.hero-char-wrap {
  position: absolute;
  z-index: 1;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.hcw-1 { top: 15%; left: 5%; }
.hcw-2 { top: 20%; right: 6%; }
.hcw-3 { bottom: 20%; left: 8%; }
.hcw-4 { bottom: 25%; right: 5%; }
.hcw-5 { top: 55%; left: 2%; }
.hcw-6 { top: 50%; right: 3%; }

/* imgはラッパー基準でふわふわ */
.hero-char {
  position: relative;
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.85;
  pointer-events: none;
  display: block;
}
.hc-1 { animation: floatA 6s ease-in-out infinite; }
.hc-2 { animation: floatB 7s ease-in-out infinite; }
.hc-3 { animation: floatA 8s ease-in-out infinite 1s; }
.hc-4 { animation: floatB 6.5s ease-in-out infinite 0.5s; }
.hc-5 { animation: floatA 7.5s ease-in-out infinite 1.5s; }
.hc-6 { animation: floatB 8s ease-in-out infinite 2s; }

/* ドラッグバー */
.hero-bar {
  position: absolute;
  width: 140px;
  height: 7px;
  background: linear-gradient(90deg, #2563EB, #06b6d4);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(37,99,235,0.6);
  cursor: grab;
  z-index: 20;
  user-select: none;
  touch-action: none;
}
.hero-bar:active { cursor: grabbing; }

@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%       { transform: translateY(-18px) rotate(3deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50%       { transform: translateY(-14px) rotate(-3deg); }
}

/* サービスカード：右上に配置 */
.card-char {
  width: 80px;
  height: 80px;
  object-fit: contain;
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.9;
}

/* Why カード：上部中央 */
.why-char {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
}

@media (max-width: 768px) {
  .hcw-5, .hcw-6 { display: none; }
  .hero-char { width: 64px; height: 64px; }
  .hero-bar { width: 100px; height: 6px; }
}

/* =============================================
   Animations
============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   Hamburger / SP Menu
============================================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sp-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.sp-menu.open { display: flex; }
.sp-menu a {
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  transition: color 0.3s;
  opacity: 1 !important;
}
.sp-menu a:hover { color: var(--c-main); opacity: 1 !important; }
.sp-menu .btn-primary { margin-top: 16px; justify-content: center; }

/* =============================================
   Archive（コラム一覧）
============================================= */
.archive-section { background: var(--c-base); }
.archive-page-hero { padding-bottom: 60px; }

/* フィーチャーカード（1番目・大） */
.feature-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  margin-bottom: 28px;
  transition: all 0.3s;
  background: #fff;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
  transform: translateY(-4px);
}
.feature-card-link {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  min-height: 380px;
  opacity: 1 !important;
}
.feature-card-link:hover { opacity: 1 !important; }
.feature-card-thumb {
  position: relative;
  overflow: hidden;
}
.feature-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.feature-card:hover .feature-card-thumb img { transform: scale(1.04); }
.feature-card-thumb .post-card-thumb-placeholder {
  height: 100%;
  font-size: 3rem;
}
.feature-card-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.post-cat-badge--dark {
  position: static;
  display: inline-block;
  background: var(--c-main-light);
  color: var(--c-main);
  border: 1px solid rgba(37,99,235,0.2);
  margin-bottom: 4px;
}
.feature-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.feature-card-excerpt {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* セカンダリグリッド（2・3番目） */
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.secondary-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.secondary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
}
.secondary-card .post-card-thumb { aspect-ratio: 16 / 8; }

/* 区切り */
.archive-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0 32px;
}
.archive-divider::before,
.archive-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
.archive-divider span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text-muted);
  background: #fff;
  transition: all 0.25s;
  cursor: pointer;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--c-main);
  border-color: var(--c-main);
  color: #fff;
  opacity: 1 !important;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
}
.post-card-link {
  display: block;
  height: 100%;
  opacity: 1 !important;
}
.post-card-link:hover { opacity: 1 !important; }

.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-light);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-main-light), #e8f0ff);
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-main);
  letter-spacing: -0.04em;
}

.post-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  background: var(--c-main);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}
.post-cat-badge--hero {
  position: static;
  display: inline-block;
  margin-bottom: 16px;
}

.post-card-body { padding: 20px 24px 24px; }
.post-date {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  display: block;
  margin-bottom: 8px;
}
.post-card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 10px;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-more {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-main);
}

.no-posts {
  text-align: center;
  padding: 80px 0;
  color: var(--c-text-muted);
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: all 0.25s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--c-main);
  border-color: var(--c-main);
  color: #fff;
  opacity: 1 !important;
}
.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
  font-size: 0.82rem;
}

/* =============================================
   Single（記事詳細）
============================================= */
.single-hero { padding-bottom: 60px; }
.single-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-align: left;
  max-width: 820px;
}
.single-meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

.single-section { background: var(--c-base); }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: flex-start;
}

.single-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}
.single-thumb img { width: 100%; height: auto; }

/* 記事本文スタイル */
.post-content { line-height: 2; color: var(--c-text); }
.post-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--c-main);
  color: var(--c-text);
}
.post-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--c-text);
}
.post-content p { margin-bottom: 20px; }
.post-content ul,
.post-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}
.post-content a { color: var(--c-main); text-decoration: underline; opacity: 1 !important; }
.post-content blockquote {
  border-left: 4px solid var(--c-main);
  background: var(--c-main-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--c-text-muted);
  font-style: italic;
}

/* 前後記事ナビ */
.post-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.post-nav-prev,
.post-nav-next {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-main);
  min-width: 0;
}
.post-nav-prev a,
.post-nav-next a {
  color: var(--c-main);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 1 !important;
}
.post-nav-next { text-align: right; }
.post-nav-index {
  padding: 10px 20px;
  border: 1.5px solid var(--c-main);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-main);
  white-space: nowrap;
  transition: all 0.25s;
  opacity: 1 !important;
  flex-shrink: 0;
}
.post-nav-index:hover {
  background: var(--c-main);
  color: #fff;
  opacity: 1 !important;
}

/* サイドバー */
.single-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--c-light);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-main);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.sidebar-cat-list { display: flex; flex-direction: column; gap: 4px; }
.sidebar-cat-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--c-text-muted);
  border-radius: 6px;
  transition: all 0.2s;
  opacity: 1 !important;
}
.sidebar-cat-list li a:hover { background: #fff; color: var(--c-main); opacity: 1 !important; }
.cat-count { font-size: 0.78rem; color: var(--c-text-muted); }

.sidebar-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-border);
  align-items: flex-start;
  opacity: 1 !important;
}
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post:hover { opacity: 0.75 !important; }
.sidebar-post-thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: 8px; overflow: hidden; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--c-main-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--c-main);
}
.sidebar-post-info { flex: 1; min-width: 0; }
.sidebar-post-info p {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .hero-catch { font-size: 2.1rem; }
  .numbers-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .service-card { padding: 32px 24px; }
  .contact-form-wrap { padding: 28px 20px; }
  .company-table th { width: 110px; }
  .feature-card-link { grid-template-columns: 1fr; }
  .feature-card-thumb { aspect-ratio: 16 / 9; }
  .feature-card-body { padding: 24px 20px; }
  .feature-card-title { font-size: 1.15rem; }
  .secondary-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  .post-nav { flex-direction: column; align-items: center; }
  .post-nav-prev, .post-nav-next { text-align: center; }
}
