/* ============================================
   CONSTRUCTION DENKI TEMPLATE
   電気工事会社 — 方眼紙 × 製図インクの濃紺 × 注記の赤、図面が主役のヒーロー
============================================ */

:root {
  --paper: #f3f1e8; /* 方眼紙のクリーム（地） */
  --paper-2: #ebe8db;
  --grid: rgba(44, 90, 160, 0.09); /* 方眼の細線 */
  --grid-bold: rgba(44, 90, 160, 0.16); /* 10mmごとの太線 */
  --ink: #1d2433; /* 製図インクの濃紺（文字・線） */
  --ink-2: #565d6b;
  --blue: #2c5aa0; /* 配線の青 */
  --red: #d33a2c; /* 注記・緊急 */
  --line: rgba(29, 36, 51, 0.2);
  --font: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --container: 1180px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

[hidden] {
  display: none !important;
}

/* 見出しを意味の切れ目で改行する */
.kw {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.br-sp {
  display: none;
}

.nw {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .br-sp {
    display: inline;
  }
  .br-pc {
    display: none;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: #000;
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- スクロールで出る（JSが動いたときだけ隠す） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal--d1 {
  transition-delay: 0.08s;
}
.js .reveal--d2 {
  transition-delay: 0.16s;
}
.js .reveal--d3 {
  transition-delay: 0.24s;
}

/* ---------- アコーディオン（grid-rows で開閉） ---------- */
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.acc-panel.is-open {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
  min-height: 0;
}

/* ---------- 表をスマホで横スクロール枠に ---------- */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-x table {
  min-width: 640px;
}

.scroll-hint {
  display: none;
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.7;
}

@media (max-width: 700px) {
  .scroll-hint {
    display: block;
  }
}

.form-msg {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
}

/* アニメが止まる環境の保険：2.5秒後には開幕のアニメを外して通常の表示に */
.anim-done body * {
  animation: none !important;
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  /* 方眼紙：8pxの細線＋40pxの太線 */
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-bold) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-bold) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    40px 40px,
    40px 40px,
    8px 8px,
    8px 8px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ---------- 共通 ---------- */
.sec-head {
  margin-bottom: 32px;
  max-width: 720px;
}

/* セクション記号は、図面の区画記号のように枠で囲む */
.sec-code {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  background: var(--paper);
}

.sec-title {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 14px;
}

.h-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.h-label span {
  font-family: var(--font-mono);
  color: var(--red);
  margin-right: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--ink);
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn--red {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

.btn--red:hover {
  background: var(--red);
  color: #fff;
}

/* ---------- ヘッダー ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding-inline: 20px;
  max-width: 1360px;
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
}

.logo small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.logo__mark {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav__list {
  display: flex;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.nav__list span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue);
  margin-right: 4px;
}

.nav__list a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav__cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
}

.nav__sos {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  position: relative;
  border: 1.5px solid var(--ink);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span:first-child {
  top: 18px;
}
.nav-toggle span:last-child {
  top: 26px;
}

.nav-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .nav__sos {
    display: none;
  }
}

@media (max-width: 960px) {
  .header__inner {
    padding-inline: 16px;
  }
  .nav-toggle {
    display: block;
  }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease),
      visibility 0.3s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
    font-size: 17px;
    border-top: 1.5px solid var(--ink);
  }
  .nav__list a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav__cta,
  .nav__sos {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 16px;
  }
  .nav__sos {
    border: 1.5px solid var(--red);
  }
}

/* ---------- ヒーロー（図面） ---------- */
.hero {
  padding: 32px 20px 64px;
}

.hero__sheet {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  border: 1.5px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 6px; /* 図面の二重枠 */
  padding: 28px 28px 0;
  min-height: 720px;
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
}

.dg-wire path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
}

.dg-part > * {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}

.dg-text text {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--ink);
}

.dg-note path {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.2;
}

.dg-note text {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--red);
}

/* 配線を一度だけ引く（ループしない） */
.js .dg-wire path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.4s var(--ease) 0.2s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* 表題欄 */
.titleblock {
  position: absolute;
  left: 28px;
  top: 210px; /* 図面の上段（受電〜変圧器）にかからない位置 */
  width: min(44%, 500px);
  background: #fff;
  border: 1.5px solid var(--ink);
}

.titleblock__row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--ink);
}

.titleblock__row span {
  font-family: var(--font-mono);
  color: var(--ink-2);
}

.titleblock__title {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.35;
  padding: 18px 20px 8px;
}

.titleblock__text {
  font-size: 15px;
  padding: 0 20px 16px;
}

