@charset "UTF-8";

:root {
  --bg: #eef0f4;
  --surface: #ffffff;
  --text: #1d2230;
  --muted: #5a6172;
  --soft: #8c93a3;
  --char: #2b3140;
  --accent: #3b68b5;
  --accent_hi: #6a8fd4;
  --border: rgba(29, 34, 48, 0.12);
  --hard: #2b3140;
  --face_side: #dde1e9;
}

html[data-design=dark] {
  color-scheme: dark;
  --bg: #050b18;
  --surface: rgba(12, 24, 46, 0.86);
  --text: #e8eef9;
  --muted: #9db0cb;
  --soft: #6f819c;
  --char: #9fd4ff;
  --accent: #5aa9ff;
  --accent_hi: #9fd4ff;
  --border: rgba(130, 175, 255, 0.18);
  --hard: rgba(90, 169, 255, 0.55);
  --face_side: #0c1a33;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
}

body {
  margin: 0;
  background-color: transparent;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

.lc_inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .lc_inner {
    padding: 0 20px;
  }
}

/* ---------- 背景：ライト＝流れる斜線、ダーク＝等高線（canvas は JS） ---------- */
.lc_bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.lc_bg::before {
  position: absolute;
  inset: 0 -40px;
  content: "";
  background-image: repeating-linear-gradient(-45deg, rgba(29, 34, 48, 0.06) 0 1px, transparent 1px 12px);
  animation: lc_hatch 6s linear infinite;
}
html[data-design=dark] .lc_bg {
  background: radial-gradient(ellipse at 70% 0%, #0b1a35 0%, #050b18 55%, #02060f 100%);
}
html[data-design=dark] .lc_bg::before {
  display: none;
}

@keyframes lc_hatch {
  from {
    transform: translateX(-16.97px);
  }
  to {
    transform: translateX(0);
  }
}
.lc_topo {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}
html[data-design=dark] .lc_topo {
  display: block;
}

/* ---------- ボタン（硬い影） ---------- */
.lc_btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 6px;
  background-color: #2b3140;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 0 #1c2029;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lc_btn::after {
  content: "→";
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lc_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1c2029;
}
.lc_btn:hover::after {
  transform: translateX(4px);
}
html[data-design=dark] .lc_btn {
  background: #5aa9ff;
  color: #04101f;
  box-shadow: 0 0 22px rgba(90, 169, 255, 0.45);
}
html[data-design=dark] .lc_btn:hover {
  box-shadow: 0 0 30px rgba(90, 169, 255, 0.7);
}

.lc_btn_small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.lc_btn_ghost {
  background-color: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--char);
}
.lc_btn_ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--char), 0 4px 0 var(--border);
}
html[data-design=dark] .lc_btn_ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(130, 175, 255, 0.45);
}

/* ---------- header（実績ページと同じ作り） ---------- */
.lc_header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background-color: rgba(238, 240, 244, 0.92);
}
html[data-design=dark] .lc_header {
  background-color: rgba(5, 11, 24, 0.92);
}

.lc_header_inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.lc_logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lc_logo span {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .lc_logo {
    font-size: 13px;
  }
}

.lc_logo_mark {
  flex-shrink: 0;
}
.lc_logo_mark .mark_top {
  fill: #ffffff;
  stroke: #2b3140;
  stroke-width: 1;
  stroke-linejoin: round;
}
.lc_logo_mark .mark_left {
  fill: #2b3140;
}
.lc_logo_mark .mark_right {
  fill: #596277;
}
html[data-design=dark] .lc_logo_mark .mark_top {
  fill: #9fd4ff;
  stroke: #5aa9ff;
}
html[data-design=dark] .lc_logo_mark .mark_left {
  fill: #1d3a66;
}
html[data-design=dark] .lc_logo_mark .mark_right {
  fill: #2a5490;
}

.lc_nav {
  margin-left: auto;
}
.lc_nav ul {
  display: flex;
  gap: 4px;
}
.lc_nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}
.lc_nav a:hover {
  background-color: var(--border);
}
@media (max-width: 900px) {
  .lc_nav {
    display: none;
  }
}

@media (max-width: 900px) {
  .lc_header .lc_btn_small {
    margin-left: auto;
  }
}

