/* ================================================
   クリーンテック解体 — メインスタイルシート
   カラー: ネイビー (#1C2B3A) + オレンジ (#E8820C)
   ================================================ */

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

:root {
  --navy:    #1C2B3A;
  --navy2:   #243447;
  --navy3:   #2e4057;
  --orange:  #E8820C;
  --orange2: #f59330;
  --white:   #ffffff;
  --gray:    #f5f6f8;
  --gray2:   #e8eaed;
  --text:    #1a1a1a;
  --text2:   #555;
  --border:  #dde1e7;
  --radius:  8px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --shadow2: 0 12px 48px rgba(0,0,0,.18);
  --trans:   .25s ease;
}

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

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Yu Gothic', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utilities ---------- */
.bg-dark  { background: var(--navy); color: var(--white); }
.bg-light { background: var(--gray); }

/* ================================================
   KEYFRAMES
   ================================================ */

@keyframes slideUp {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes heroBgPan {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 120px 120px, -80px 80px; }
}

@keyframes heroGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: .18; }
  50%       { transform: translate(-42%, -58%) scale(1.3); opacity: .28; }
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,130,12,.5); }
  50%       { box-shadow: 0 0 0 10px rgba(232,130,12,0); }
}

@keyframes secHeadSlide {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* prefers-reduced-motion: アニメーション無効化 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ================================================
   SECTION HEAD
   ================================================ */
.sec-head {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.sec-head.sec-head--visible {
  opacity: 1;
  transform: none;
}
.sec-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 900;
  letter-spacing: .04em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.sec-head p  { color: var(--text2); font-size: .975rem; }
.sec-head.light h2 { color: var(--white); }
.sec-head.light p  { color: rgba(255,255,255,.65); }

.sec-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ================================================
   FADE-IN (scroll reveal)
   ================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}
.fade-in.visible { opacity: 1; transform: none; }

/* Stagger delays for grids */
.services-grid .svc-card:nth-child(1) { transition-delay: 0s; }
.services-grid .svc-card:nth-child(2) { transition-delay: .12s; }
.services-grid .svc-card:nth-child(3) { transition-delay: .24s; }

.strengths-grid .str-item:nth-child(1) { transition-delay: 0s; }
.strengths-grid .str-item:nth-child(2) { transition-delay: .1s; }
.strengths-grid .str-item:nth-child(3) { transition-delay: .2s; }
.strengths-grid .str-item:nth-child(4) { transition-delay: .3s; }

.works-grid .work-card:nth-child(1) { transition-delay: 0s; }
.works-grid .work-card:nth-child(2) { transition-delay: .08s; }
.works-grid .work-card:nth-child(3) { transition-delay: .16s; }
.works-grid .work-card:nth-child(4) { transition-delay: .24s; }
.works-grid .work-card:nth-child(5) { transition-delay: .32s; }
.works-grid .work-card:nth-child(6) { transition-delay: .40s; }

/* ================================================
   PROGRESS BAR
   ================================================ */
#progress-bar {
  position: fixed;
  top: 68px; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--orange2), #ffc947);
  z-index: 999;
  transition: width .1s linear;
  pointer-events: none;
}

/* ================================================
   HEADER
   ================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 43, 58, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--trans), background var(--trans);
}
#header.scrolled {
  background: rgba(20, 32, 44, .99);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  transition: transform var(--trans), filter var(--trans);
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.4) brightness(1.2) saturate(1.1);
  border-radius: 4px;
}
.logo:hover .logo-img { transform: scale(1.06); filter: contrast(1.4) brightness(1.4) saturate(1.1); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: .9rem; font-weight: 700; color: var(--white); }
.logo-sub  { font-size: .62rem; color: rgba(255,255,255,.55); }
.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.4) brightness(1.2) saturate(1.1);
  border-radius: 4px;
}

/* Global Nav */
.global-nav { margin-left: auto; }
.global-nav ul {
  display: flex;
  gap: 2px;
  align-items: center;
}
.global-nav a {
  display: block;
  padding: 7px 13px;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  border-radius: 5px;
  transition: color var(--trans), background var(--trans);
  position: relative;
}
.global-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 13px; right: 13px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .25s ease;
  border-radius: 2px;
}
.global-nav a:hover { color: var(--white); }
.global-nav a:hover::after { transform: scaleX(1); }
.global-nav a.active {
  color: var(--white);
  background: rgba(232,130,12,.18);
}
.global-nav a.active::after { transform: scaleX(1); }

