* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
}

body {
  background: #fff;
  color: #111;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  background: rgba(0,0,0,0.3);
  color: #fff;
  z-index: 1000;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  background: linear-gradient(135deg,#0b3c6f,#081f3a);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 10%;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 18px;
  opacity: 0.9;
}

/* ===== SCROLL ===== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
}

.scroll-indicator span {
  display: block;
  width: 2px;
  height: 40px;
  background: #fff;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { height: 0; opacity: 0; }
  50% { height: 40px; opacity: 1; }
  100% { opacity: 0; }
}

/* ===== SECTION ===== */
.section {
  padding: 160px 10%;
}

.section.dark {
  background: #081f3a;
  color: #fff;
}

.section-title {
  font-size: 40px;
  margin-bottom: 80px;
}

/* ===== SERVICE ===== */
.service-list {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 60px;
}

.service-item h3 {
  font-size: 22px;
  margin-bottom: 50px;
}

/* ===== WORKS ===== */
.works-slider {
  display: flex;
  gap: 40px;
}

.work {
  min-width: 300px;
  padding: 80px 40px;
  background: rgba(255,255,255,0.08);
}

/* ===== COMPANY ===== */
.company {
  width: 70%;
  border-collapse: collapse;
}

.company th, .company td {
  padding: 18px;
  border-bottom: 1px solid #ddd;
}

/* ===== CONTACT ===== */
.contact {
  background: #0b3c6f;
  color: #fff;
  text-align: center;
  padding: 140px 10%;
}

.contact-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 16px 40px;
  border: 1px solid #fff;
}

/* ===== FOOTER ===== */
.footer {
  background: #000;
  color: #aaa;
  text-align: center;
  padding: 30px;
}

/* ===== ANIMATION ===== */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: .3s }
.delay-2 { transition-delay: .6s }

.hero {
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-inner,
.scroll-indicator {
  position: relative;
  z-index: 2;
}

/* ===== VIDEO VIEW ===== */
.video-view {
  position: relative;
  height: 80vh;
  overflow: hidden;
  background: #000;
}

.video-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  filter: brightness(0.9) contrast(1.15) saturate(0.9);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 10%;
  color: #fff;
}

.video-catch {
  font-size: 40px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.video-sub {
  font-size: 14px;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

.service-detail .detail-section {
  max-width: 1100px;
  margin: 0 auto 80px;
}

.tool-list li {
  margin-bottom: 8px;
}

.detail-block {
  margin-bottom: 60px;
}

.media-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.media-grid img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.media-video {
  max-width: 800px;
}

.media-video iframe,
.media-video video {
  width: 100%;
  height: 450px;
}

/* ===== IMAGE HOVER EFFECT ===== */
.media-grid img {
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.media-grid img:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 40, 80, 0.25);
}

/* ===== IMAGE MODAL ===== */
#image-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#image-modal img {
  max-width: 90%;
  max-height: 90%;
}

#image-modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

/* ===== HEADER BUTTON NAV ===== */
.nav-buttons a {
  display: inline-block;
  padding: 10px 20px;
  margin-left: 10px;
  border: 1px solid rgba(0, 60, 120, 0.6);
  border-radius: 30px;
  color: #003c78;
  font-size: 14px;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.nav-buttons a:hover {
  background: #003c78;
  color: #fff;
  transform: translateY(-2px);
}

model-viewer {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== WORKS GRID ===== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.work-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* オーバーレイ */
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 40, 90, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.work-overlay span {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ===== HOVER EFFECT ===== */
.work-card:hover img {
  transform: scale(1.08);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== COMPANY PAGE ===== */
.company-table {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: collapse;
  background: #fff;
}

.company-table th,
.company-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 220px;
  background: #f5f5f5;
  font-weight: 600;
}

/* ===== ACCESS ===== */

.access-map {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
/* filter: grayscale(100%) contrast(1.1); */
/* filter:invert(100%);-webkit-filter:invert(100%);*/
/*filter:hue-rotate(140deg);-webkit-filter:hue-rotate(140deg);*/
/*filter:sepia(20%);*/



}

.access-map iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* tableがCOMPANYと共通なら不要だが無い場合 */
.company-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.company-table th {
  width: 220px;
  background: #f5f5f5;
  font-weight: 600;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group label span {
  color: #0055aa;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0055aa;
}


/* =========================
   スマホ対応（768px以下）
========================= */
@media screen and (max-width: 768px) {

  /* ===== HEADER ===== */
  .header {
    flex-direction: column;
    padding: 12px 16px;
  }

  .logo {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav a {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* ===== HERO ===== */
  .hero {
    height: 70vh;
  }

  .hero-inner h1 {
    font-size: 26px;
    line-height: 1.4;
  }

  .hero-lead {
    font-size: 14px;
  }

  canvas#hero-canvas {
    display: none; /* スマホでは3Dを非表示（推奨） */
  }

  /* ===== VIDEO VIEW ===== */
  .video-view {
    height: 40vh;
  }

  .video-view video {
    object-fit: cover;
  }

  .video-catch {
    font-size: 20px;
  }

  /* ===== SERVICE ===== */
  .service-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-item h3 {
    font-size: 18px;
  }

  .service-item p {
    font-size: 14px;
  }

  /* ===== WORKS ===== */
  .works-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work-card img {
    height: auto;
  }

  .work-overlay span {
    font-size: 18px;
  }

  /* ===== ACCESS ===== */
  .company-table {
    width: 100%;
    font-size: 14px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    background: none;
    padding-top: 12px;
    font-weight: bold;
  }

  .access-map iframe {
    width: 100%;
    height: 300px;
  }

  /* ===== CONTACT ===== */
  .contact h2 {
    font-size: 24px;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
    padding: 14px 0;
  }

  /* ===== FOOTER ===== */
  .footer p {
    font-size: 12px;
  }
}

.contact-page,
.thanks-page {
  max-width: 900px;
  margin: 0 auto;
}

.section-lead {
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group span {
  color: #0055aa;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.thanks-message {
  text-align: center;
  line-height: 1.8;
}