.titleblock__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.titleblock__grid > div {
  padding: 6px 12px;
  border-right: 1px solid var(--ink);
}

.titleblock__grid > div:last-child {
  border-right: 0;
}

.titleblock__grid dt {
  font-size: 12px;
  color: var(--ink-2);
}

.titleblock__grid dd {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
}

.titleblock__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.titleblock__btns .btn {
  border: 0;
}

.js .titleblock > * {
  animation: heroIn 0.8s var(--ease) both;
}
.js .titleblock > :nth-child(2) {
  animation-delay: 0.1s;
}
.js .titleblock > :nth-child(n + 3) {
  animation-delay: 0.2s;
}

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

@media (max-width: 1000px) {
  .hero__sheet {
    min-height: 0;
    padding: 16px 16px 0;
  }
  .titleblock {
    position: static;
    width: auto;
    margin: 16px -16px 0;
    border-width: 1.5px 0 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 20px 12px 48px;
  }
  .hero__sheet {
    padding: 10px 10px 0;
    outline-offset: 4px;
  }
  .titleblock {
    margin: 10px -10px 0;
  }
  .titleblock__btns {
    grid-template-columns: 1fr;
  }
  .titleblock__btns .btn + .btn {
    border-top: 1px solid var(--red);
  }
}

/* ---------- お知らせ ---------- */
.news {
  padding-bottom: 64px;
}

.news__table {
  background: #fff;
  border: 1.5px solid var(--ink);
}

.news__table th,
.news__table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
}

.news__table th {
  font-family: var(--font-mono);
  font-weight: 500;
  width: 150px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .news__table th,
  .news__table td {
    display: block;
    width: auto;
    border-right: 0;
  }
  .news__table th {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 13px;
  }
}

/* ---------- 対応工事 ---------- */
.service {
  padding: 72px 0;
  background: rgba(255, 255, 255, 0.6);
  border-block: 1.5px solid var(--ink);
}

.scroll-x .spec {
  min-width: 860px;
}

.spec {
  background: #fff;
  border: 1.5px solid var(--ink);
  font-size: 15px;
}

.spec th,
.spec td {
  border: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.spec thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding-block: 8px;
}

.spec tbody th {
  white-space: nowrap;
  font-weight: 700;
}

.spec tbody th b {
  font-family: var(--font-mono);
  color: var(--blue);
  margin-right: 8px;
}

.spec td:last-child {
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- 緊急連絡 ---------- */
.sos {
  background: var(--red);
  color: #fff;
  padding: 28px 0;
}

.sos__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.sos__title {
  font-size: 20px;
}

.sos p {
  font-size: 15px;
}

.sos__tel {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 28px;
  border: 2px solid #fff;
  padding: 6px 18px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .sos__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sos__tel {
    text-align: center;
    font-size: 24px;
  }
}

/* ---------- 資格と体制 ---------- */
.license {
  padding: 88px 0;
}

.license__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.license__photo {
  margin-top: 24px;
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 8px;
}

.license__photo img {
  width: 100%;
  aspect-ratio: 9 / 7;
  object-fit: cover;
}

.license__photo figcaption {
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 6px;
}

.bom {
  background: #fff;
  border: 1.5px solid var(--ink);
}

.bom__cap {
  font-weight: 700;
  padding: 10px 16px;
  border-bottom: 1.5px solid var(--ink);
}

.bom th,
.bom td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
}

.bom thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 6px;
}

.bom td:first-child,
.bom td:last-child {
  font-family: var(--font-mono);
  width: 60px;
}

.bom td:last-child {
  text-align: right;
  font-weight: 600;
  font-size: 18px;
}

.bom thead th:last-child {
  text-align: right;
}