/* Header CTA */
.header-cta {
  display: inline-block;
  padding: 9px 18px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  flex-shrink: 0;
  margin-left: 8px;
}
.header-cta:hover {
  background: var(--orange2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,130,12,.45);
}

/* Mobile CTA (inside nav) */
.nav-cta-mobile { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;  /* ← ロゴの右端に寄せる */
  flex-shrink: 0;
  border-radius: 5px;
  transition: background var(--trans);
}
.hamburger:hover { background: rgba(255,255,255,.08); }
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   FLOATING CTA
   ================================================ */
#float-cta {
  position: fixed;
  bottom: 28px; right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50px;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(232,130,12,.5);
  z-index: 900;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  text-decoration: none;
  white-space: nowrap;
}
#float-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  animation: floatBounce 3s ease-in-out 1s infinite;
}
#float-cta:hover {
  background: var(--orange2);
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(232,130,12,.6);
}

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

/* 背景レイヤー */
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy);
  overflow: hidden;
}

/* 動くグリッドライン */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,  transparent, transparent 60px, rgba(232,130,12,.055) 60px, rgba(232,130,12,.055) 61px),
    repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(232,130,12,.03)  80px, rgba(232,130,12,.03)  81px);
  animation: heroBgPan 18s linear infinite;
}

/* 光のオーブ */
.hero-bg::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,130,12,.22) 0%, rgba(232,130,12,.05) 45%, transparent 70%);
  top: 50%; left: 62%;
  animation: heroGlow 10s ease-in-out infinite;
  pointer-events: none;
}

/* ボトムフェード */
.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}

/* ヒーローコンテンツ (ページロード時アニメーション) */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border: 1px solid rgba(232,130,12,.6);
  color: var(--orange2);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 28px;
  animation: slideUp .7s .1s both;
}
.hero-area-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: .02em;
  margin-bottom: 22px;
  animation: slideUp .8s .25s both;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--orange);
  position: relative;
}

.hero-sub {
  font-size: clamp(.9rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.72);
  margin-bottom: 40px;
  line-height: 1.85;
  animation: slideUp .8s .4s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp .8s .55s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 17px 36px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 6px 24px rgba(232,130,12,.45);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
  background-size: 400px 100%;
  animation: shimmer 3s ease-in-out 2s infinite;
}
.btn-primary:hover {
  background: var(--orange2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(232,130,12,.55);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 2px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color var(--trans), background var(--trans), color var(--trans), transform var(--trans);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 60px rgba(0,0,0,.25);
  margin-top: 64px;
  overflow: hidden;
  animation: slideUp .8s .7s both;
}
.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background var(--trans);
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: #fdfaf6; }

.stat-n {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-n small { font-size: .9rem; font-weight: 800; }
.stat-l {
  font-size: .72rem;
  color: var(--text2);
  margin-top: 8px;
  text-align: center;
  letter-spacing: .03em;
}

/* ================================================
   SERVICES
   ================================================ */
#services { padding: 110px 0; }

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

.svc-card {
  position: relative;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 40px 30px 34px;
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease, border-color .3s ease;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform .35s ease;
  transform-origin: left;
}
.svc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 64px rgba(0,0,0,.13);
  border-color: rgba(232,130,12,.4);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow);
}
.svc-card.featured::before { transform: scaleX(1); }

.svc-badge {
  position: absolute;
  top: -1px; right: 24px;
  background: var(--orange);
  color: var(--white);
  font-size: .68rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 0 0 10px 10px;
  letter-spacing: .1em;
}

.svc-icon {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--orange);
  transition: background .35s ease, transform .35s ease;
  will-change: transform;
}
.svc-card:hover .svc-icon {
  background: var(--orange);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}
.svc-icon svg { width: 36px; height: 36px; }

.svc-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--navy);
}
.svc-card > p {
  font-size: .9rem;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.8;
}

