/* ============================================================
   有限会社中村空調設備 コーポレートサイト
   共通スタイル
   ============================================================ */

:root {
  --navy: #0e2a4a;
  --blue: #1565c0;
  --blue-d: #0d4a9e;
  --accent: #e8521e;
  --accent-d: #c8410f;
  --ink: #1a2330;
  --gray: #5a6573;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-navy: #0e2a4a;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 10px 40px rgba(14, 42, 74, 0.08);
  --shadow-h: 0 18px 50px rgba(14, 42, 74, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  line-height: 1.85;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- English section label ---------- */
.eyebrow {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-left: 34px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}
.eyebrow.center { padding-left: 0; }
.eyebrow.center::before { display: none; }

.sec-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: 0.04em;
}
.sec-lead { color: var(--gray); margin-top: 18px; font-size: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 24px rgba(14,42,74,0.07); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.logo-mark svg { width: 24px; height: 24px; }
.logo-text b { display: block; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: .04em; line-height: 1.2; }
.logo-text span { display: block; font-size: 10px; color: var(--gray); letter-spacing: .15em; font-family: "Poppins", sans-serif; }

.gnav { display: flex; align-items: center; gap: 4px; }
.gnav a {
  padding: 10px 15px; font-size: 14px; font-weight: 500; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  border-radius: 8px; transition: color .2s;
}
.gnav a .en { font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.gnav a .jp { font-size: 10px; color: var(--gray); letter-spacing: .08em; }
.gnav a:hover, .gnav a.active { color: var(--blue); }
.gnav a:hover .jp, .gnav a.active .jp { color: var(--blue); }

.nav-cta {
  margin-left: 10px; background: var(--accent); color: #fff !important;
  padding: 12px 22px !important; border-radius: 999px; font-weight: 600;
  flex-direction: row !important; gap: 8px !important;
  box-shadow: 0 6px 18px rgba(232,82,30,0.3); transition: transform .2s, background .2s;
}
.nav-cta:hover { background: var(--accent-d); transform: translateY(-2px); }
.nav-cta .en { font-size: 13px !important; }

.burger { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px auto; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    linear-gradient(105deg, rgba(10,32,58,0.92) 0%, rgba(14,55,110,0.78) 42%, rgba(18,95,201,0.45) 100%),
    url('../images/hero.jpg') center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 45%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><g fill="none" stroke="%23ffffff" stroke-opacity="0.05" stroke-width="1"><path d="M0 30h60M30 0v60"/></g></svg>');
  pointer-events: none;
}
.hero-deco {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 620px; height: 620px; max-width: 60%;
  border-radius: 50%; opacity: .5;
  background: radial-gradient(circle, rgba(21,101,192,0.5), transparent 70%);
  filter: blur(12px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 120px 24px 80px; width: 100%; }
.hero .eyebrow { color: #8ec5ff; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: "Poppins"; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after { content: ""; width: 1px; height: 40px; background: rgba(255,255,255,.5); animation: scrolly 1.8s infinite; }
@keyframes scrolly { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- award-style hero typography ---------- */
.hero-inner { position: relative; z-index: 3; }

/* giant background watermark */
.hero-watermark {
  position: absolute; z-index: 1; right: -2%; bottom: -6%;
  font-family: "Poppins", sans-serif; font-weight: 800;
  font-size: clamp(110px, 21vw, 340px); line-height: .8; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.10);
  white-space: nowrap; pointer-events: none; user-select: none;
  opacity: 0; transform: translateX(40px);
  animation: wmIn 1.6s cubic-bezier(.16,1,.3,1) .2s forwards;
}
@keyframes wmIn { to { opacity: 1; transform: none; } }

/* vertical side label */
.hero-vside {
  position: absolute; z-index: 3; right: 34px; top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%) translateX(20px);
  font-family: "Poppins", sans-serif; font-weight: 500; font-size: 12px;
  letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.55);
  padding-top: 60px; opacity: 0; animation: fadeUp 1.1s ease 1s forwards;
}
.hero-vside::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 44px;
  background: linear-gradient(rgba(255,255,255,0.6), transparent);
}

.hero-eyebrow {
  font-size: 14px; letter-spacing: 0.28em; color: #9ed2ff !important;
  opacity: 0; animation: fadeUp .9s ease .1s forwards;
}
.hero-eyebrow::before { background: #ffd24a; width: 30px; }

/* headline with line-mask reveal */
.hero-title {
  margin: 20px 0 0; font-weight: 900;
  font-size: clamp(38px, 7.4vw, 100px); line-height: 1.14; letter-spacing: 0.005em;
  text-shadow: 0 8px 40px rgba(5,20,45,0.35);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line-in {
  display: block; transform: translateY(115%);
  animation: lineUp 1.05s cubic-bezier(.19,1,.22,1) forwards;
}
.hero-title .line:nth-child(1) .line-in { animation-delay: .25s; }
.hero-title .line:nth-child(2) .line-in { animation-delay: .42s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-title em {
  font-style: normal; position: relative; padding: 0 .04em;
  background: linear-gradient(96deg, #8fd6ff 0%, #ffffff 40%, #ffd24a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.07em;
  background: linear-gradient(90deg, #8fd6ff, #ffd24a); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; animation: ulIn .9s cubic-bezier(.19,1,.22,1) 1.15s forwards;
}
@keyframes ulIn { to { transform: scaleX(1); } }

/* accent rule under headline */
.hero-rule {
  display: block; width: 0; height: 3px; margin-top: 38px;
  background: linear-gradient(90deg, var(--accent), #ffd24a);
  border-radius: 3px; animation: ruleIn 1s cubic-bezier(.19,1,.22,1) 1.25s forwards;
}
@keyframes ruleIn { to { width: 92px; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }

/* safety: if animations are disabled, show everything in final state */
@media (prefers-reduced-motion: reduce) {
  .hero-watermark, .hero-vside, .hero-eyebrow, .hero-title .line-in { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-title em::after { animation: none !important; transform: scaleX(1) !important; }
  .hero-rule { animation: none !important; width: 92px !important; }
}

.hero-scroll { z-index: 4; }

@media (max-width: 980px) {
  .hero-vside { display: none; }
  .hero-watermark { font-size: 30vw; bottom: 2%; }
}

/* page hero (sub pages) */
.phero {
  position: relative; padding: 150px 0 64px; color: #fff;
  background: linear-gradient(120deg, #0e2a4a 0%, #14457e 100%);
  overflow: hidden;
}
.phero::after {
  content:""; position:absolute; inset:0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><g fill="none" stroke="%23ffffff" stroke-opacity="0.05" stroke-width="1"><path d="M0 30h60M30 0v60"/></g></svg>');
}
.phero .container { position: relative; z-index: 2; }
.phero .eyebrow { color: #8ec5ff; }
.phero h1 { font-size: clamp(28px, 4.5vw, 46px); font-weight: 700; letter-spacing: .05em; }
.phero p { color: rgba(255,255,255,.85); margin-top: 14px; max-width: 660px; }

/* breadcrumb */
.crumb { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--gray); padding: 14px 0; }
.crumb a:hover { color: var(--blue); }
.crumb li::after { content: "›"; margin-left: 8px; color: #b9c2cc; }
.crumb li:last-child::after { display: none; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 50px; }
.sec-head.center { text-align: center; }

/* strengths cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.scard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 30px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); border-color: transparent; }
.scard .ico {
  width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e8f1ff, #d3e4ff); color: var(--blue); margin-bottom: 20px;
}
.scard .ico svg { width: 30px; height: 30px; }
.scard .num { font-family: "Poppins"; font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .1em; }
.scard h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 6px 0 12px; }
.scard p { font-size: 14.5px; color: var(--gray); }

/* service cards with image */
.svc { background:#fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.svc .thumb { height: 200px; background-size: cover; background-position: center;
  background-color: #14457e; position: relative; }
.svc .thumb::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(14,42,74,.45)); }
.svc .body { padding: 26px 24px 30px; }
.svc .body .en { font-family:"Poppins"; font-size: 12px; letter-spacing:.12em; color: var(--accent); font-weight:600; }
.svc h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 4px 0 12px; }
.svc p { font-size: 14px; color: var(--gray); }

/* feature highlight band (technology appeal) */
.band {
  background: linear-gradient(120deg, #0e2a4a, #1565c0); color: #fff;
  border-radius: 22px; padding: 60px; position: relative; overflow: hidden;
}
.band::before { content:""; position:absolute; right:-60px; top:-60px; width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.band .eyebrow { color:#ffd24a; }
.band h2 { font-size: clamp(24px,3.2vw,34px); font-weight:700; line-height:1.45; letter-spacing:.04em; }
.band p { color: rgba(255,255,255,.9); margin: 18px 0 30px; max-width: 640px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
  padding: 15px 34px; border-radius: 999px; transition: transform .2s, background .2s, box-shadow .2s;
  cursor: pointer; border: none; font-family: inherit;
}
.btn .ar { transition: transform .2s; }
.btn:hover .ar { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(232,82,30,.32); }
.btn-primary:hover { background: var(--accent-d); transform: translateY(-2px); }
.btn-blue { background:#fff; color: var(--navy); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color:#fff; }

/* flow steps */
.flow { counter-reset: step; display: grid; gap: 16px; }
.flow li { list-style: none; display: flex; gap: 22px; align-items: flex-start;
  background:#fff; border:1px solid var(--line); border-radius: 12px; padding: 22px 26px; }
.flow li::before {
  counter-increment: step; content: counter(step,decimal-leading-zero);
  font-family:"Poppins"; font-weight:700; font-size: 22px; color: var(--blue);
  flex-shrink:0; width: 50px;
}
.flow li h4 { font-size: 16.5px; color: var(--navy); margin-bottom: 2px; }
.flow li p { font-size: 14px; color: var(--gray); }

/* info table */
.itable { width: 100%; border-collapse: collapse; background:#fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.itable th, .itable td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.itable th { background: var(--navy); color:#fff; font-weight:600; white-space: nowrap; width: 220px; }
.itable tr:last-child th, .itable tr:last-child td { border-bottom: none; }
.itable td { color: var(--ink); }

/* check list */
.checks { display: grid; gap: 14px; }
.checks li { list-style:none; display:flex; gap:14px; align-items:flex-start; font-size:15px; }
.checks li svg { flex-shrink:0; width:24px; height:24px; color: var(--blue); margin-top:3px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #0e2a4a, #14457e); color:#fff; text-align:center;
  padding: 80px 24px; position: relative; overflow:hidden;
}
.cta-band::after { content:""; position:absolute; inset:0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><g fill="none" stroke="%23ffffff" stroke-opacity="0.05" stroke-width="1"><path d="M0 30h60M30 0v60"/></g></svg>'); }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(24px,3.4vw,36px); font-weight:700; letter-spacing:.04em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 16px auto 8px; max-width: 560px; }
.cta-contacts { display:flex; flex-wrap:wrap; justify-content:center; gap: 18px; margin-top: 34px; }
.cta-tel { background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.3); border-radius:14px; padding: 18px 30px; }
.cta-tel .lab { font-size:12px; letter-spacing:.1em; color:#8ec5ff; }
.cta-tel .num { font-family:"Poppins"; font-size:26px; font-weight:700; letter-spacing:.02em; }

/* ============================================================
   FORM
   ============================================================ */
.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 46px; box-shadow: var(--shadow); }
.field { margin-bottom: 26px; }
.field label { display:block; font-weight:600; font-size:14.5px; color:var(--navy); margin-bottom:8px; }
.field .req { background: var(--accent); color:#fff; font-size:11px; padding:2px 8px; border-radius:4px; margin-left:8px; vertical-align:middle; }
.field .opt { background: var(--line); color:var(--gray); font-size:11px; padding:2px 8px; border-radius:4px; margin-left:8px; vertical-align:middle; }
.field input, .field select, .field textarea {
  width:100%; padding: 14px 16px; border:1.5px solid var(--line); border-radius:10px;
  font-family: inherit; font-size:15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,101,192,.12); }
.field textarea { resize: vertical; min-height: 140px; }
.radios { display:flex; flex-wrap:wrap; gap: 12px; }
.radios label { display:inline-flex; align-items:center; gap:8px; font-weight:500; font-size:14px; color:var(--ink);
  border:1.5px solid var(--line); border-radius:999px; padding:10px 20px; cursor:pointer; margin-bottom:0; transition:.2s; }
.radios input { width:auto; }
.radios label:has(input:checked) { border-color: var(--blue); background:#eef5ff; color: var(--blue); }
.agree { display:flex; gap:10px; align-items:flex-start; background:var(--bg-alt); border-radius:10px; padding:18px; font-size:14px; }
.agree input { width:auto; margin-top:5px; }
.form-note { font-size:13px; color:var(--gray); margin-top:10px; }
.form-msg { display:none; padding:16px; border-radius:10px; margin-bottom:22px; font-size:14.5px; }
.form-msg.ok { display:block; background:#e7f6ec; color:#1c7a3e; border:1px solid #b6e2c4; }

.contact-aside { background: var(--navy); color:#fff; border-radius: var(--radius); padding: 40px 34px; }
.contact-aside h3 { font-size:18px; margin-bottom:18px; letter-spacing:.04em; }
.contact-aside .row { padding: 16px 0; border-bottom:1px solid rgba(255,255,255,.15); }
.contact-aside .row:last-child{border-bottom:none;}
.contact-aside .lab { font-size:12px; color:#8ec5ff; letter-spacing:.1em; }
.contact-aside .val { font-family:"Poppins"; font-size:22px; font-weight:600; }
.contact-aside .sm { font-size:13px; color:rgba(255,255,255,.8); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-navy); color: rgba(255,255,255,.8); padding: 70px 0 30px; }
.footer-top { display:flex; flex-wrap:wrap; justify-content:space-between; gap:40px; padding-bottom:46px; border-bottom:1px solid rgba(255,255,255,.12); }
.footer .logo-text b { color:#fff; }
.footer .logo-text span { color:#8ec5ff; }
.footer address { font-style: normal; font-size:13.5px; line-height:1.9; margin-top:20px; color:rgba(255,255,255,.7); }
.fnav { display:grid; grid-template-columns: repeat(2,auto); gap: 12px 48px; }
.fnav a { font-size:14px; display:flex; flex-direction:column; }
.fnav a .en { font-family:"Poppins"; font-weight:600; font-size:14px; }
.fnav a .jp { font-size:11px; color:#8ec5ff; }
.fnav a:hover .en { color:#fff; }
.footer-bottom { display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; padding-top:24px; font-size:12.5px; color:rgba(255,255,255,.55); }
.footer-bottom a:hover { color:#fff; }

/* reveal animation */
.reveal { opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .gnav { position: fixed; top:76px; right:0; bottom:0; width: 280px; background:#fff;
    flex-direction:column; align-items:stretch; padding:20px; gap:4px; transform: translateX(100%);
    transition: transform .3s; box-shadow: -10px 0 40px rgba(0,0,0,.1); overflow-y:auto; }
  .gnav.open { transform: none; }
  .gnav a { flex-direction: row; justify-content: space-between; padding:14px 12px; border-bottom:1px solid var(--line); border-radius:0; }
  .gnav a .jp { color: var(--gray); }
  .nav-cta { justify-content:center; margin: 14px 0 0; }
  .burger { display:block; }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .band { padding: 40px 26px; }
  .form { padding: 28px 20px; }
  .itable th { width: 120px; padding: 14px; }
  .itable td { padding: 14px; }
  .footer-top { flex-direction: column; }
  .hero-inner { padding-top: 110px; }
}
