:root {
  --primary: #0a1628;
  --accent: #00c2ff;
  --accent2: #ff6b00;
  --silver: #c8d8e8;
  --mid: #1a2d48;
  --text: #d0dfe8;
  --white: #ffffff;
}

a {
  text-decoration: none;
}

.image-item a {
  text-decoration: none;
}



*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  background: #ffffff; /* php要素（外側）に見せたい色、または白 */
}
body {
  font-family: "Noto Sans JP", sans-serif;

  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;

  /* 追加：中身が空の時に伸びすぎないようにする */
  min-height: auto;
}

#pan {
  color: black;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 48px 80px;
  gap: 48px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 50%,
      rgba(0, 194, 255, 0.1) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 20% 80%,
      rgba(255, 107, 0, 0.08) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, #0a1628 0%, #0d1f3a 50%, #091422 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 194, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--silver);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}
.hero-lead {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

/* Hero 右側：画像エリア */
.hero-visual {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeLeft 0.9s 0.6s forwards;
}
.hero-img-wrap {
  position: relative;
  border: 1px solid rgba(0, 194, 255, 0.2);
  
  overflow: hidden;
}
.hero-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 194, 255, 0.07) 0%,
    transparent 50%,
    rgba(255, 107, 0, 0.04) 100%
  );
  pointer-events: none;
}
.hero-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) brightness(0.88);
  transition:
    transform 0.6s ease,
    filter 0.4s;
}
.hero-img-wrap:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}
.spec-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  background: rgba(10, 22, 40, 0.82);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(0, 194, 255, 0.2);
}
.spec-item {
  flex: 1;
  text-align: center;
  padding: 14px 8px;
  border-right: 1px solid rgba(0, 194, 255, 0.12);
}
.spec-item:last-child {
  border-right: none;
}
.spec-val {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.spec-lbl {
  font-size: 0.68rem;
  color: var(--silver);
  letter-spacing: 0.08em;
  margin-top: 3px;
  display: block;
}
.hero-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}
.hero-thumb {
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.12);
}
.hero-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
  filter: saturate(0.7) brightness(0.85);
  transition:
    transform 0.4s,
    filter 0.3s;
}
.hero-thumb:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  clip-path: polygon(
    0 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% 100%,
    14px 100%,
    0 calc(100% - 14px)
  );
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 194, 255, 0.4);
}
.btn-outline {
  display: inline-block;
  padding: 13px 36px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover {
  background: rgba(0, 194, 255, 0.1);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── SECTIONS ─── */
section {
  padding: 96px 48px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-lead {
  font-size: 1rem;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 52px;
  line-height: 1.85;
}

/* ─── FEATURES ─── */
.features-bg {
  background: #0d1f3a;
}
.product-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 60px;
  overflow: hidden;
}
.product-banner-item {
  position: relative;
  overflow: hidden;
}
.product-banner-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) brightness(0.85);
  transition:
    transform 0.5s,
    filter 0.4s;
}
.product-banner-item:hover img {
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}
.product-banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 22, 40, 0.88));
  padding: 20px 14px 10px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.feature-card {
  background: var(--primary);
  padding: 40px 32px;
  border-top: 3px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(0, 194, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.feature-card:hover {
  border-top-color: var(--accent);
  background: var(--mid);
}
.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
  text-align: center;
}
.feature-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  text-align: center;
}

h3.feature-title {
  color: var(--white);
  border-top: solid 3px #fff;
  border-bottom: solid 3px #fff;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
}

/* ─── ROBOT TYPES ─── */
.robot-section {
  background: var(--primary);
}
.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.robot-card {
  border: 1px solid rgba(0, 194, 255, 0.12);
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s;
  background: rgba(13, 31, 58, 0.5);
}
.robot-card:hover {
  border-color: rgba(0, 194, 255, 0.4);
  transform: translateY(-4px);
}
.robot-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  filter: saturate(0.75) brightness(0.85);
  transition:
    transform 0.5s,
    filter 0.4s;
}
.robot-card:hover .robot-card-img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}
.robot-card-body {
  padding: 26px 26px 22px;
  position: relative;
}
.robot-num {
  font-family: "Rajdhani", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(0, 194, 255, 0.1);
  position: absolute;
  top: 10px;
  right: 16px;
  line-height: 1;
}
.robot-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.15em;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: 2px 10px;
  margin-bottom: 12px;
}
.robot-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

