html {
  font-size: 18px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f4f7f9;
  color: #333;
}

.svg-logo {
  display: block;
  width:75%;
  height: auto;
}

/* ヘッダーの縦幅を固定 */
header {
  padding: 10px 0;
}

header nav {
  font-size: 1rem;
}

a.service-link {
  color: inherit;
  text-decoration: none;
}

.greeting {
  font-weight: bold;
  line-height: 1.5;
}

/* ボタンのベーススタイル */
.info {
  display: inline-block;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  color: #0066cc;
  background-color: #ffffff;
  border: 2px solid #0066cc;
  border-radius: 10px;
  padding: 10px 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* アイコン、電話番号、営業時間のスタイル */
.phone-number {
  font-size: 1.5rem;
  color: #003366;
}

.business-hours {
  font-size: 1.1rem;
  color: #666;
}

/* ホバー時の効果 */
.info:hover {
  background-color: #57908c;
  color: #ffffff;
  border-color: #57708c;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.info:hover .phone-number,
.info:hover .business-hours {
  color: #ffffff;
}

.main-visual {
  position: relative;
  background: url("../images/office-image.jpg") no-repeat center center;
  background-size: cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.main-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.4)
  ); 
  z-index: 1;
}

.main-visual .firstview p, a {
  position: relative;
  z-index: 2;
}

.main-visual p.microcopy{
  font-size: 1.2rem;
  text-align: center;
}

/* 各セクションの余白 */
.greeting,
.contact-form,
.office-info {
  padding: 15px;
  margin: 15px 0;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

/* カードデザイン */
.card-img-top {
  max-height: 180px; /* モバイルで画像の高さを制限 */
  object-fit: cover; /* 画像の比率を保持 */
}

.card-title {
  font-size: 1.1rem;
}

.card-text {
  font-size: 0.9rem;
}

.confirm-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.alert {
  font-size: 1.2rem;
  padding: 20px;
}

/* フッター */
footer {
  font-size: 0.8rem;
}

.tel-logo {
  width: 70%;
}

.fixed_banner_pc {
  width: 30%;
}

.fixed_banner_sp {
  display: none; 
}  

@media (max-width: 992px) {
  .fixed_banner_pc {
    display: none;
  }

  .fixed_banner_sp {
    display: inline-block; /* 消していたスマホ用のバナーを表示させます */
    border-radius: 0;
  }
}

/* メディアクエリでメニューの表示切り替え */
@media (max-width: 768px) {
  .svg-logo {
    height: auto;
  }

  .navbar-brand {
    width: 70%;
  }

  /* ヘッダー調整 */
  header {
    padding: 8px 0;
  }

  header nav {
    font-size: 0.9rem;
  }

  /* メインビジュアル */
  .main-visual {
    height: 150px; /* 高さをさらに調整 */
    font-size: 1.0rem;
    text-align: center;
  }

  .main-visual p{
    margin-bottom: 0.2rem !important;
  }

  .main-visual p.microcopy{
    font-size: 0.8rem;
  }

  /* カードデザイン */
  .card-img-top {
    max-height: 140px; /* モバイル時の画像サイズを調整 */
  }

  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.8rem;
  }

  /* ナビゲーションメニュー */
  .navbar-nav .nav-link {
    padding: 8px 12px;
  }

  .navbar-collapse {
    top: 70px; /* ヘッダー高さに合わせる */
  }

  /* ハンバーガーメニューが開いた際のメニュー */
  .navbar-collapse {
    position: absolute;
    top: 100%; /* ヘッダーの下に配置 */
    left: 0;
    width: 100%; /* ヘッダー幅に合わせる */
    background-color: #fafafa; /* メニュー背景色 */
    z-index: 20; /* ヘッダーより上に配置 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 浮き上がる効果 */
  }

  .navbar-nav .nav-link:hover {
    background-color: #0066cc; /* ホバー時の背景色 */
    color: #fff;
  }

  /* トグルボタンのZ-index調整 */
  .navbar-toggler {
    z-index: 30; /* ヘッダーやメニューよりも上に配置 */
  }

  .greeting {
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.2;
  }
  
  .confirm-wrapper {
    padding: 10px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 12px;
  }

  .phone-number {
    font-size: 1.3rem;
    color: #003366;
  }

  .business-hours {
    font-size: 0.9rem;
    color: #666;
  }
  
}


