/* ==========================================================
   LAN配線工事ページ（lan.html）専用のデザイン
   ----------------------------------------------------------
   共通の色・ヘッダー・フッター・ボタンは style.css を使い、
   このファイルでは lan.html だけの見せ方を定義しています。
   クラス名はすべて「lp-」で始まるので、トップページには影響しません。
   ========================================================== */
:root {
  /* LANケーブルの芯線の色（T568Bの並びで使用） */
  --wire-orange: #e8710a;
  --wire-green: #2e7d32;
  --wire-blue: #1565c0;
  --wire-brown: #6d4c41;
  --panel: #1d2735;        /* パッチパネルの本体色 */
  --panel-edge: #2c3a4e;
  --rule: #d6e2f0;          /* 区切り線 */
}

/* 番号付きリスト（ol）のブラウザ標準の左余白を消す */
.lp-ports, .lp-steps { margin: 0; padding: 0; }

/* 画面には表示せず、読み上げソフトにだけ伝える文字 */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ページ上部（見出し＋パッチパネル） ---------- */
.lp-hero { background: var(--sky); }
.lp-hero__inner {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.lp-hero h1 { font-size: clamp(32px, 5.2vw, 50px); font-weight: 900; color: var(--navy); letter-spacing: .02em; }
.lp-hero__lead { margin-top: 18px; font-size: clamp(16px, 2vw, 18px); color: var(--ink); max-width: 30em; }
/* 日本語を文節（意味のまとまり）で改行し、「光ファイバ／ー」のような単語の途中での改行を防ぐ */
.lp-hero__lead, .lp-sec__head h2, .lp-sec__head p, .lp-worries li, .lp-points p, .lp-note { word-break: auto-phrase; }
/* 対象のお客様と許可番号：1項目ずつ行を分け、「神奈川県知事許可（般-8）第94432号」の途中では改行しない */
.lp-hero__meta { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.lp-hero__meta span { white-space: nowrap; }
.lp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-hero__cta .btn--outline svg { color: var(--navy); }

/* パッチパネル（ページ内の目次を兼ねる） */
.lp-panel {
  position: relative; background: linear-gradient(180deg, var(--panel-edge), var(--panel) 18%);
  border-radius: 6px; padding: 22px 44px 34px; box-shadow: 0 18px 40px rgba(11, 42, 91, .22);
}
.lp-panel::before, .lp-panel::after { /* ラックに固定する「耳」とネジ穴 */
  content: ""; position: absolute; top: 0; bottom: 0; width: 26px;
  background:
    radial-gradient(circle at 50% 22%, #0b1018 0 4px, transparent 5px),
    radial-gradient(circle at 50% 78%, #0b1018 0 4px, transparent 5px),
    #3a4a60;
}
.lp-panel::before { left: 0; border-radius: 6px 0 0 6px; }
.lp-panel::after { right: 0; border-radius: 0 6px 6px 0; }
.lp-panel__caption { color: #9fb3c8; font-size: 12px; margin-bottom: 12px; display: flex; justify-content: space-between; }
.lp-ports { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lp-port {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: #fff; border-radius: 4px; padding: 4px 2px 0;
}
.lp-port__label {
  width: 100%; background: #f3f5f8; color: var(--ink); font-size: 12px; font-weight: 700;
  line-height: 1.35; text-align: center; padding: 4px 2px; border-radius: 2px; min-height: 3.1em;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
  word-break: keep-all; /* 「ケーブルの／選び方」のように、決めた位置でだけ改行する */
}
.lp-nowrap { white-space: nowrap; }
.lp-port__no { order: -1; font-size: 11px; line-height: 1; color: #9fb3c8; font-variant-numeric: tabular-nums; } /* ポート番号は実物と同じくラベルの上に */
.lp-port__jack {
  position: relative; width: 44px; height: 38px; background: #0a0f16; border-radius: 3px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7);
}
.lp-port__jack::before { /* 8本の接点 */
  content: ""; position: absolute; top: 6px; left: 8px; right: 8px; height: 7px;
  background: repeating-linear-gradient(90deg, #c9a227 0 2px, transparent 2px 4.25px);
}
.lp-port__plug { /* 差し込まれたパッチケーブル */
  position: absolute; left: 5px; right: 5px; top: 15px; height: 34px;
  background: var(--c, var(--wire-blue)); border-radius: 2px 2px 5px 5px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.lp-port__plug::after { /* ケーブル本体 */
  content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 30px;
  transform: translateX(-50%); background: var(--c, var(--wire-blue));
  border-radius: 0 0 5px 5px;
}
.lp-port:hover .lp-port__label, .lp-port:focus-visible .lp-port__label { background: #ffe3c7; }
.lp-port:focus-visible { outline: 3px solid #ffb366; outline-offset: 3px; }

/* ページを開いたときに1回だけ：ケーブルが順番に差し込まれる */
@media (prefers-reduced-motion: no-preference) {
  .lp-port__plug { animation: lp-plug-in .5s cubic-bezier(.2, .8, .2, 1) both; }
  .lp-ports li:nth-child(1) .lp-port__plug { animation-delay: .15s; }
  .lp-ports li:nth-child(2) .lp-port__plug { animation-delay: .27s; }
  .lp-ports li:nth-child(3) .lp-port__plug { animation-delay: .39s; }
  .lp-ports li:nth-child(4) .lp-port__plug { animation-delay: .51s; }
  .lp-ports li:nth-child(5) .lp-port__plug { animation-delay: .63s; }
  .lp-ports li:nth-child(6) .lp-port__plug { animation-delay: .75s; }
}
@keyframes lp-plug-in { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }

/* LANケーブルの芯線8色の帯（T568B：白橙・橙・白緑・青・白青・緑・白茶・茶） */
.lp-wires { display: flex; height: 8px; }
.lp-wires span { flex: 1; }
.lp-wires .w-o  { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--wire-orange) 5px 8px); }
.lp-wires .o    { background: var(--wire-orange); }
.lp-wires .w-g  { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--wire-green) 5px 8px); }
.lp-wires .b    { background: var(--wire-blue); }
.lp-wires .w-b  { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--wire-blue) 5px 8px); }
.lp-wires .g    { background: var(--wire-green); }
.lp-wires .w-br { background: repeating-linear-gradient(135deg, #fff 0 5px, var(--wire-brown) 5px 8px); }
.lp-wires .br   { background: var(--wire-brown); }

/* ---------- 本文：左に見出し、右に内容の2列構成 ---------- */
.lp-sec + .lp-sec { border-top: 1px solid var(--rule); }
.lp-sec__inner { display: grid; grid-template-columns: 260px 1fr; gap: 48px; padding-top: 64px; padding-bottom: 64px; }
.lp-sec__head h2 { font-size: clamp(22px, 2.6vw, 26px); color: var(--navy); line-height: 1.45; }
.lp-sec__head p { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (min-width: 961px) { .lp-sec__head { position: sticky; top: 96px; align-self: start; } }
.lp-sec__body { max-width: 760px; }

/* お困りごと：静かなリスト */
.lp-worries { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.lp-worries li { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.lp-worries li::before { content: ""; position: absolute; left: 0; top: 23px; width: 8px; height: 8px; background: var(--blue); }

/* 対応工事：仕様表 */
.lp-spec { margin: 0; }
.lp-spec > div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.lp-spec > div:first-child { border-top: 2px solid var(--navy); }
.lp-spec dt { font-weight: 700; color: var(--navy); }
.lp-spec dd { margin: 0; }
.lp-spec dd p { color: var(--ink); }
.lp-spec dd small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* 特長：罫線で区切った3つの文章 */
.lp-points { display: grid; grid-template-columns: repeat(3, 1fr); }
.lp-points > div { padding: 4px 24px; border-left: 1px solid var(--rule); }
.lp-points > div:first-child { padding-left: 0; border-left: 0; }
.lp-points h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.lp-points p { font-size: 15px; color: var(--muted); }

/* ケーブル比較表 */
.lp-table-wrap { overflow-x: auto; }
.lp-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; table-layout: fixed; } /* 3種類の列幅をそろえる */
.lp-table th, .lp-table td { padding: 14px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.lp-table thead th { border-bottom: 2px solid var(--navy); color: var(--navy); font-size: 17px; }
.lp-table thead th:first-child { width: 25%; }
.lp-table tbody th { color: var(--muted); font-weight: 500; font-size: 14px; }
.lp-table small { color: var(--muted); }
.lp-table .is-recommend { background: #fff6ec; }
.lp-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* 納品書類：完成図書の目次（点線のリーダー付き） */
.lp-toc { list-style: none; border: 1px solid var(--rule); border-radius: 4px; padding: 20px 28px; background: #fff; }
.lp-toc__title { font-weight: 700; color: var(--navy); padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--navy); }
.lp-toc li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.lp-toc li b { color: var(--ink); white-space: nowrap; }
.lp-toc li i { flex: 1; border-bottom: 2px dotted #b9c7d8; transform: translateY(-4px); min-width: 24px; }
.lp-toc li span { color: var(--muted); font-size: 14px; text-align: right; }

/* 工事の流れ：1本の縦線でつないだ工程表 */
.lp-steps { list-style: none; position: relative; counter-reset: lpstep; }
/* 丸と丸をつなぐ線（最後の工程の下には伸ばさない） */
.lp-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 26px; width: 3px; height: 100%; background: var(--wire-blue); }
.lp-steps li { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 10px 0; }
.lp-steps li::before {
  counter-increment: lpstep; content: counter(lpstep);
  width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--wire-blue);
  color: var(--navy); font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.lp-steps strong { display: block; color: var(--navy); }
.lp-steps span { color: var(--muted); font-size: 14px; }

/* 対応エリア */
.lp-area { font-size: 17px; }
.lp-area strong { color: var(--navy); }

/* よくある質問（style.css の .faq を少し静かに） */
.lp-faq details { border-radius: 4px; }

/* ---------- スマホ・タブレット ---------- */
/* 画面が狭いと6つのポートが窮屈になるので、見出しの下にパネルを置く */
@media (max-width: 1180px) {
  .lp-hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
  .lp-panel { max-width: 640px; }
}
@media (max-width: 960px) {
  .lp-hero__inner { padding-top: 40px; padding-bottom: 52px; }
  .lp-sec__inner { grid-template-columns: 1fr; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
  .lp-points { grid-template-columns: 1fr; gap: 20px; }
  .lp-points > div { padding: 0 0 0 16px; border-left: 3px solid var(--rule); }
  .lp-points > div:first-child { padding-left: 16px; border-left: 3px solid var(--rule); }
}
@media (max-width: 600px) {
  .lp-panel { padding: 18px 34px 30px; }
  .lp-panel::before, .lp-panel::after { width: 20px; }
  .lp-ports { grid-template-columns: repeat(3, 1fr); row-gap: 56px; }
  .lp-hero__cta .btn { width: 100%; }
  .lp-worries { grid-template-columns: 1fr; }
  .lp-spec > div { grid-template-columns: 1fr; gap: 6px; }
  .lp-toc { padding: 16px 18px; }
  .lp-toc li { flex-wrap: wrap; }
  .lp-toc li i { display: none; }
  .lp-toc li span { width: 100%; text-align: left; }
}
