/* ローディング画面 */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* 背景色 適宜変更 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

/* ローディング動画 */
#loading video {
  width: 180px; /* サイズ調整 */
  height: auto;
}

/* 読み込み後 非表示 */
#loading.hide {
  opacity: 0;
  pointer-events: none;
}


/* ===== 基本設定 ===== */
body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  margin: 0;
  background-color: #f8f9f6; /* ロゴ背景の淡い緑系 */
  color: #333;
  line-height: 1.8;
}

/* ===== ヘッダー ===== */
header {
  background-color: #ffffff;
  border-bottom: 4px solid #2e2c61; /* 鉛筆オレンジ */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.logo-area {
  display: flex;
  align-items: center;
}

.logo {
  height: 85px;
  width: auto;
  margin-right: 15px;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #d1467c; /* ロゴの外枠と調和する深い青緑 */
  margin: 0;
}


/* 全体 */


/* ロゴ画像 */
.logo img {
  height: 60px;
  cursor: pointer;
}

/* ナビゲーション */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2e2c61; /* ロゴに合わせた暖色 */
}

/* ▼ ドロップダウンメニュー ▼ */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%; /* 親liの真下 */
  background-color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 8px;
  min-width: 200px;
  z-index: 20;
  left: -20px;
}

.dropdown-menu li {
  padding: 10px 20px;
}

.dropdown-menu li a {
  white-space: nowrap;
  color: #333;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #ffecd2; /* 優しい暖色で可愛く */
  color: #000;
}

/* ホバーしたら出現 */
.dropdown:hover .dropdown-menu {
  display: block;
}


/* ===== ナビゲーション ===== */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #d1467c; /* 鉛筆の青緑部分 */
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-menu li a:hover {
  background-color: #e8f4f3;
  color: #2e2c61; /* オレンジでアクセント */
}


/* ===== メインビジュアル（ヒーローエリア） ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-image {
  width: 100%;
  object-fit: cover;
}

/* ===== キャッチコピー部分 ===== */
.hero-text {
  position: absolute;
  text-align: center;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75); /* 半透明の白背景 */
  color: #d1467c; /* ロゴの深い青緑で統一 */
  padding: 25px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 80%;
}

/* タイトル部分 */
.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #2e2c61; /* ロゴのオレンジで強調 */
}

/* サブコピー */
.hero-text p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.4s ease forwards;
  animation-delay: 4s; /* ← h2のアニメ後に表示 */
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .hero {
    height: 300px;
  }

  .hero-text {
    padding: 15px 20px;
    max-width: 90%;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }
}

/* 1文字アニメーション */
.fade-slide span {
  opacity: 0;
  display: inline-block;
  transform: translateX(20px);
  animation: slideFade 0.6s forwards ease-out;
}

@keyframes slideFade {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== メイン ===== */
main {
  padding: 40px 20px;
}

/* ===== セクションデザイン ===== */
section {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 50px auto;
  padding: 40px;
  max-width: 900px;
}

/* ===== 見出し ===== */
h2 {
  border-left: 8px solid #2e2c61;
  padding-left: 12px;
  color: #d1467c;
  font-size: 1.6rem;
  margin-bottom: 25px;
}

/* ===== 会社概要リスト ===== */
#about ul {
  list-style: none;
  padding: 0;
}

#about li {
  padding: 8px 0;
  border-bottom: 1px solid #e2ecea;
}

#about li strong {
  color: #2e2c61;
}

/* ===== 経営理念 ===== */

/* ===== 事業内容 ===== */
#services ul {
  list-style-type: none;
  padding: 0;
}

#services li {
  padding: 10px 0;
  border-bottom: 1px solid #e6efed;
}

#services li a {
  color: #2e2c61;
  display: inline-block;
  margin-bottom: 5px;
  font-weight: bolder;
  text-decoration: none;
}


.services {
  text-align: center;
  padding: 60px 20px;
  background-color: #fdfdfd;
}

.services h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 3px solid #2e2c61; /* ロゴ色に合わせて変更可 */
  display: inline-block;
  padding-bottom: 5px;
}

.service-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-btn {
  display: inline-block;
  background-color: #2e2c61; /* ロゴに合わせた暖色 */
  color: #fff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.service-btn:hover {
  background-color: #2e2c61;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}


/* ===== お問い合わせ ===== */
iframe {
  width: 100%;
  border: 2px solid #d5ebe9;
  border-radius: 8px;
}

/* ===== フッター ===== */
footer {
  background-color: #d1467c; /* ロゴ外枠と同系色 */
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.95rem;
}

footer p {
  margin: 0;
  letter-spacing: 0.5px;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .logo {
    height: 65px;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
  }

  section {
    padding: 25px;
  }

  h2 {
    font-size: 1.4rem;
  }
}

/* ===== 固定お問い合わせボタン ===== */
.contact-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #2e2c61; /* ロゴのオレンジ */
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.contact-button:hover {
  background-color: #d1467c; /* ロゴの青緑に変化 */
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===== トップへ戻るボタン（HTML＋CSSだけ） ===== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #d1467c; /* ロゴに合わせた青緑 */
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #2e2c61; /* ホバー時：オレンジ */
  transform: scale(1.1);
}

/* スムーズスクロール（JavaScriptなしでOK） */
html {
  scroll-behavior: smooth;
}

#services3 h3 {
  color: #d1467c;
  margin-top: 25px;
  font-size: 1.2rem;
  border-left: 5px solid #2e2c61;
  padding-left: 10px;
}

#services3 ul {
  padding-left: 20px;
  margin-top: 10px;
}

#services3 li {
  margin-bottom: 8px;
}