.bom__fleet {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.bom__fleet li {
  padding: 14px 16px;
  font-size: 14px;
  border-right: 1px solid var(--line);
}

.bom__fleet li:last-child {
  border-right: 0;
}

.bom__fleet b {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  color: var(--blue);
}

@media (max-width: 860px) {
  .license {
    padding: 56px 0;
  }
  .license__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .bom th,
  .bom td {
    padding: 10px;
  }
  .bom__fleet {
    grid-template-columns: 1fr;
  }
  .bom__fleet li {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* ---------- 施工例 ---------- */
.works {
  padding: 88px 0;
  background: rgba(255, 255, 255, 0.6);
  border-block: 1.5px solid var(--ink);
}

.works__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}

.work {
  background: #fff;
  border: 1.5px solid var(--ink);
}

.work--big {
  grid-row: span 2;
  grid-column: 1;
}

.work img {
  width: 100%;
  aspect-ratio: 8 / 5.6;
  object-fit: cover;
}

.work--big img {
  aspect-ratio: auto;
  height: calc(100% - 64px);
  min-height: 300px;
}

.work figcaption {
  font-size: 14px;
  padding: 10px 12px;
  border-top: 1.5px solid var(--ink);
  line-height: 1.6;
}

.work figcaption span {
  font-family: var(--font-mono);
  color: var(--red);
  margin-right: 8px;
}

.works__grid .work:nth-child(4) {
  grid-column: 2 / 4;
}

.works__grid .work:nth-child(4) img {
  aspect-ratio: 16 / 5;
}

.clients {
  margin-top: 40px;
  border-top: 1.5px solid var(--ink);
  padding-top: 16px;
}

.clients__cap {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.clients ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 24px;
  font-size: 15px;
}

.clients li::before {
  content: "─ ";
  color: var(--blue);
}

@media (max-width: 860px) {
  .works {
    padding: 56px 0;
  }
  .works__grid {
    grid-template-columns: 1fr 1fr;
  }
  .work--big {
    grid-column: span 2;
    grid-row: auto;
  }
  .work--big img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  .works__grid .work:nth-child(4) {
    grid-column: span 2;
  }
  .clients ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .works__grid {
    grid-template-columns: 1fr;
  }
  .work--big,
  .works__grid .work:nth-child(4) {
    grid-column: auto;
  }
  .works__grid .work:nth-child(4) img {
    aspect-ratio: 8 / 5.6;
  }
  .clients ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- 採用 ---------- */
.recruit {
  padding: 88px 0;
}

.recruit__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.recruit__photo {
  border: 1.5px solid var(--ink);
  background: #fff;
  padding: 8px;
}

.recruit__photo img {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: cover;
}

.recruit__photo figcaption {
  font-size: 13px;
  color: var(--ink-2);
  padding-top: 6px;
}

.recruit__quote {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 16px;
  margin-bottom: 24px;
  font-size: 16px;
}

.recruit__table {
  background: #fff;
  border: 1.5px solid var(--ink);
  margin-bottom: 24px;
}

.recruit__table th,
.recruit__table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.recruit__table th {
  width: 70px;
  font-weight: 500;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
}

@media (max-width: 860px) {
  .recruit {
    padding: 56px 0;
  }
  .recruit__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .recruit__photo {
    max-width: 420px;
  }
}

/* ---------- 会社概要 ---------- */
.company {
  padding: 88px 0;
  background: rgba(255, 255, 255, 0.6);
  border-block: 1.5px solid var(--ink);
}

.company__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.company__table {
  background: #fff;
  border: 1.5px solid var(--ink);
}

.company__table th,
.company__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}

.company__table th {
  width: 120px;
  font-weight: 500;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
}

.company__map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--ink);
  filter: grayscale(0.5);
}

.company__map p {
  font-size: 14px;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .company {
    padding: 56px 0;
  }
  .company__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .company__table th,
  .company__table td {
    display: block;
    width: auto;
    border-right: 0;
  }
  .company__table th {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 13px;
  }
}

/* ---------- お問い合わせ ---------- */
.contact {
  padding: 88px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

.contact__tel {
  display: block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 32px;
}

.contact__tel small {
  font-size: 14px;
  color: var(--ink-2);
  margin-right: 10px;
}

.form {
  background: #fff;
  border: 1.5px solid var(--ink);
  display: flex;
  flex-direction: column;
}

.form__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  border-bottom: 1px solid var(--line);
}

.form__row label {
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.form__row label span {
  color: var(--red);
  margin-left: 4px;
}

.form input,
.form select,
.form textarea {
  border: 0;
  padding: 12px 14px;
  min-height: 52px;
  font-size: 16px;
  background: #fff;
  border-radius: 0;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.form .btn {
  margin: 16px;
}

.form .form-msg {
  margin: 0 16px 16px;
}

@media (max-width: 860px) {
  .contact {
    padding: 56px 0;
  }
  .contact__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
  .form__row label {
    border-right: 0;
    padding: 8px 14px;
  }
}

/* ---------- フッター ---------- */
.footer {
  background: var(--ink);
  color: #c9cdd6;
  padding: 28px 0;
  font-size: 14px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 6px;
  opacity: 0.75;
}

/* アニメーションが止まる環境（非表示のプレビューなど）でも線を必ず見せる */
.js .diagram.is-drawn .dg-wire path {
  stroke-dashoffset: 0;
}
