@charset "UTF-8";

/* =========================================================
   前川電設 コーポレートサイト  共通スタイル
   コンセプト: 空気と水の流れ / 青×白 / 明るくクリーン
   ========================================================= */

/* ---------- デザイントークン ---------- */
:root {
  --blue-900: #0b3a66;
  --blue-800: #0d4f8f;
  --blue-700: #0f6bc0;
  --blue-600: #1581d6;
  --blue-500: #2196e8;
  --blue-400: #4eaef1;
  --sky-300: #84c8f6;
  --sky-200: #b9e0fb;
  --sky-100: #e4f2fd;
  --sky-50: #f3f9fe;
  --aqua: #16b8c4;
  --aqua-soft: #d7f3f5;

  --ink: #15314b;
  --ink-soft: #4a627a;
  --line: #dbe8f3;
  --white: #ffffff;

  --grad-blue: linear-gradient(135deg, #1581d6 0%, #2196e8 45%, #4eaef1 100%);
  --grad-sky: linear-gradient(135deg, #2196e8 0%, #16b8c4 100%);
  --grad-soft: linear-gradient(180deg, #f3f9fe 0%, #ffffff 100%);

  --shadow-sm: 0 4px 14px rgba(21, 99, 178, 0.08);
  --shadow-md: 0 14px 38px rgba(21, 99, 178, 0.12);
  --shadow-lg: 0 28px 64px rgba(13, 79, 143, 0.18);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;

  --header-h: 84px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --font-en: "Outfit", "Noto Sans JP", sans-serif;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.25s var(--ease); }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 汎用レイアウト ---------- */
.wrap { width: min(92%, var(--maxw)); margin-inline: auto; }
.section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.section--soft { background: var(--grad-soft); }
.section--sky { background: var(--sky-50); }

.en-label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-500);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.en-label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--grad-sky);
  border-radius: 2px;
}

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .en-label { justify-content: center; }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.9rem);
  line-height: 1.35;
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.section-title .accent { color: var(--blue-600); }
.section-lead {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 640px;
}
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 16px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn--line { background: #06c755; color: #fff; box-shadow: 0 14px 30px rgba(6, 199, 85, 0.28); }
.btn--line:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(6, 199, 85, 0.36); }
.btn--ghost { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--blue-600); }
.btn--lg { padding: 19px 44px; font-size: 1.05rem; }

/* ---------- ロゴ枠（プレースホルダー） ---------- */
/* ロゴ画像（前川電設ワードマーク）を白の角丸プレート上に表示 */
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(11, 58, 102, 0.1);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.logo-frame__img {
  display: block;
  width: auto;
  height: 40px;
}
.logo-frame:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(11, 58, 102, 0.16);
}

