/* ===== メインビジュアル ===== */
.mainvisual {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin: 0 0 8px;
  background-color: #ffeb3b;
  padding: 0 0 40px;
}
.image-wrapper {
  max-width: 900px;
  margin: 0 auto;
}
.main-image {
  width: 100%;
  height: auto;
  display: block;
}
.hero-textbox {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 30px 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-textbox .small-title {
  color: #388e3c;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-textbox h1 {
  font-size: 28px;
  color: #388e3c;
  font-weight: bold;
  margin-bottom: 20px;
}

.hero-textbox h1 span {
  font-size: 22px;
}

.hero-textbox .description {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

.hero-textbox .tel {
  background: #5d4037;
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
  .mainvisual {
    height: 330px;
  }
  .hero-textbox h1 {
    font-size: 1.4rem;
  }
  .hero-textbox .small-title {
    font-size: 0.9rem;
  }
  .hero-textbox .description,
  .hero-textbox .tel {
    font-size: 0.8rem;
  }
  .main-image {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-textbox h1 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .hero-textbox {
    width: 90%;
    max-width: 90%;
    top: 10%;
  }
  .hero-textbox .small-title {
    font-size: 1rem;
  }
  .hero-textbox .description {
    font-size: 0.95rem;
  }
  .hero-textbox .tel {
    font-size: 1rem;
  }
}

/* ========== 共通スタイル ========== */

html, body {
  width: 100%;
  overflow-x: hidden; /* ← 横スクロールを完全に防ぐ */
  font-family: 'Noto Sans JP', sans-serif;
  color: #3E2723;
}

h2 {
  color: #558B2F;
}

body {
  background-color: #FFFDE7;
  overflow-x: hidden;
}

.mw900 {
  max-width: 900px;
}

.cover {
  background-color: rgba(0, 0, 0, 0.5);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  text-align: center;
  padding-left: 1.7em;
  padding-right: 1.7em;
}

.btn-contact {
  background-color: #f08300;
  color: #FFFFFF;
}

.btn-contact:hover {
  background-color: #b8d200;
}

ul {
  list-style: none;
  padding-left: 0;
}

.box-note {
  display: inline-block;
  max-width: 50%;
  width: 100%;
  padding: 1em;
  background-color: #FDF5C1;
  border-radius: 6px;
  font-weight: bold;
}

@media (max-width: 768px) {
  
.box-note {
  max-width: 95%;
}
}

/* ===== テーブル装飾 ===== */
table {
  width: 100%;
  border-collapse: collapse;
  color: #3E2723 !important;
  font-size: 1.05rem;
  line-height: 1.7;
}

th, td {
  border: 1px solid #ccc;
  line-height: 1.8; /* ← 行間を広げる */
  padding: 16px;
}

th {
  background-color: #689F38 !important;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
  padding-right: 16px;
}

/* ===== テーブルのtd内テキストラップ用 ===== */
.td-flex {
  display: block;
  text-align: left;
}

.td-center {
  display: block;
  margin-top: auto;
  margin-bottom: auto;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.td-center ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-top: 0;
  margin-bottom: 0;
}
.td-center li + li {
  margin-top: 0.5em;
}

tr:nth-child(even) td {
  background-color: #F9FBE7;
}
tr:nth-child(odd) td {
  background-color: #FFFFF8;
}

/* ===== Bootstrap .btn-dark カスタム（焦げ茶系） ===== */
.btn-dark {
  background-color: #4E342E;
  border-color: #4E342E;
  color: #fff !important;
}
.btn-dark:hover {
  background-color: #3E2723;
  border-color: #3E2723;
  color: #fff;
}

/* ========== ヘッダー ========== */

.navbar {
  background-color: #FFEB3B !important;
  align-items: center;
  font-weight: bold;
}

.navbar .navbar-nav .nav-link {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 8px 16px;
}
.navbar .btn {
  height: 100%;
}
.nav-link,
.navbar-brand {
  color: #3E2723 !important;
}

/* ===== ナビゲーションメニューのホバー効果 ===== */
.navbar-nav a:hover {
  color: #78a92d; /* メニューバーと同じ色 */
  text-decoration: underline;
  transition: all 0.2s ease;
}

@media (max-width: 991.98px) {
  .btn-line, .btn-phone, .btn-form {
    width: 280px;
  }
  .navbar-nav .nav-item.d-flex {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .navbar-nav .btn {
    flex: 1 1 auto;
    width: auto;
    margin: 0 4px;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    white-space: nowrap;
  }
}

/* ===== ヘッダー全体を囲うラッパー（全幅）===== */
.header-wrap {
  width: 100%;
  background-color: #FBC02D !important;
}
/* ヘッダー本体（中央寄せ＆最大幅） */
.header-area {
  position: relative;
  max-width: 960px; /* 必要に応じて調整 */
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}
/* ===== メインヘッダー imgタグ・テキスト用新スタイル ===== */
.main-header {
  position: relative;
  background-color: #FFEB3B;
  height: 500px;
  overflow: hidden;
  width: 100%;
  /* object-fit: contain; */
  display: flex;
  flex-wrap: wrap;
}
.main-header img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  max-height: 100vh;
}
.main-header-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 10px;
  color: #3E2723;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  text-align: left;
}
.main-header-text span {
  font-size: medium;
}
.main-header-text .sub-text {
  color: #5f8f2d; /* Same as h2 */
  font-weight: bold;
  margin-bottom: 5px; /* Reduce space below */
}
.main-header-text h2 {
  margin-top: 0.1em;
}

/* ========== メインヘッダー（旧スタイル） ========== */
.main-header .header-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url("img/header.jpg"); /* 画像パス */
  background-size: cover;
  background-position: center;
}
.main-header .header-content {
  z-index: 2;
  padding-left: 5%;
  max-width: 50%;
  color: white;
}
.main-header .header-content h2 {
  font-weight: bold;
  font-size: 2rem;
  text-align: left;
}


/* ========== サービス概要テーブル ========== */
/* ===== 福祉移送サービス概要テーブル専用スタイル ===== */
.welfare-table td {
  display: table-cell !important;
  vertical-align: middle !important;
  text-align: center !important;
  padding: 12px !important;
  height: auto !important;
}

/* ========== ステップ・フロー ========== */
.step-box {
  background-color: #F1F8E9;
}
.step-box h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}
.step-box p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
@media (max-width: 576px) {
  .step-img-wrapper {
    margin-top: 2rem;
  }
}

