html {
  /* PC では 16px、スマホでは 14px へ自動で滑らかに縮む */
  font-size: clamp(14px, 1.1vw + 0.6rem, 16px);
}


body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Yu Gothic", sans-serif;
}

.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
}

.bg-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-line {
  display: block;
  opacity: 0;
  transition: opacity 1s ease;
  font-size: 1.6em;
  margin: 10px 0;
}


.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-size: 1.2em;
  /* 小さく変更 */
  font-weight: 300;
  /* 軽く細く */
  letter-spacing: 0.05em;
  /* ちょっと空ける */
  font-family: "Yu Gothic", "Helvetica", sans-serif;
  z-index: 2;
  transition: opacity 1s ease;
}

.curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 3;
  overflow: hidden;
  /* ←重要：中のロゴが一緒に動くため */
  transform: translateY(0%);
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.9, 1);
  /* ギュンギュン！系 */
}

.curtain.hide {
  transform: translateY(-100%);
}

.curtain-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.curtain-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2em;
  font-weight: bold;
  color: #222;
  font-family: "Yu Gothic", sans-serif;
  opacity: 0.8;
}

.persistent-logo {
  position: absolute;
  /* または fixed でもOK */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
  color: white;
  font-weight: 600;
  font-family: "Yu Gothic", sans-serif;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
  text-align: center;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}



.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  z-index: 4;
  padding: 10px 0;
  font-family: "Yu Gothic", sans-serif;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  margin-right: 10px;
  vertical-align: middle;
  /* ← 高さ揃える1 */
  display: inline-block;
}

.logo-text {
  display: inline-block;
  vertical-align: middle;
  /* ← 高さ揃える2 */
}



.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #555;
}

.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
}

.services-section>h2 {
  text-align: center;
  margin: 0 auto 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card img {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 影追加 */
  box-shadow: 0 4px 15px rgba(44, 0, 62, 0.6);
  /* 紫の影 */
}

.service-card h3 {
  font-size: 1.2em;
  margin: 10px 0;
}

.service-card p {
  font-size: 0.95em;
  color: #555;
}

.services-footer {
  margin-top: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background: #007BFF;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0056b3;
}

.company-section {
  padding: 60px 20px;
  background-color: #f9f9fc;
  text-align: center;
}

.company-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #2c003e;
  /* ダークパープル */
}

.company-info {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.company-info h3 {
  font-size: 1.5em;
  color: #222;
  margin-bottom: 30px;
  text-align: center;
}

.office {
  margin-bottom: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(44, 0, 62, 0.1);
  /* 軽めの紫影 */
}

.office h4 {
  font-size: 1.2em;
  color: #2c003e;
  margin-bottom: 10px;
}

.office p {
  margin: 0;
  line-height: 1.6;
}

.location-section {
  padding: 60px 20px;
  background-color: #f8f8f8;
  color: #222;
  text-align: center;
}

.office-block {
  max-width: 1200px;
  /* ← ここが今900になってるはず！ */
  margin: 0 auto 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(44, 0, 62, 0.1);
  /*ラプラス*/
  text-align: left;
}

.office-block h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #2c003e;
  /* ダークパープル */
}

.office-block p {
  line-height: 1.6;
  font-size: 1em;
  margin-bottom: 15px;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(44, 0, 62, 0.4);
  /* 地図にも紫の影 */
}

/* ========== モバイル用レイアウト (幅 768px 未満) ========== */
@media (max-width: 767px) {

  /* ヘッダー内の要素を縦並びに */
  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  /* ロゴを少し縮小 */
  .logo-img {
    height: 28px;
    margin-right: 6px;
  }

  .logo-text {
    font-size: 1rem;
  }

  /* ナビを縦並び＆中央寄せ */
  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  /* ヒーロー動画を縦長画面に収める */
  .video-container {
    height: 60vh;
  }

  /* ヒーローテキストを小さめに */
  .hero-text {
    font-size: 0.9em;
  }

  /* サービスカードを 1 カラム表示 */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* カード余白を広げてタップしやすく */
  .service-card {
    padding: 24px 18px;
  }

  /* 地図の高さも縮める */
  .map-container iframe {
    height: 220px;
  }
}

/* ---- Newsroom レイアウトを縦1列 ---- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  max-width: 1200px;
  /* 好きな横幅に調整 */
  margin: 0 auto;
  /* 左右中央寄せ */
}

/* カードの中で画像と本文を横並び → モバイルは縦 */
.news-card {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(44, 0, 62, .15);
  padding: 20px;
}

.news-card img {
  width: 240px;
  /* 横幅固定、縦は自動 */
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

.news-body time {
  font-size: .85rem;
  color: #666;
}

.news-body h3 {
  font-size: 1.25rem;
  margin: 6px 0 12px;
  color: #222;
}

.news-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

/* モバイル：カードを縦積み */
@media (max-width:767px) {
  .news-card {
    flex-direction: column;
    padding: 16px;
  }

  .news-card img {
    width: 100%;
    height: 180px;
  }
}

/* Newsroom 見出しを中央寄せにする */
.news-section>h2 {
  text-align: center;
  margin: 0 auto 40px;
  /* 上下余白をそろえたい場合は調整可 */
}

.news-section {
  padding: 60px 30px;
  /* すでにあればそのまま */
  text-align: center;
  /* 見出し <h2> だけ中央に */
}

.only-pc {
  display: block;
}

.only-sp {
  display: none;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .only-pc {
    display: none;
  }

  .only-sp {
    display: block;
  }

  .hero-title {
    font-size: 1.2rem;
    text-align: center;
  }
}

/* ───────── ハンバーガーアイコン ───────── */
/* ───────── ハンバーガーアイコン ───────── */
.hamburger {
  display: flex !important;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: transparent;
  /* or white or red for visibility */
  padding: 0;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  border: none;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 4px;
  background: #333;
  /* ← 一旦目立つ色にする */
  border-radius: 2px;
}


.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 767px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    padding: 25px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 5;
  }

  .main-nav.open {
    display: flex;
  }
}

@media (min-width: 768px) {
  .hamburger {
    display: none !important;
  }
}