@charset "UTF-8";
/* ==========================================================================
   page.css — 下層ページ（施工実績・お知らせの一覧／詳細）
   トップの「黒地・青い光・ヘッドライトの線」を引き継ぐ。動きは控えめに
   ========================================================================== */

body { background: var(--c-bg); color: var(--c-text); }

/* ---------- ページの見出し：大きな英字＋日本語。下に光の線が左から伸びる ---------- */
.ph {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) var(--m) clamp(40px, 5vw, 64px);
}
.ph::before {                                    /* 上からの青いにじみ */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background: radial-gradient(60% 90% at 20% 0%, rgba(31, 51, 255, .32), transparent 70%);
  pointer-events: none;
}
.ph__inner { position: relative; max-width: 1200px; margin-inline: auto; }
.ph__en {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(64px, 12vw, 168px);
  line-height: .9;
  letter-spacing: .04em;
  background: linear-gradient(180deg, #fff 30%, #9fb0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ph__title { margin: 14px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .2em; color: #9fb0ff; }
.ph__lead { margin: 22px 0 0; max-width: 40em; line-height: 2; color: #c9d0e6; }
.ph__line {                                      /* ヘッドライトの線 */
  display: block;
  height: 2px;
  margin-top: clamp(32px, 4vw, 48px);
  background: linear-gradient(90deg, #fff, #9fb0ff 30%, rgba(47, 69, 255, .5) 70%, transparent);
  box-shadow: 0 0 18px 1px rgba(159, 176, 255, .6);
  transform-origin: left;
  animation: phLine 1.4s var(--ease-io) .2s both;
}
@keyframes phLine { from { scale: 0 1; } }

/* パンくず */
.bc { margin-top: 18px; }
.bc ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--c-sub); }
.bc li + li::before { content: "/"; margin: 0 .8em; opacity: .5; }
.bc a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(238, 242, 255, .3); }
@media (hover: hover) { .bc a:hover { color: #fff; } }

/* ---------- 本文の枠 ---------- */
.pg { padding: 0 var(--m) clamp(80px, 10vw, 140px); }
.pg__inner { max-width: 1200px; margin-inline: auto; }
.pg__inner--narrow { max-width: 860px; }

/* ---------- 施工実績：カテゴリの切り替え ---------- */
.wf { margin: 0 0 clamp(32px, 4vw, 48px); }
.wf ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* ---------- 施工実績のカード（一覧・詳細の関連）：写真は横長 3:2 にそろえる ---------- */
.wl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 2.4vw, 32px); margin: 0; padding: 0; list-style: none; }
.wc a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #0b0d14;
  box-shadow: inset 0 0 0 1px rgba(238, 242, 255, .1), 0 24px 50px rgba(0, 0, 0, .45);
  transition: box-shadow .4s, translate .4s var(--ease-out);
}
.wc a::before {                                  /* 上のふちのライト：乗せると左右に伸びる */
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -1px;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9fb0ff, #fff, #9fb0ff, transparent);
  box-shadow: 0 0 16px 2px rgba(159, 176, 255, .8);
  scale: .35 1;
  opacity: .7;
  transition: scale .6s var(--ease-io), opacity .4s;
}
.wc__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.wc__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease-out), filter .6s; filter: saturate(.85); }
.wc__meta { container-type: inline-size; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.wc__row { display: flex; align-items: center; gap: 12px; }
.wc__meta time { font-family: var(--font-en); font-size: 14px; letter-spacing: .12em; color: #9fb0ff; }
.wc__name { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.7; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@container (max-width: 230px) {
  .wc__row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wc .c-label { white-space: normal; word-break: keep-all; }
}
@media (hover: hover) {
  .wc a:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px rgba(159, 176, 255, .5), 0 30px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(47, 69, 255, .25); }
  .wc a:hover::before { scale: 1 1; opacity: 1; }
  .wc a:hover .wc__media img { scale: 1.06; filter: none; }
}

/* ---------- お知らせの一覧：1行ずつ。乗せると光が横切って白く反転（トップと同じ） ---------- */
.nl { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(238, 242, 255, .16); }
.nl li { border-bottom: 1px solid rgba(238, 242, 255, .16); }
.nl a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 8em 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 26px 8px;
  transition: color .35s;
}
.nl a::before {                                  /* 白い面：左から満ちる */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform-origin: left;
  scale: 0 1;
  transition: scale .5s var(--ease-io);
}
.nl time { display: grid; font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; color: var(--c-sub); transition: color .35s; }
.nl time b { font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .04em; color: #fff; transition: color .35s; }
.nl__name { font-weight: 700; line-height: 1.8; }
.nl__arrow { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(238, 242, 255, .4); transition: background-color .35s, border-color .35s; }
.nl__arrow::before { content: ""; position: absolute; left: 44%; top: 50%; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; translate: -50% -50%; rotate: 45deg; }
@media (hover: hover) {
  .nl a:hover { color: #05060a; }
  .nl a:hover::before { scale: 1 1; }
  .nl a:hover time, .nl a:hover time b { color: var(--c-brand-l); }
  .nl a:hover .nl__arrow { background: var(--c-brand-l); border-color: var(--c-brand-l); color: #fff; }
}
@media (max-width: 600px) {
  .nl a { grid-template-columns: 1fr auto; padding: 20px 4px; }
  .nl time { grid-column: 1; display: flex; align-items: baseline; gap: 8px; }
  .nl time b { font-size: 22px; }
  .nl__name { grid-column: 1; }
  .nl__arrow { grid-column: 2; grid-row: 1 / 3; width: 36px; height: 36px; }
}

/* ---------- ページ送り ---------- */
.pn { margin-top: clamp(48px, 6vw, 72px); }
.pn ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pn a, .pn span {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-en);
  font-size: 16px;
  letter-spacing: .1em;
  box-shadow: inset 0 0 0 1px rgba(238, 242, 255, .25);
  transition: background-color .3s, box-shadow .3s;
}
.pn [aria-current="page"] { background: var(--c-brand-l); box-shadow: none; }
@media (hover: hover) { .pn a:hover { background: rgba(47, 69, 255, .25); box-shadow: inset 0 0 0 1px var(--c-brand-l); } }

/* ---------- 記事（施工実績・お知らせの詳細） ---------- */
.art__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.art__head time { font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; color: #9fb0ff; }
.art__title { margin: 16px 0 0; font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.55; letter-spacing: .04em; }
.art__eye { margin: clamp(28px, 4vw, 44px) 0 0; aspect-ratio: 3 / 2; overflow: hidden; background: #111; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.art__eye img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 本文（WordPress のブロックエディタの出力にそのまま効く書き方）：見出し h2〜h4・段落・リスト・画像・引用・表・区切り線・ボタン */
.entry { margin-top: clamp(36px, 5vw, 56px); line-height: 2.1; color: #dfe4f5; overflow-wrap: anywhere; }
.entry > * + * { margin-top: 1.4em; }
.entry > :first-child { margin-top: 0; }
.entry h2 { position: relative; margin-top: 2.6em; padding: 0 0 14px; font-family: var(--font-head); font-weight: 900; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.6; color: #fff; }
.entry h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--c-brand-l), rgba(47, 69, 255, .2) 40%, transparent); }
.entry h3 { margin-top: 2.2em; padding-left: 14px; border-left: 4px solid var(--c-brand-l); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; color: #fff; }
.entry h4 { margin-top: 2em; font-size: 16px; line-height: 1.6; color: #9fb0ff; }
.entry h4::before { content: "■"; margin-right: .5em; font-size: .7em; vertical-align: .15em; color: var(--c-brand-l); }
.entry :is(h2, h3, h4) + * { margin-top: 1em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .3em; }
.entry li::marker { color: #9fb0ff; }
.entry ol li::marker { font-family: var(--font-en); }
.entry a { color: #9fb0ff; text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) { .entry a:hover { color: #fff; } }
.entry strong { color: #fff; background: linear-gradient(transparent 70%, rgba(47, 69, 255, .55) 0); }
.entry img { max-width: 100%; height: auto; }
.entry figure { margin-inline: 0; }
.entry figcaption { margin-top: 8px; font-size: 12px; line-height: 1.7; color: var(--c-sub); text-align: left; }
.entry blockquote { margin-inline: 0; padding: 20px 24px; background: #0b0d14; border-left: 4px solid #9fb0ff; }
.entry blockquote p { margin: 0; }
.entry blockquote cite { display: block; margin-top: .6em; font-size: 12px; font-style: normal; color: var(--c-sub); }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.entry :is(th, td) { padding: 12px 14px; border: 1px solid rgba(238, 242, 255, .16); text-align: left; vertical-align: top; }
.entry th { background: #0b0d14; color: #9fb0ff; white-space: nowrap; }
.entry .wp-block-table { overflow-x: auto; }
.entry hr { height: 1px; border: 0; background: rgba(238, 242, 255, .16); margin-block: 2.6em; }
.entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry .wp-block-button__link { display: inline-block; padding: 14px 28px; background: var(--c-brand-l); color: #fff; text-decoration: none; font-weight: 700; }
.entry .wp-block-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.entry .wp-block-gallery img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.entry .note { padding: 18px 20px; background: #0b0d14; border: 1px dashed rgba(238, 242, 255, .25); font-size: 13px; color: var(--c-sub); }
@media (max-width: 600px) { .entry .wp-block-gallery { grid-template-columns: 1fr; } }

/* 前後の記事・一覧へ */
.pv { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; margin-top: clamp(56px, 7vw, 88px); padding-top: 32px; border-top: 1px solid rgba(238, 242, 255, .14); }
.pv a { display: grid; align-content: center; gap: 4px; padding: 16px 20px; background: #0b0d14; box-shadow: inset 0 0 0 1px rgba(238, 242, 255, .12); font-size: 13px; line-height: 1.7; transition: box-shadow .3s, background-color .3s; }
.pv small { font-family: var(--font-en); font-size: 13px; letter-spacing: .14em; color: #9fb0ff; }
.pv span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pv__next { text-align: right; }
.pv__list { place-items: center; min-width: 120px; font-family: var(--font-en); font-size: 15px !important; letter-spacing: .14em; }
.pv__list i { font-style: normal; font-family: var(--font-ja); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--c-sub); }
@media (hover: hover) { .pv a:hover { background: rgba(47, 69, 255, .18); box-shadow: inset 0 0 0 1px var(--c-brand-l); } }
@media (max-width: 600px) {
  .pv { grid-template-columns: 1fr 1fr; }
  .pv__list { grid-column: 1 / -1; grid-row: 2; }
}

/* 関連する施工実績 */
.rel { margin-top: clamp(72px, 9vw, 120px); }
.rel__head { display: flex; align-items: baseline; gap: 16px; margin: 0 0 28px; }
.rel__en { font-family: var(--font-en); font-size: clamp(28px, 3.4vw, 44px); letter-spacing: .06em; }
.rel__title { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: #9fb0ff; }

/* ---------- 下層のお問い合わせ：入口の3つだけ（会社情報・地図はトップ） ---------- */
.contact--sub { padding-top: clamp(80px, 10vw, 140px); }
.contact--sub .contact__en { font-size: clamp(56px, 9vw, 140px); }

/* ---------- 記事がまだないとき・404 ---------- */
.pg__empty { margin: 0; padding: 40px 0; color: var(--c-sub); }
.nf__lead { margin: 0; line-height: 2.1; color: #c9d0e6; }
.nf__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