h3 .robot-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.robot-examples {
  font-size: 0.82rem;
  color: #8aacc8;
  margin-bottom: 14px;
  line-height: 1.7;
}
.parts-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.parts-list li {
  font-size: 0.73rem;
  background: rgba(0, 194, 255, 0.08);
  border: 1px solid rgba(0, 194, 255, 0.2);
  color: var(--accent);
  padding: 3px 10px;
}
.robot-point {
  font-size: 0.85rem;
  color: var(--text);
  border-left: 2px solid var(--accent2);
  padding-left: 12px;
  line-height: 1.7;
}

/* ─── MATERIALS TABLE ─── */
.materials-section {
  background: #0d1f3a;
}
.mat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
}
.mat-table th {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 194, 255, 0.25);
  padding: 14px 20px;
  text-align: left;
  background: rgba(0, 194, 255, 0.04);
}
.mat-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
  color: var(--text);
  vertical-align: top;
}
.mat-table tr:hover td {
  background: rgba(0, 194, 255, 0.04);
}
.mat-highlight {
  color: var(--white);
  font-weight: 700;
}
.mat-accent {
  color: var(--accent);
  font-weight: 600;
}

/* ─── CUSTOMIZATION ─── */
.custom-section {
  background: var(--primary);
}
.custom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.custom-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.custom-item {
  background: var(--mid);
  border-top: 2px solid var(--accent);
  padding: 18px;
}
.custom-item-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 6px;
}
.custom-item-val {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}
.custom-visual {
  overflow: hidden;
  border: 1px solid rgba(0, 194, 255, 0.15);
}
.custom-visual img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) brightness(0.85);
  transition:
    transform 0.5s,
    filter 0.4s;
}
.custom-visual:hover img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}
.custom-img-caption {
  padding: 12px 16px;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  color: #4a6080;
  letter-spacing: 0.1em;
  border-top: 1px solid rgba(0, 194, 255, 0.1);
  background: rgba(13, 31, 58, 0.6);
}

/* ─── FLOW ─── */
.flow-section {
  background: #0d1f3a;
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 48px;
  position: relative;
}
.flow-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.flow-step {
  text-align: center;
  padding: 0 8px;
}
.flow-circle {
  width: 72px;
  height: 72px;
  background: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
}
.flow-name {
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.flow-desc {
  font-size: 0.78rem;
  color: #8aacc8;
  line-height: 1.6;
}

/* ─── CONTACT ─── */
.contact-section {
  background: linear-gradient(135deg, #0a1628 0%, #0d2040 60%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(0, 194, 255, 0.08) 0%,
    transparent 70%
  );
}
.contact-inner {
  position: relative;
}
.contact-badge {
  display: inline-block;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(0, 194, 255, 0.4);
  padding: 6px 20px;
  margin-bottom: 32px;
}
.contact-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
}
.contact-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 44px;
  line-height: 1.85;
}
.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s,
    transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  padding: 24px 48px 0;
  font-size: 0.8rem;
  color: #4a6080;
  background: var(--primary);
}
.breadcrumb a {
  color: #4a6080;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span {
  margin: 0 8px;
}

/* セクション全体の余白設定 */
.section-lead-images {
  padding: 60px 0;
 
}

/* 5列に並べるためのグリッド設定 */
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5等分 */
  gap: 20px; /* 画像同士の隙間 */
}

.image-item {
  position: relative; /* 子要素（文字）の基準点になる */
  overflow: hidden;
  height: 300px; /* 必要に応じて高さを調整 */
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* 画像の上に被せる薄暗い背景（文字を見えやすくするため） */
.image-overlay {
  position: absolute;
  inset: 0;
  
  display: flex;
  
  justify-content: left; /* 左右中央 */
  padding: 20px;
}

/* キャッチコピー：明朝体設定 */
.image-copy {
  font-family: "Sawarabi Mincho", "Shippori Mincho", "serif"; /* 明朝体 */
  color: #646262;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(254, 253, 253, 0.5); /* 文字の可読性アップ */
}

/* マウスホップした時の動き */
.image-item:hover img {
  transform: scale(1.1);
}



/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  section {
    padding: 64px 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 24px 60px;
    gap: 32px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-img-wrap img {
    height: 260px;
  }
  .hero-thumb img {
    height: 90px;
  }
  .custom-grid {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .flow-steps::before {
    display: none;
  }
  .product-banner {
    grid-template-columns: 1fr;
  }
  .product-banner-item img {
    height: 160px;
  }
  .breadcrumb {
    padding: 16px 24px 0;
  }
}
@media (max-width: 600px) {
  .robot-grid {
    grid-template-columns: 1fr;
  }
  .flow-steps {
    grid-template-columns: 1fr;
  }
  .custom-items {
    grid-template-columns: 1fr;
  }

  /* レスポンシブ：スマホでは2列または1列にする */
@media (max-width: 900px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

}