/* ---------- ローダー ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--grad-blue);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__logo {
  padding: 24px 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
  animation: floatLogo 2.6s var(--ease) infinite;
}
.loader__logo .logo-frame__img { height: 92px; }
.loader__bar {
  width: 180px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 4px;
  background: #fff;
  animation: loadBar 1.3s var(--ease) infinite;
}
@keyframes loadBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), height 0.4s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); height: 72px; }
.header.is-scrolled::before { opacity: 1; }
.header__inner {
  width: min(94%, 1320px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header__logo .logo-frame { padding: 6px 12px; }
.header__logo .logo-frame__img { height: 40px; transition: height 0.4s var(--ease); }
.header.is-scrolled .header__logo .logo-frame__img { height: 34px; }

.gnav { display: flex; align-items: center; gap: 6px; }
.gnav__link {
  position: relative;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.gnav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--grad-sky);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.gnav__link:hover { color: var(--blue-600); }
.gnav__link:hover::after,
.gnav__link.is-current::after { transform: scaleX(1); }
.gnav__link.is-current { color: var(--blue-700); font-weight: 700; }

.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn { padding: 12px 22px; font-size: 0.9rem; }

/* ハンバーガー */
.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  position: relative;
  background: var(--grad-blue);
  box-shadow: var(--shadow-sm);
  z-index: 1100;
}
.hamburger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), top 0.35s var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* モバイルメニュー */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: var(--grad-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 8% 60px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
}
.drawer__link .num {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--sky-200);
  letter-spacing: 0.1em;
}
.drawer__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.drawer__cta .btn { flex: 1 1 200px; justify-content: center; }
.drawer__cta .btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- フローティング LINE / メール ---------- */
.floating-cta {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0); }
.floating-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 20px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  gap: 3px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.floating-cta__btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow-lg); }
.floating-cta__btn .ic { width: 26px; height: 26px; }
.floating-cta__btn--line { background: #06c755; }
.floating-cta__btn--mail { background: var(--grad-blue); }

/* ---------- フッター ---------- */
.footer {
  position: relative;
  background: linear-gradient(160deg, #0b3a66 0%, #0d4f8f 60%, #1265a8 100%);
  color: rgba(255, 255, 255, 0.86);
  padding: clamp(60px, 8vw, 100px) 0 40px;
  overflow: hidden;
}
.footer__wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}
.footer__wave svg { width: 100%; height: clamp(40px, 6vw, 80px); display: block; }
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.footer__brand .logo-frame { background: rgba(255, 255, 255, 0.96); }
.footer__brand .logo-frame__img { height: 46px; }
.footer__desc { margin-top: 22px; font-size: 0.92rem; max-width: 340px; color: rgba(255,255,255,0.78); }
.footer__col-title {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sky-200);
  margin-bottom: 18px;
}
.footer__nav li { margin-bottom: 12px; }
.footer__nav a { font-size: 0.95rem; color: rgba(255,255,255,0.86); transition: color .25s, padding-left .25s; }
.footer__nav a:hover { color: #fff; padding-left: 6px; }
.footer__info { font-size: 0.92rem; font-style: normal; color: rgba(255,255,255,0.82); }
.footer__info dt { color: var(--sky-200); font-size: 0.74rem; letter-spacing: 0.12em; margin-top: 14px; }
.footer__info dt:first-child { margin-top: 0; }
.footer__info dd { margin: 2px 0 0; }
.footer__info a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}
.footer__pagetop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--sky-200);
}
.footer__pagetop:hover { color: #fff; }

/* ---------- 共通CTA（下層ページ末尾） ---------- */
.cta-band {
  position: relative;
  background: var(--grad-blue);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 9vw, 110px) 0;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 65%);
  border-radius: 50%;
}
.cta-band__inner { position: relative; z-index: 1; }
.cta-band__label { font-family: var(--font-en); letter-spacing: 0.3em; font-size: 0.8rem; opacity: 0.9; }
.cta-band__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 16px 0 12px;
  line-height: 1.4;
}
.cta-band__text { opacity: 0.92; max-width: 560px; margin: 0 auto 34px; }
.cta-band__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band__btns .btn--ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-band__btns .btn--ghost:hover { background: rgba(255,255,255,0.24); }
.cta-band__note { margin-top: 22px; font-size: 0.82rem; opacity: 0.78; }

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(50px, 8vw, 90px)) 0 clamp(60px, 9vw, 120px);
  background: var(--grad-blue);
  color: #fff;
  overflow: hidden;
}
.page-hero__blob {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.page-hero__blob--1 { width: 520px; height: 520px; right: -140px; top: -180px; }
.page-hero__blob--2 { width: 360px; height: 360px; left: -120px; bottom: -160px; background: radial-gradient(circle, rgba(22,184,196,0.28), transparent 70%); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__crumbs {
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.82);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 26px;
}
.page-hero__crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero__crumbs .sep { opacity: 0.6; }
.page-hero__en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sky-200);
}
.page-hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  margin-top: 12px;
  line-height: 1.3;
}
.page-hero__lead { margin-top: 20px; max-width: 600px; color: rgba(255,255,255,0.9); }
.page-hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
.page-hero__wave svg { width: 100%; height: clamp(36px, 5vw, 70px); display: block; }

/* ---------- スクロールリビール ---------- */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .loader { display: none; }
}

/* ---------- スキップリンク / フォーカス ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -150%);
  z-index: 2000;
  background: var(--blue-700);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- FAQ（アコーディオン） ---------- */
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq__q .qmark {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--sky-100);
  color: var(--blue-600);
  font-family: var(--font-en);
  font-weight: 700;
}
.faq__q .ico {
  margin-left: auto;
  flex: 0 0 auto;
  width: 22px; height: 22px;
  position: relative;
  transition: transform 0.35s var(--ease);
}
.faq__q .ico::before,
.faq__q .ico::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: var(--blue-600); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq__q .ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.35s var(--ease); }
.faq__item.is-open .faq__q .ico::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq__a-inner { padding: 0 26px 24px 72px; color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- リーガル（プライバシー等） ---------- */
.legal { max-width: 860px; margin: 0 auto; }
.legal__lead { color: var(--ink-soft); margin-bottom: 40px; }
.legal__block { margin-bottom: 36px; }
.legal__block h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 14px;
  padding-left: 16px;
  border-left: 4px solid var(--blue-500);
  line-height: 1.4;
}
.legal__block p { color: var(--ink-soft); margin-bottom: 12px; }
.legal__block ul { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.legal__block li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.legal__block li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
.legal__date { margin-top: 30px; color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 60px) 6% 90px;
}
.notfound__code {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 11rem);
  line-height: 1;
  background: var(--grad-sky);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 10px 0 16px; }
.notfound__text { color: var(--ink-soft); max-width: 480px; margin: 0 auto 34px; }
.notfound__btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- フッター追加（リーガルリンク） ---------- */
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.footer__legal a:hover { color: #fff; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
  .gnav { display: none; }
  .header__cta .btn--ghost { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .header__cta .btn--line { padding: 11px 16px; }
  .footer__top { grid-template-columns: 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .floating-cta__btn { width: 60px; height: 60px; }
}