/* ---------- hero ---------- */
.lc_hero {
  padding: 80px 0 40px;
}
@media (max-width: 640px) {
  .lc_hero {
    padding: 48px 0 28px;
  }
}

.lc_hero_inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
@media (max-width: 900px) {
  .lc_hero_inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.lc_eyebrow {
  color: var(--accent);
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.lc_title {
  margin: 10px 0 16px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.25;
}

.lc_lead {
  color: var(--muted);
}

.lc_counter {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  gap: 10px;
}

.lc_counter_digits {
  display: flex;
  gap: 6px;
}

.lc_digit {
  position: relative;
  display: block;
  width: 58px;
  height: 84px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #2b3140 0 49%, #1c2029 51% 100%);
  box-shadow: 5px 5px 0 #d3d8e1;
  color: #f2f4f8;
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 64px;
  font-weight: 500;
  line-height: 84px;
  text-align: center;
}
.lc_digit::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  margin-top: -1px;
  content: "";
  background: rgba(0, 0, 0, 0.6);
}
html[data-design=dark] .lc_digit {
  background: linear-gradient(180deg, #0f2140 0 49%, #0a1830 51% 100%);
  box-shadow: 0 0 0 1px rgba(90, 169, 255, 0.4), 0 0 20px rgba(90, 169, 255, 0.25);
  color: #9fd4ff;
  text-shadow: 0 0 10px rgba(90, 169, 255, 0.6);
}
@media (max-width: 640px) {
  .lc_digit {
    width: 44px;
    height: 64px;
    font-size: 48px;
    line-height: 64px;
  }
}

.lc_digit_strip {
  display: block;
  transform: translateY(calc(var(--d, 0) * -84px));
  transition: transform 1.6s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.lc_digit_strip span {
  display: block;
  height: 84px;
}
@media (max-width: 640px) {
  .lc_digit_strip span {
    height: 64px;
  }
}
@media (max-width: 640px) {
  .lc_digit_strip {
    transform: translateY(calc(var(--d, 0) * -64px));
  }
}

.lc_counter_unit {
  display: inline-block;
  white-space: nowrap;
  color: var(--muted);
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.16em;
}

/* ---------- 分類のタブ ---------- */
.lc_list_area {
  padding-bottom: 96px;
}

.lc_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.lc_tab {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1.5px solid var(--char);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--hard);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s, color 0.2s;
}
.lc_tab:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--hard);
}
.lc_tab[aria-pressed=true] {
  background: #2b3140;
  color: #ffffff;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--hard);
}
html[data-design=dark] .lc_tab {
  border-color: rgba(130, 175, 255, 0.4);
  box-shadow: none;
}
html[data-design=dark] .lc_tab:hover {
  transform: none;
  border-color: #9fd4ff;
  box-shadow: 0 0 14px rgba(90, 169, 255, 0.35);
}
html[data-design=dark] .lc_tab[aria-pressed=true] {
  background: #5aa9ff;
  border-color: #5aa9ff;
  color: #04101f;
  transform: none;
  box-shadow: 0 0 18px rgba(90, 169, 255, 0.55);
}

.lc_tab_count {
  color: var(--accent_hi);
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 500;
}
.lc_tab[aria-pressed=true] .lc_tab_count {
  color: inherit;
}

/* ---------- 転がる立方体 ---------- */
.lc_cubes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 32px;
}
@media (max-width: 1024px) {
  .lc_cubes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .lc_cubes {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

.lc_cube {
  --s: 230px;
  position: relative;
  height: var(--s);
  perspective: 1000px;
}
@media (max-width: 640px) {
  .lc_cube {
    --s: 210px;
  }
}
.lc_cube.is_out {
  opacity: 0;
  transition: opacity 0.35s 0.1s;
}
.lc_cube.is_out .lc_body {
  transform: rotateX(-120deg) translateY(40px);
  transition-duration: 0.45s;
  transition-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4);
}
.lc_cube.is_gone {
  display: none;
}

.lc_body {
  position: relative;
  display: block;
  height: var(--s);
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  transform-origin: 50% 50% calc(var(--s) / -2);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.75s cubic-bezier(0.3, 1.3, 0.5, 1);
  outline: none;
}

@media (hover: hover) {
  .lc_cube:hover .lc_body {
    --rx: 90deg;
  }
}
.lc_body:focus-visible,
.lc_cube.is_rolled .lc_body {
  --rx: 90deg;
}

.lc_face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border: 2px solid #2b3140;
  border-radius: 6px;
  backface-visibility: hidden;
}
html[data-design=dark] .lc_face {
  border-color: rgba(90, 169, 255, 0.55);
}

