/* リセットスタイル */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロールバーを防ぐ */
  scroll-behavior: smooth; /* スムーズスクロール */
}

body {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', Meiryo, メイリオ, sans-serif;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.3;
}

ul {
  padding-left: 18px;
  list-style: disc;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header .brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #012;
}

.site-header .nav a {
  margin-left: 25px;
  color: #012;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-header .nav a:hover {
  color: #00bcd4;
}

.site-header .nav .cta {
  background: #00bcd4;
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 30px;
  transition: background 0.3s ease;
}

.site-header .nav .cta:hover {
  background: #00a4b8;
  text-decoration: none;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #012;
  cursor: pointer;
  z-index: 1001;
}

/* ヒーローセクション */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* 下寄せ */
  align-items: center;
  text-align: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(4,12,28,0.45), rgba(4,12,28,0.45));
  z-index: 0;
}

/* ロゴとテキストをまとめて配置 */
.hero-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto -50px;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  opacity: 0.95;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  color: #fff;
  padding: 0 20px 120px; /* 下に余白を追加して下寄りに */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-inner .eyebrow {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  color: #00bcd4;
}

.hero-inner h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-inner .lead {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.8;
}

.hero .btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  background: #d32f2f;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.3s ease;
  text-decoration: none !important;
}
.hero .btn:hover {
  background: #b71c1c;
}

/* 共通セクションスタイル */
main {
  padding-top: 80px;
}

section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

section:nth-of-type(even) {
  background-color: #f9f9f9;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #00bcd4;
  margin: 15px auto 0;
}

/* wrapコンテナ */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* intro セクション */
.intro {
  display: flex;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.intro .card {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: left;
  line-height: 1.8;
}
.intro .card h2 {
  font-size: 1.8rem;
  color: #012;
  margin-bottom: 15px;
}
.intro .card h3 {
  font-size: 1.5rem;
  color: #012;
  margin-bottom: 10px;
}
.intro .card ul {
  list-style: square;
  padding-left: 20px;
  margin-top: 15px;
}
.intro .card p {
  margin-bottom: 10px;
}
.intro .card .btn {
  display:inline-block;
  margin-top:15px;
  padding:10px 18px;
  border-radius:8px;
  background:#00bcd4;
  color:#fff !important;
  font-weight:700;
  transition: background 0.3s ease;
  text-decoration: none !important;
}
.intro .card .btn:hover {
  background: #00a4b8;
}

/* cases セクション */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.case {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.case a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.case .thumb {
  width: 100%;
  height: 220px;
  background-color: #e0f7fa;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #00838f;
  overflow: hidden;
}
.case .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.case:hover .thumb img {
  transform: scale(1.05);
}

.case .body {
  padding: 25px;
}

.case .body h3 {
  font-size: 1.4rem;
  color: #012;
  margin-bottom: 10px;
}

.case .body p {
  font-size: 0.95rem;
  color: #555;
}

/* services セクション */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.services-grid .card {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.services-grid .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.services-grid .card h3 {
  font-size: 1.5rem;
  color: #012;
  margin-bottom: 10px;
}
.services-grid .card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

/* about-us セクション */
.company-info-grid {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.company-details, .company-mission {
  flex: 1;
  min-width: 280px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.company-details p, .company-mission p, .company-mission li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.company-details strong {
  color: #012;
}

/* contact セクション */
.contact-info {
  margin: 40px auto;
  max-width: 720px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
}
.contact-info p {
  font-size: 1.1rem;
  margin: 0;
  color: #012;
}

/* フッター */
footer {
  background: #111;
  color: #eee;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-inner div {
  opacity: 0.9;
}
.footer-inner div:first-child {
  margin-bottom: 5px;
}

/* ====================================
   アニメーション関連のCSS
   ==================================== */
.animate-on-load {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-load.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.company-info-grid .company-details.animate-on-scroll {
  transform: translateX(-50px);
}
.company-info-grid .company-details.animate-on-scroll.is-visible {
  transform: translateX(0);
}
.company-info-grid .company-mission.animate-on-scroll {
  transform: translateX(50px);
}
.company-info-grid .company-mission.animate-on-scroll.is-visible {
  transform: translateX(0);
}

/* ====================================
   レスポンシブデザイン
   ==================================== */
@media (max-width: 992px) {
  .site-header {
    padding: 15px 20px;
  }
  .hero-inner h1 {
    font-size: 2.5rem;
  }
  .hero-inner .lead {
    font-size: 1.1rem;
  }
  .intro {
    flex-direction: column;
    align-items: center;
  }
  .intro .card {
    min-width: unset;
    width: 100%;
    max-width: 500px;
  }
  .cases-grid, .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .company-info-grid {
    flex-direction: column;
    align-items: center;
  }
  .company-details, .company-mission {
    min-width: unset;
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    padding: 10px 15px;
  }
  .site-header .brand {
    flex: 1;
  }
  .menu-toggle {
    display: block;
    order: 2;
  }
  .site-header .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    text-align: center;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
  }
  .site-header .nav.active {
    display: flex;
  }
  .site-header .nav a {
    margin: 10px 0;
    font-size: 1.1rem;
  }
  .site-header .nav .cta {
    margin: 10px auto;
    padding: 10px 20px;
  }

  .hero-logo {
    max-width: 300px;
    margin-bottom: 0px;
  }
  .hero-inner h1 {
    font-size: 2rem;
  }
  .hero-inner .lead {
    font-size: 0.95rem;
  }
  .hero .btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
  section {
    padding: 60px 0;
  }
  section h2 {
    font-size: 2rem;
  }
  .wrap {
    padding: 0 15px;
  }
  .case .thumb {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .site-header .brand {
    font-size: 1.3rem;
  }
  .hero-inner {
    padding-bottom: 250px;
  }
  .hero-inner h1 {
    font-size: 1.6rem;
  }
  .hero-inner .lead {
    font-size: 0.85rem;
  }
  .hero .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  section h2 {
    font-size: 1.8rem;
  }
  .intro .card,
  .cases-grid .case,
  .services-grid .card,
  .company-details, .company-mission,
  .contact-info {
    padding: 20px;
  }
}

/* PC表示用 ヘッダー調整 */
@media (min-width: 769px) {
  .nav {
    margin-right: 50px;
  }
  .nav a.contact-btn {
    padding: 10px 16px;
  }
}
