body {
  font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
  margin: 0;
  background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
  color: #222;
}
.header {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  transition: background 0.3s;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
}
.logo {
  height: 48px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav a {
  position: relative;
  text-decoration: none;
  color: #222;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  padding: 6px 0;
  transition: color .2s;
}
.nav a::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #007bff 0%, #00c6ff 100%);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  position: absolute;
  left: 0;
  bottom: -2px;
}
.nav a:hover,
.nav a:focus {
  color: #007bff;
}
.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}
.nav-toggle {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #007bff;
  background: none;
  border: none;
  transition: color 0.2s;
}
.nav-toggle:hover {
  color: #0056b3;
}
@media (max-width: 800px) {
  .header__inner {
    padding: 10px 12px;
  }
  .nav ul {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    position: absolute;
    top: 60px;
    right: 16px;
    width: 180px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 20px 0;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #e0e7ef;
    z-index: 200;
    transition: all 0.3s;
  }
  .nav ul.active {
    display: flex;
    animation: navFadeIn 0.3s;
  }
  @keyframes navFadeIn {
    from { opacity: 0; transform: translateY(-16px);}
    to { opacity: 1; transform: translateY(0);}
  }
  .nav-toggle {
    display: block;
  }
  .nav ul li {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .nav a {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    display: block;
  }
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,0.35);
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}
.hero__content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.hero__content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.btn {
  background: #007bff;
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover {
  background: #0056b3;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 16px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
.service__list {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.service__item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 24px;
  text-align: center;
  width: 300px;
  transition: transform .2s;
  opacity: 1;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.service__item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.service__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.service__item h3 {
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1.2rem;
}
.service__item p {
  font-size: 1rem;
  color: #555;
}
.service__item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.works {
  margin-top: 64px;
}
.works__slider {
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 260px;
}
.works__slide {
  min-width: 100%;
  transition: transform .5s;
  opacity: 0.7;
  display: none;
  flex-direction: column;
  align-items: center;
}
.works__slide.active {
  display: flex;
  opacity: 1;
}
.works__slide img {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.works__caption {
  text-align: center;
}
.works__arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.works__arrows button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background .2s;
}
.works__arrows button:hover {
  background: #0056b3;
}

.about {
  margin-top: 64px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}
.about__greeting {
  max-width: 600px;
  margin: 0 auto 32px auto;
  text-align: left;
  font-size: 1.08rem;
  line-height: 2;
  color: #333;
  background: #f8f9fa;
  padding: 24px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.about__table {
  margin: 32px auto;
  text-align: left;
  width: 100%;
  max-width: 600px;
  background: #fafbfc;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.about__table th, .about__table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
}
.about__table th {
  background: #f0f4f8;
  width: 140px;
  font-weight: bold;
}
.about__table tr:last-child th,
.about__table tr:last-child td {
  border-bottom: none;
}

/* 会社概要テーブルのスマホ対応 */
.about__table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.about__table th,
.about__table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}
.about__list {
  margin: 0;
  padding-left: 1.2em;
}
@media (max-width: 600px) {
  .about__table th,
  .about__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 4px;
  }
  .about__table tr {
    display: block;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
  }
  .about__table th {
    font-weight: bold;
    background: #f4f8ff;
  }
}

.about__img {
  width: 320px;
  max-width: 90vw;
  margin: 0 auto 24px auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.about__img.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact {
  margin-top: 64px;
  text-align: center;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}
.contact__form input,
.contact__form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}
.contact__form textarea {
  min-height: 100px;
}
.contact__form button {
  align-self: center;
}
.contact__thanks {
  color: #007bff;
  font-size: 1.2rem;
  margin-top: 24px;
}
.contact__form-iframe {
  display: flex;
  justify-content: center;
  width: 100%;
}
.contact__form-iframe iframe {
  width: 100%;
  max-width: 500px;
  min-width: 280px;
  border: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 24px 0;
  margin-top: 64px;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .service__list {
    flex-direction: column;
    align-items: center;
    padding: 0;
  }
  .service__item {
    width: 100%;
    max-width: 800px; /* 会社概要と同じ最大幅に調整 */
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
  }
  .service__item img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
}

/* 主要取引先のリストの・印を消すためのスタイル */
.about__clients {
  line-height: 2;
  padding-left: 0;
}

/* --- スプラッシュアニメーション --- */
#splash {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: linear-gradient(120deg, #e0e7ff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
  animation: splashBg 1.2s;
}
@keyframes splashBg {
  0% { filter: blur(8px) brightness(1.2);}
  100% { filter: blur(0) brightness(1);}
}
.splash__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.7) rotate(-10deg);
  animation: splashIn 0.9s cubic-bezier(.4,0,.2,1) 0.2s forwards;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border-radius: 50%;
  background: #fff;
}
@keyframes splashIn {
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
.splash__text {
  margin-top: 24px;
  font-size: 2.1rem;
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #007bff;
  opacity: 0;
  animation: splashText 0.7s 0.7s forwards;
  text-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
@keyframes splashText {
  to { opacity: 1; }
}
#splash.splash--hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}

/* ご挨拶文アニメーション */
.greeting-animated .greeting-lines p {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.greeting-animated.is-animated .greeting-lines p {
  opacity: 1;
  transform: translateX(0);
}
.greeting-animated .greeting-lines p:nth-child(1) { transition-delay: 0.2s; }
.greeting-animated .greeting-lines p:nth-child(2) { transition-delay: 0.7s; }
.greeting-animated .greeting-lines p:nth-child(3) { transition-delay: 1.2s; }
.greeting-animated .greeting-lines p:nth-child(4) { transition-delay: 1.7s; }
.greeting-animated .greeting-lines p:nth-child(5) { transition-delay: 2.2s; }

@media (max-width: 600px) {
  .hero__content h1 {
    font-size: 1.3rem;
    text-align: center;
    word-break: keep-all;
  }
  .hero__content h1 br {
    display: block;
  }
}