.svc-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.svc-list li {
  font-size: .875rem;
  padding-left: 18px;
  position: relative;
  color: var(--text2);
}
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.svc-btn {
  display: block;
  text-align: center;
  padding: 13px;
  border: 2px solid var(--orange);
  color: var(--orange);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--trans), color var(--trans), transform var(--trans);
}
.svc-btn:hover,
.svc-card.featured .svc-btn {
  background: var(--orange);
  color: var(--white);
}
.svc-btn:hover { transform: translateY(-1px); }

/* ================================================
   STRENGTHS
   ================================================ */
#strengths { padding: 110px 0; }

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

.str-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.str-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(232,130,12,.5);
  transform: translateY(-4px);
}

.str-icon {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  background: rgba(232,130,12,.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  transition: background .3s ease, transform .3s ease;
}
.str-item:hover .str-icon {
  background: rgba(232,130,12,.22);
  transform: scale(1.08);
}
.str-icon svg { width: 32px; height: 32px; }

.str-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.str-item p {
  font-size: .85rem;
  color: rgba(255,255,255,.62);
  line-height: 1.8;
}

/* ================================================
   WORKS
   ================================================ */
#works { padding: 110px 0; }

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

.work-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .4s cubic-bezier(.25,.8,.25,1), box-shadow .4s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow2);
}

