/* ============================================================
   株式会社カワモテック 会社サイト
   白基調 × 空色のアクセント。明るく爽やかなトーン。
   建物の電気設備工事（建築工事の一部としての電気工事）を伝える。
   ============================================================ */

:root {
  --white: #ffffff;
  --bg: #ffffff;
  --bg-2: #f3f8fc;          /* ごく薄い空色（セクションの下地） */
  --bg-3: #e6f1fa;
  --ink: #1b2a36;           /* 濃紺寄りの本文色 */
  --ink-soft: #4d5d6b;
  --muted: #7c8a96;
  --sky: #1e8ee6;           /* アクセント：空色 */
  --sky-dark: #146fbd;
  --sky-light: #d7ebfb;
  --sky-tint: rgba(30, 142, 230, 0.08);
  --red: #c9382a;           /* 社印の朱（ロゴ由来・ごく控えめに） */
  --line: #dde6ee;
  --shadow: 0 10px 30px rgba(27, 42, 54, 0.08);
  --shadow-lg: 0 24px 50px rgba(27, 42, 54, 0.12);
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Oswald', 'Noto Sans JP', sans-serif;
  --container: 1160px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: 'palt';
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.pc-only { display: none; }
@media (min-width: 768px) { .pc-only { display: inline; } }

/* ── ボタン ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
  border: 1.5px solid transparent; border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--sky); color: var(--white); border-color: var(--sky); box-shadow: 0 10px 24px rgba(30, 142, 230, 0.3); }
.btn--primary:hover { background: var(--sky-dark); border-color: var(--sky-dark); box-shadow: 0 14px 28px rgba(30, 142, 230, 0.35); }
.btn--ghost { color: var(--ink); border-color: rgba(27, 42, 54, 0.25); background: rgba(255, 255, 255, 0.7); }
.btn--ghost:hover { border-color: var(--sky); color: var(--sky-dark); background: var(--white); }
.btn--small { padding: 12px 24px; font-size: 14px; }

/* ── ヘッダー ────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(12px);
  transition: background 0.35s, box-shadow 0.35s;
}
.site-header--solid { background: rgba(255, 255, 255, 0.94); box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(27, 42, 54, 0.05); }
.site-header__inner {
  width: min(100% - 40px, 1320px); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: block; margin-right: auto; }
.brand__logo { height: 40px; width: auto; }
@media (min-width: 768px) { .brand__logo { height: 50px; } }
.gnav { display: none; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.gnav a { position: relative; padding: 6px 0; letter-spacing: 0.04em; transition: color 0.25s; }
.gnav a:hover { color: var(--sky-dark); }
.gnav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--sky); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.gnav__cta { color: var(--ink); font-weight: 700; }
.header-tel { display: none; font-family: var(--font-en); font-size: 22px; letter-spacing: 0.04em; color: var(--ink); line-height: 1; }
.header-tel__label { font-size: 11px; color: var(--sky); margin-right: 8px; vertical-align: 3px; letter-spacing: 0.2em; }
.menu-toggle {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  background: var(--white);
  display: flex; flex-direction: column; padding: 24px 28px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.menu-open .mobile-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--white); }
.mobile-nav a { padding: 16px 0; font-size: 18px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav__tel { font-family: var(--font-en); font-size: 28px !important; letter-spacing: 0.04em; color: var(--sky) !important; border: 0 !important; margin-top: 12px; }
@media (min-width: 1024px) {
  .gnav { display: flex; }
  .header-tel { display: block; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ── ヒーロー ────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background: var(--bg-2); overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/img/hero.jpg') 70% center / cover no-repeat;
  animation: hero-zoom 14s var(--ease) both;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0.35) 62%, rgba(255, 255, 255, 0.05) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 75%, rgba(255, 255, 255, 0.7) 100%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(30, 142, 230, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 142, 230, 0.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, #000 0%, #000 40%, transparent 75%);
}
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__watermark {
  position: absolute; right: -0.04em; bottom: 0.1em; z-index: -1; pointer-events: none;
  font-family: var(--font-en); font-weight: 600; font-size: clamp(120px, 17vw, 270px); line-height: 1; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(30, 142, 230, 0.13);
  animation: rise 1.4s var(--ease) 0.6s both;
}
@media (max-width: 767px) { .hero__watermark { display: none; } }
.hero__inner { width: min(100% - 48px, var(--container)); margin-inline: auto; padding-top: calc(var(--header-h) + 48px); padding-bottom: 110px; }
@media (min-width: 768px) { .hero__inner { padding-bottom: 96px; } }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.32em; color: var(--sky-dark);
  animation: rise 1s var(--ease) 0.2s both;
}
.hero__eyebrow-line { width: 48px; height: 2px; border-radius: 2px; background: var(--sky); }
.hero__brand {
  margin-top: 26px;
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 0.5em; row-gap: 4px;
  color: var(--ink); line-height: 1.1;
  animation: rise 1.1s var(--ease) 0.3s both;
}
.hero__brand-corp {
  font-size: clamp(15px, 1.5vw, 20px); font-weight: 500; letter-spacing: 0.3em; color: var(--ink-soft);
}
.hero__brand-name {
  font-size: clamp(42px, 6.4vw, 92px); font-weight: 700; letter-spacing: 0.1em; line-height: 1.1;
  white-space: nowrap;
}
.hero__title {
  margin-top: clamp(20px, 2.6vw, 34px);
  font-size: clamp(20px, 2.3vw, 31px); font-weight: 500; line-height: 1.6; letter-spacing: 0.08em; color: var(--ink);
}
.hero__title-line { display: block; overflow: hidden; }
.hero__title-line:nth-child(1) { animation: rise 1.1s var(--ease) 0.55s both; }
.hero__title-line:nth-child(2) { animation: rise 1.1s var(--ease) 0.7s both; }
.hero__title em { font-style: normal; color: var(--sky-dark); font-weight: 700; }
.hero__lead { margin-top: 22px; max-width: 560px; font-size: clamp(14px, 1.2vw, 15.5px); line-height: 2.1; letter-spacing: 0.04em; color: var(--ink-soft); animation: rise 1s var(--ease) 0.7s both; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1s var(--ease) 0.85s both; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: min(100% - 48px, var(--container)); margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px;
  padding: 18px 0 24px; border-top: 1px solid rgba(27, 42, 54, 0.12);
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.24em; color: var(--muted);
}
.hero__scroll { display: flex; align-items: center; gap: 12px; }
.hero__scroll span { display: block; width: 40px; height: 2px; border-radius: 2px; background: rgba(27, 42, 54, 0.15); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ''; position: absolute; inset: 0; background: var(--sky); animation: scroll-line 2s var(--ease) infinite; }
@keyframes scroll-line { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.hero__since { white-space: nowrap; }
.hero__since span { margin: 0 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ── 工種ティッカー ──────────────────────── */
.ticker { background: var(--sky); color: var(--white); overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; padding: 12px 0; animation: ticker 32s linear infinite; }
.ticker__track span { font-size: 14px; font-weight: 700; letter-spacing: 0.16em; padding: 0 28px; position: relative; }
.ticker__track span::after { content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); transform: translateY(-50%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── セクション共通 ──────────────────────── */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-head { text-align: center; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--left { text-align: left; }
.section-head__en { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.34em; color: var(--sky); }
.section-head__title { margin-top: 10px; font-size: clamp(30px, 4.4vw, 46px); font-weight: 900; line-height: 1.25; letter-spacing: 0.02em; }
.section-head__lead { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* スクロールで出現 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg, .hero__brand, .hero__watermark, .hero__title-line, .hero__eyebrow, .hero__lead, .hero__actions, .ticker__track, .hero__scroll span::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── 事業内容 ────────────────────────────── */
.section--services { background: var(--white); }
.services { display: grid; grid-template-columns: 1fr; gap: 20px; }
.service {
  position: relative; background: var(--white); padding: 36px 30px 34px;
  border: 1px solid var(--line); border-radius: 16px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.3s;
}
.service:nth-child(n+2).is-visible { transition-delay: 0.06s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.2em; color: var(--sky); }
.service__icon {
  width: 64px; height: 64px; padding: 12px; margin-top: 20px; border-radius: 14px;
  color: var(--sky-dark); background: var(--sky-tint);
  transition: background 0.35s, color 0.35s, transform 0.5s var(--ease);
}
.service__icon-fill { fill: var(--sky); stroke: var(--sky); }
.service:hover .service__icon { background: var(--sky); color: var(--white); transform: translateY(-3px); }
.service:hover .service__icon-fill { fill: var(--white); stroke: var(--white); }
.service__title { margin-top: 20px; font-size: 20px; font-weight: 700; letter-spacing: 0.03em; }
.service__text { margin-top: 12px; font-size: 14px; line-height: 1.85; color: var(--ink-soft); }
.service__list { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.service__list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.65; color: var(--ink); }
.service__list li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.service__icon-bolt { stroke: var(--sky); stroke-width: 2.2; }
.service:hover .service__icon-bolt { stroke: var(--white); }
.service--cta {
  background: linear-gradient(135deg, var(--sky) 0%, #4fb0f5 100%); color: var(--white); border-color: transparent;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
}
.service--cta__text { font-size: 16px; font-weight: 700; line-height: 1.7; }
.service--cta .btn--primary { background: var(--white); color: var(--sky-dark); border-color: var(--white); box-shadow: none; }
.service--cta .btn--primary:hover { background: var(--sky-light); }
@media (min-width: 640px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(4, 1fr); } .service { padding: 32px 26px 30px; } }

/* ── 選ばれる理由 ────────────────────────── */
.section--about { background: var(--bg-2); }
.section--about::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 20%, rgba(30, 142, 230, 0.12), transparent 70%);
}
.about { position: relative; display: grid; gap: 48px; align-items: center; }
.about__figure { position: relative; }
.about__figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); }
.about__figure::before { content: ''; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--sky-light); border-radius: 20px; pointer-events: none; z-index: -1; }
.about__caption {
  position: absolute; left: 16px; bottom: 16px; padding: 12px 18px; border-radius: 999px;
  background: var(--white); color: var(--sky-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; box-shadow: var(--shadow);
}
.about .section-head { margin-bottom: 36px; }
.reasons { display: grid; gap: 22px; }
.reason {
  display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; padding: 24px 26px;
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
}
.reason:nth-child(2).is-visible { transition-delay: 0.1s; }
.reason:nth-child(3).is-visible { transition-delay: 0.2s; }
.reason__no { font-family: var(--font-en); font-size: 28px; color: var(--sky); line-height: 1; grid-row: span 2; }
.reason__title { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.reason__text { margin-top: 8px; font-size: 14.5px; color: var(--ink-soft); }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ── 施工の流れ ──────────────────────────── */
.section--flow { background: var(--white); }
.flow { display: grid; gap: 18px; }
.flow__step { position: relative; background: var(--bg-2); padding: 30px 26px 28px; border-radius: 16px; border-top: 4px solid var(--sky-light); }
.flow__step:nth-child(2).is-visible { transition-delay: 0.1s; }
.flow__step:nth-child(3).is-visible { transition-delay: 0.2s; }
.flow__step:nth-child(4).is-visible { transition-delay: 0.3s; }
.flow__step:last-child { border-top-color: var(--sky); }
.flow__no { font-family: var(--font-en); font-size: 13px; letter-spacing: 0.24em; color: var(--sky); }
.flow__title { margin-top: 10px; font-size: 19px; font-weight: 700; }
.flow__text { margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }
@media (min-width: 768px) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .flow__step:not(:last-child)::after {
    content: ''; position: absolute; right: -22px; top: 50%; z-index: 1;
    width: 12px; height: 12px; border-right: 2px solid var(--sky); border-bottom: 2px solid var(--sky);
    transform: translateY(-50%) rotate(-45deg);
  }
}

/* ── 会社概要 ────────────────────────────── */
.section--company { background: var(--bg-2); overflow: hidden; }
.company__seal {
  position: absolute; right: -40px; top: 40px; width: clamp(220px, 30vw, 420px); opacity: 0.06; pointer-events: none;
}
.company { position: relative; max-width: 860px; margin-inline: auto; background: var(--white); border-radius: 20px; padding: 8px 32px; box-shadow: var(--shadow); }
.company__row { display: grid; grid-template-columns: 1fr; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company__row:last-child { border-bottom: 0; }
.company__row dt { font-size: 13px; letter-spacing: 0.12em; color: var(--sky-dark); font-weight: 700; }
.company__row dd { font-size: 16px; line-height: 1.8; }
.company__row a { border-bottom: 1px solid var(--sky-light); transition: border-color 0.25s, color 0.25s; }
.company__row a:hover { color: var(--sky-dark); border-color: var(--sky); }
@media (min-width: 640px) { .company__row { grid-template-columns: 200px 1fr; padding: 24px 0; } .company { padding: 12px 44px; } }

/* ── アクセス ────────────────────────────── */
.section--access { background: var(--white); }
.access { display: grid; gap: 36px; }
.access__address { font-size: 18px; font-weight: 700; line-height: 1.7; margin-bottom: 22px; }
.access__map { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.access__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) { .access { grid-template-columns: 4fr 8fr; gap: 64px; align-items: center; } }

/* ── お問い合わせ ────────────────────────── */
.section--contact { background: linear-gradient(160deg, #eaf4fd 0%, #f7fbff 50%, #e4f1fc 100%); }
.section--contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background: radial-gradient(45% 55% at 20% 20%, rgba(30, 142, 230, 0.14), transparent 70%), radial-gradient(45% 55% at 85% 90%, rgba(30, 142, 230, 0.14), transparent 70%);
}
.contact { position: relative; }
.contact__cards { display: grid; gap: 18px; max-width: 900px; margin-inline: auto; }
.contact__card {
  display: grid; gap: 6px; padding: 36px 30px; text-align: center;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.contact__card:nth-child(2).is-visible { transition-delay: 0.1s; }
.contact__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sky-light); }
.contact__label { font-size: 13px; letter-spacing: 0.2em; color: var(--sky); font-weight: 700; }
.contact__value { font-family: var(--font-en); font-size: clamp(30px, 5vw, 42px); letter-spacing: 0.04em; line-height: 1.2; color: var(--ink); }
.contact__value--mail { font-family: var(--font-jp); font-size: clamp(17px, 2.6vw, 22px); font-weight: 700; word-break: break-all; }
.contact__note { font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .contact__cards { grid-template-columns: 1fr 1fr; } }

/* ── フッター ────────────────────────────── */
.site-footer { background: var(--white); color: var(--ink-soft); padding: 48px 0 32px; border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; gap: 14px; justify-items: center; text-align: center; }
.site-footer__logo { height: 28px; width: auto; }
.site-footer__address { font-size: 13px; }
.site-footer__copy { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.16em; color: var(--muted); margin-top: 10px; }