.lc_front {
  background: #ffffff;
  box-shadow: 6px 6px 0 #d3d8e1;
}
.lc_front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
html[data-design=dark] .lc_front {
  background: #0c1a33;
  box-shadow: 0 0 24px rgba(90, 169, 255, 0.18);
}

.lc_front_name {
  position: absolute;
  bottom: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  padding: 3px 12px;
  border-radius: 4px;
  background: #2b3140;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-design=dark] .lc_front_name {
  background: rgba(5, 11, 24, 0.86);
  box-shadow: inset 0 0 0 1px rgba(90, 169, 255, 0.5);
  color: #e8eef9;
}

.lc_front_cat {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: #3b68b5;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.9;
}
html[data-design=dark] .lc_front_cat {
  background: #ffa45c;
  color: #1d0e00;
}

.lc_roll_hint {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1.5px #2b3140;
  color: #2b3140;
  font-size: 16px;
  animation: lc_hint 2.4s ease-in-out infinite;
}
html[data-design=dark] .lc_roll_hint {
  background: rgba(5, 11, 24, 0.86);
  box-shadow: 0 0 0 1px rgba(90, 169, 255, 0.6);
  color: #9fd4ff;
}

@keyframes lc_hint {
  0%, 70%, 100% {
    transform: rotate(0deg);
  }
  85% {
    transform: rotate(-200deg);
  }
}
.lc_bottom {
  top: 100%;
  bottom: -100%;
  padding: 18px 20px;
  background: #ffffff;
  box-shadow: inset 0 -6px 0 #3b68b5;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
}
html[data-design=dark] .lc_bottom {
  background: linear-gradient(160deg, #102446, #0a1830);
  box-shadow: inset 0 -4px 0 #5aa9ff, inset 0 0 30px rgba(90, 169, 255, 0.12);
}

.lc_head {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-family: "IBM Plex Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.lc_cat {
  color: var(--accent);
}

.lc_name {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.lc_tag {
  display: inline-block;
  margin-top: 4px;
  padding: 0 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.8;
}

.lc_text {
  display: block;
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.lc_go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s, color 0.2s;
}
.lc_go span {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lc_go.is_none {
  padding: 0;
  border: 0;
  color: var(--soft);
  font-weight: 400;
}

.lc_hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 6px;
}
.lc_hit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.lc_cube:hover .lc_go:not(.is_none),
.lc_cube.is_rolled .lc_go:not(.is_none),
.lc_cube:focus-within .lc_go:not(.is_none) {
  background-color: var(--accent);
  color: #ffffff;
}
.lc_cube:hover .lc_go:not(.is_none) span,
.lc_cube.is_rolled .lc_go:not(.is_none) span,
.lc_cube:focus-within .lc_go:not(.is_none) span {
  transform: translateX(4px);
}

.lc_cube:focus-within .lc_body {
  --rx: 90deg;
}

.lc_shadow {
  position: absolute;
  right: 8%;
  bottom: -20px;
  left: 8%;
  height: 16px;
  border-radius: 50%;
  background: rgba(29, 34, 48, 0.2);
  filter: blur(5px);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html[data-design=dark] .lc_shadow {
  background: rgba(90, 169, 255, 0.25);
}

@media (hover: hover) {
  .lc_cube:hover .lc_shadow {
    transform: scaleX(1.12);
  }
}
/* ---------- 受託への入口 ---------- */
.lc_order {
  padding-bottom: 110px;
}

.lc_order_inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lc_order_text {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.lc_order_btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- footer ---------- */
.lc_footer {
  padding: 28px 0 96px;
  border-top: 1px solid var(--border);
  color: var(--soft);
  font-size: 12px;
  text-align: center;
}

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

.lc_title,
.lc_order_text,
.lc_name {
  word-break: auto-phrase;
  text-wrap: balance;
}