.work-img {
  height: 192px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.work-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 60%);
}
.work-img-1 { background: linear-gradient(135deg, #2c3e50 0%, #3d566e 100%); }
.work-img-2 { background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 100%); }
.work-img-3 { background: linear-gradient(135deg, #2d1b4e 0%, #4a2f7a 100%); }
.work-img-4 { background: linear-gradient(135deg, #1a2a4a 0%, #2e4a7a 100%); }
.work-img-5 { background: linear-gradient(135deg, #3d2c1a 0%, #6e4f2c 100%); }
.work-img-6 { background: linear-gradient(135deg, #1a3a3a 0%, #2d6a6a 100%); }

.work-cat {
  position: relative;
  z-index: 1;
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: .08em;
}

.work-body { padding: 18px 22px 22px; }
.work-body h4 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
  line-height: 1.5;
}
.work-body p { font-size: .8rem; color: var(--text2); }

/* Works CTA */
.works-cta {
  text-align: center;
  margin-top: 48px;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--trans), color var(--trans), transform var(--trans);
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

/* ================================================
   COMPANY
   ================================================ */
#company { padding: 110px 0; }

.company-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}
.company-table th {
  width: 148px;
  color: var(--text2);
  font-weight: 700;
  white-space: nowrap;
  background: var(--gray);
}
.company-table td a { color: var(--orange); text-decoration: underline; }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

.company-map {
  position: sticky;
  top: 88px;
}
.map-placeholder {
  height: 300px;
  background: var(--gray);
  border: 2px dashed var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--text2);
  transition: border-color var(--trans);
}
.map-placeholder:hover { border-color: var(--orange); }
.map-placeholder p   { font-size: .9rem; line-height: 1.65; }
.map-placeholder span { font-size: .75rem; color: #aaa; }

/* ================================================
   FAQ
   ================================================ */
#faq { padding: 110px 0; }

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.faq-item:hover  { border-color: rgba(232,130,12,.3); }
.faq-item.open   { border-color: var(--orange); box-shadow: 0 4px 20px rgba(232,130,12,.12); }

.faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  transition: background var(--trans);
}
.faq-q:hover { background: var(--gray); }
.faq-q::before {
  content: 'Q';
  flex-shrink: 0;
  width: 30px; height: 30px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 900;
}
.faq-item.open .faq-q::before { background: var(--orange); }

.faq-arrow {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--orange);
  margin-left: auto;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16,1,.3,1);
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a p {
  padding: 0 24px 22px 68px;
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.85;
}

/* ================================================
   CONTACT
   ================================================ */
#contact { padding: 110px 0; }

.contact-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 36px; }

.tel-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tel-block svg { flex-shrink: 0; margin-top: 4px; }
.tel-block > div { display: flex; flex-direction: column; gap: 4px; }
.tel-label  { font-size: .75rem; color: rgba(255,255,255,.55); letter-spacing: .05em; }
.tel-num {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .04em;
  transition: color var(--trans);
}
.tel-num:hover { color: var(--orange); }
.tel-hours { font-size: .75rem; color: rgba(255,255,255,.45); }

.contact-checks {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.contact-checks li {
  font-size: .9rem;
  color: rgba(255,255,255,.78);
  padding-left: 24px;
  position: relative;
}
.contact-checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 900;
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 7px;
}

.req { background: #e74c3c; color: var(--white); font-size: .65rem; padding: 2px 7px; border-radius: 4px; font-weight: 800; letter-spacing: .04em; }
.opt { background: var(--gray2); color: var(--text2); font-size: .65rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .925rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,130,12,.18);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn-submit {
  width: 100%;
  padding: 17px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 18px rgba(232,130,12,.4);
  position: relative;
  overflow: hidden;
}
.btn-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  background-size: 400px 100%;
  animation: shimmer 3s ease-in-out 3s infinite;
}
.btn-submit:hover:not(:disabled) {
  background: var(--orange2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(232,130,12,.5);
}
.btn-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
  background: #888;
  box-shadow: none;
  transform: none;
}
.btn-submit:disabled::after { display: none; }

/* フォームバリデーション */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e74c3c;
  background: rgba(231,76,60,.05);
}
.field-error {
  font-size: .78rem;
  color: #e74c3c;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }

/* ================================================
   FOOTER
   ================================================ */
footer {
  background: #0f1820;
  padding: 60px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand { gap: 14px; }
.footer-name { font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-addr,
.footer-tel { font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-tel a { color: rgba(255,255,255,.65); transition: color var(--trans); }
.footer-tel a:hover { color: var(--orange); }
.footer-brand > div { display: flex; flex-direction: column; gap: 5px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.footer-nav a {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  transition: color var(--trans);
  position: relative;
}
.footer-nav a:hover { color: var(--orange); }

.footer-copy {
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ================================================
   PAGE HERO (サブページ用)
   ================================================ */
.page-hero {
  padding: 130px 24px 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, var(--navy3) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(232,130,12,.04) 60px, rgba(232,130,12,.04) 61px);
  animation: heroBgPan 20s linear infinite;
}
.page-hero .sec-label {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  animation: slideUp .7s .1s both;
}
.page-hero p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.68);
  font-size: .975rem;
  animation: slideUp .7s .2s both;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .strengths-grid { grid-template-columns: 1fr 1fr; }
  .works-grid     { grid-template-columns: 1fr 1fr; }
  .company-wrap   { grid-template-columns: 1fr; }
  .company-map    { position: static; }
  .contact-wrap   { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Header */
  .global-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(20, 32, 44, .98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.16,1,.3,1);
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .global-nav.open { max-height: 500px; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul li a {
    display: block;
    padding: 16px 24px;
    font-size: .95rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .global-nav ul li a::after { display: none; }
  .global-nav ul li a.active { background: rgba(232,130,12,.12); }
  .nav-cta-mobile {
    display: block;
    margin: 16px 20px 20px;
    padding: 14px;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    font-weight: 700;
    border-radius: var(--radius);
    font-size: .95rem;
  }
  .header-cta { display: none; }
  .hamburger  { display: flex; }

  /* Progress bar: headerと同じ幅になるよう top を調整 */
  #progress-bar { top: 68px; }

  /* Sections */
  #services, #strengths, #works, #company, #faq, #contact { padding: 80px 0; }
  .sec-head { margin-bottom: 44px; }

  .services-grid  { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .works-grid     { grid-template-columns: 1fr; }

  /* Hero */
  #hero { padding: 110px 20px 80px; }
  .hero-btns  { flex-direction: column; align-items: stretch; }
  .hero-stats {
    flex-wrap: wrap;
    margin-top: 48px;
    border-radius: 12px;
  }
  .hero-stat {
    flex-basis: 50%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:nth-child(odd)  { border-right: 1px solid var(--border); }
  .hero-stat:last-child,
  .hero-stat:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  /* Company */
  .company-table th { width: 110px; white-space: normal; }

  /* Form */
  .form-row    { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }

  /* Float CTA */
  #float-cta { bottom: 16px; right: 12px; font-size: .8rem; padding: 11px 16px; }

  /* Footer */
  .footer-top { flex-direction: column; }
  .footer-nav { gap: 8px 14px; }

  /* Page hero */
  .page-hero { padding: 110px 20px 56px; }
}

@media (max-width: 480px) {
  .strengths-grid { grid-template-columns: 1fr; }
  .stat-n { font-size: 1.5rem; }
  .hero-stat { padding: 20px 12px; }
}