/* ========== CTA・ボタンエリア ========== */
.cta-buttons {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  margin-bottom: 72px;
  display: flex;
}
@media (min-width: 992px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding-inline: 4vw;
    flex-wrap: nowrap;
  }
  .btn-line, .btn-phone, .btn-form {
    max-width: none;
  }
}
/* 共通ボタンスタイル（サイズ合わせ・立体感＋押した感触） */
.btn-line, .btn-phone, .btn-form {
  text-align: center;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  transform: translateY(0);
  height: 60px;
  width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 60px;
  background-color: #8BC34A;
}
.btn-line:hover,
.btn-phone:hover,
.btn-form:hover {
  background-color: #7CB342;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(2px);
}
/* ナビ内ボタン用サイズ調整 */
.btn-line.btn-sm,
.btn-phone.btn-sm,
.btn-form.btn-sm {
  font-size: 0.9rem;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  height: 56px;
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-nav .btn {
  padding: 0;
  width: 100%;
  margin-bottom: 10px;
  font-size: 1rem;
  text-align: center;
  height: 56px;
  line-height: 1;
}
.navbar-nav .nav-item.d-flex {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0 auto 10px;
  gap: 0;
  padding-inline: 0;
}

/* ========== コンタクトエリア ========== */
.contact-area {
  width: 100%;
  background-color: #E6F4D7 !important;
}

/* ========== フッター ========== */
footer {
  background-color: #FFEB3B !important;
}
.footer-wrap {
  position: relative;
  width: 100%;
  /* 草の高さぶん余白を確保*/
  padding-bottom: 100px;
  overflow: hidden;
  background-color: #FBC02D !important;
}
.footer-area {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  z-index: 1;
}
.main-footer {
  width: 100%;
  height: auto;
  display: block;
}
.footer-grass-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* 草画像の高さ */
  background-image: url('../img/footer-grass.png');
  background-repeat: repeat-x;
  background-size: auto 100%;
  z-index: 0;
  pointer-events: none;
}
footer .nav-link {
  color: #212529 !important;
}
@media (max-width: 820px) and (min-width: 577px) {
  .main-footer {
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
  }
}
@media (max-width: 576px) {
  .footer-area {
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  .main-footer {
    padding-left: 0;
    padding-right: 0;
  }
}
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
  }
  .main-header-content {
    top: 40%;
  }
  .main-header-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.85);
  }
  .main-header img {
    height: 500px;
    object-fit: contain;
    object-position: right;
  }
}
/* ===== メインビジュアル スマホ対応 ===== */
@media (max-width: 768px) {
  /* --- mainvisual responsive --- */
  .mainvisual {
    position: relative;
    overflow: hidden;
  }
  .mainvisual img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }
  .mainvisual .hero-textbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 80%;
    padding: 1rem;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    overflow-y: auto;
  }
}

.map-responsive {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9比率 */
  overflow: hidden;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* ===== ハンバーガーメニューの線をロゴカラーに ===== */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%233E2723' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.hero-textbox a {
  color: inherit;
  text-decoration: none;
}

/* Optionally, to specifically target .tel a inside .hero-textbox: */
.hero-textbox .tel a {
  color: #fff;
  text-decoration: none;
}