/* 全体の背景とフォント */
body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* ヘッダー・フッターの背景は別途指定（ここでは何も設定していない） */
.site-header {
  background-color: #333;
  padding: 10px 0 0;
}

.site-footer {
  background-color: #333;
  color: white;
  padding: 20px;
}

/* メインコンテンツ全体に背景グラデーションを適用 */
.main-content {
  background: linear-gradient(to right, #ff9900, white 10%, white 90%, #ff9900);
}

/* セクション内の余白だけ残す（背景は親で一括） */
section {
  padding: 40px 0;
}

/* コンテンツの中央寄せ用コンテナ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  flex-wrap: wrap;
}

/* レスポンシブ対応：縦並び */
@media (min-width: 768px) {
  .sp {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .pc {
    display: none !important;
  }
}

.site-header {
  width: 100%;
  background: #ff9900;
  /* background: radial-gradient(ellipse at center bottom, #fdd9a0 0%, #f7941e 100%); */
  /* background: linear-gradient(to bottom, #ff9900, #fdd9a0); */
  color: white;
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: relative;
}

.logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: flex;
}

.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.3s;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1100;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  display: block;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: #e6a600;
    flex-direction: column;
    padding-top: 60px;
    transition: transform 0.3s ease;
    transform: translateX(100%);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  }

  .header-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .menu-toggle:checked ~ .header-nav {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .logo {
    margin-right: auto;
  }
}

/* li に下線アニメーション */
.nav-item {
  padding-bottom: 10px; /* 下線と文字の間にスペースを確保 */
  background-image: linear-gradient(#ffffff, #ffffff);
  background-size: 0 2px; /* ← 太さ2pxに */
  background-position: bottom right;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease-out, background-position 0.3s ease-out;
}

.nav-item:hover {
  background-size: 100% 2px;
  background-position: bottom left;
}

.hero {
  padding: 0;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* お知らせボックス */
.notice-box {
  border: 1px solid #2b6da5;
  width: 100%;
  max-width: 1140px; /* 幅調整にあわせて変更済み */
  margin: 0 auto;
  font-family: "Segoe UI", sans-serif;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  position: relative;
  padding: 1em 2em; /* 枠内の内側余白：上下1文字、左右2文字分 */
}

/* ラベルの位置 */
.notice-title {
  background-color: #2b6da5;
  color: white;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  position: absolute;
  top: -12px;
  left: 1em; /* 枠内余白に合わせる */
}

/* 各お知らせ項目 */
.notice-content {
  font-size: 16px;
  color: #333;
  margin: 1em 0; /* 上下1行分の間隔 */
}

/* ご挨拶項目 */
.greeting-content {
  font-size: 16px;
  color: #333;
  margin: 1em 0; /* 上下1行分の間隔 */
}

/* ご挨拶ボックス */
.greeting-box {
  border: 1px solid #a52b72;
  width: 100%;
  max-width: 1140px; /* 幅調整にあわせて変更済み */
  margin: 0 auto;
  font-family: "Segoe UI", sans-serif;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  position: relative;
  padding: 1em 2em; /* 枠内の内側余白：上下1文字、左右2文字分 */
}

/* ご挨拶のラベルの位置 */
.greeting-title {
  background-color: #a52b72;
  color: white;
  padding: 6px 12px;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  position: absolute;
  top: -12px;
  left: 1em; /* 枠内余白に合わせる */
}

/* 事業内容 */
.service-div{
  flex-direction: column;
}

.service-div h2{
  margin-bottom: 20px;
  font-weight: bold;
}

/* 事業内容　テーブル */
.service-detail{
  width: 75%;
}

.service-detail th{
  vertical-align: middle;
  text-align: right;
}

.service-detail th,.service-detail td{
  padding: 10px;
  border: 1px solid #dddddd;
}

.service-detail th.service-buy{
  background-color: #f0f8ff;
}

.service-detail th.service-custom{
  background-color: #fff8dc;
}

.service-detail th.service-maintenance{
  background-color: #f5f5f5;
}

.service-detail th.service-inspection{
  background-color: #ebe6ff;
}

.service-detail th.service-insurance{
  background-color: #fff0f5;
}

.service-detail th.service-care{
  background-color: #f0fff0;
}

.service-detail th.service-rsdaikou {
  background-color: #FBB040;
}

a.link {
    text-decoration: underline;
}


/* 事業内容テーブルレスポンシブ対応 */
@media (max-width: 768px) {
  /* .service-detail th{
    text-align: center;
  }

  .service-detail th,.service-detail td{
    display: block;
    border-bottom: 1px solid #dddddd;
  } */

  .service-detail{
    border: 1px solid #dddddd;
    border-bottom: none;
  }

  .service-detail th{
    text-align: center;
  }

  .service-detail th,.service-detail td{
    display: block;
    border: none;
    border-bottom: 1px solid #dddddd;
  }
}

/* 各お知らせ項目 */
.greeting-content {
  font-size: 16px;
  color: #333;
  margin: 1em 0; /* 上下1行分の間隔 */
}

/* 行ごとに分けた構造（上3つ、下2つ） */
.service-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* 各サービスカード */
.service-item {
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  padding: 1em;
  border: 1px solid gray;
  border-radius: 5px;
  background-color: white;
  box-shadow: 3px 3px 3px;
}

.top-row .service-item {
    width: calc(100%/3 - 24px);
}

.bottom-row .service-item {
    width: calc(100%/2 - 24px);
}


.service-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
}

.image-layer {
  position: relative;
  width: 100%;
  height: 308px;
  overflow: hidden;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.service-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px 0;
  color: #333;
  text-align: left;
  border-bottom: 1px solid #ccc; /* 線を追加 */
  padding-bottom: 6px;
}

.service-description {
  font-size: 16px;
  line-height: 1.6;
  margin: 12px 0 0 0;
  color: #555;
  text-align: left;
}

/* レスポンシブ対応：縦並び */
@media (max-width: 768px) {
  .top-row .service-item,
  .bottom-row .service-item {
    width: 100%;
  }
}

.link .link-message {
  width: 100%;
  text-align: center;
  margin-bottom: 1em;
}
.link .container {
  justify-content: space-around;
}

.link .container a {
  display: block;
}

.link .container a img {
  width: 300px;
}

/* 背景画像付きセクション */
.reservation-section {
  background-image: url("../img/top-cta-background.png"); /* ← 画像名を差し替えてください */
  background-size: cover;
  background-position: top;
  padding: 60px 0 20px;
  color: white;
  position: relative;
}

/* 背景に薄い色を重ねる */
.reservation-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.overlay {
  position: relative;
  z-index: 1;
  text-align: center;
}

.overlay > .container > * {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.reservation-message .lead {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.reservation-message .sub {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.business-hours {
  background-color: #d6efff;
  color: #333;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 30px;
  font-size: 16px;
  max-width: 400px;
}

.reservation-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}

.btn {
  display: inline-block;
  padding: 20px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  width: 260px;
  text-align: center;
  line-height: 1.4;
  color: white;
}

.btn .sub {
  font-size: 16px;
  font-weight: normal;
  display: block;
  margin-top: 4px;
  color: white;
}

.btn-red {
  background-color: #d9534f;
}

.btn-blue {
  background-color: #5bc0de;
}

.caution-message {
  margin-top: 2em;
}

.caution-message a {
  text-decoration-line: underline;
}


/* スマホ対応 */
@media (max-width: 600px) {
  .btn {
    width: 100%;
  }
}

.caution-section {
  padding: 40px 0;
}

.caution-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.caution-item {
  text-align: left;
  font-family: "Segoe UI", sans-serif;
  padding: 1em;
  border: 1px solid gray;
  border-radius: 5px;
  background-color: white;
  box-shadow: 3px 3px 3px;
}

.top-row .caution-item {
    width: calc(100%/3 - 24px);
}

.bottom-row .caution-item {
    width: calc(100%/2 - 24px);
}

.caution-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
}

.caution-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 8px;
  color: #333;
  border-bottom: 1px solid #ccc; /* タイトル下の線 */
  padding-bottom: 6px;
}

.caution-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 12px 0 0;
}

/* マーカー風強調 */
.highlight {
  background-color: #fff3a0;
  padding: 0 4px;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .caution-grid {
    flex-direction: column;
    align-items: center;
  }

  .top-row .caution-item,
  .bottom-row .caution-item {
    width: 100%;
  }
}

.price-section {
  padding: 40px 0;
  font-family: "Segoe UI", sans-serif;
}

@media (max-width: 768px) {
  .price-section {
    background-color: #fff;
  }
}

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 24px;
}


.tab-2 {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
    max-width: 1140px;
    margin: auto;
    justify-content: center;
}

.tab-2 > label {
    flex: 1 1;
    order: -1;
    opacity: .5;
    min-width: 70px;
    max-width: 200px;
    padding: 0.5em 1em;
    border-radius: 5px 5px 0 0;
    background-color: #f9be3b;
    color: #fff;
    font-size: 1.5em;
    text-align: center;
    cursor: pointer;
}

.tab-2 > label:hover {
    opacity: .8;
}

.tab-2 input {
    display: none;
}

.tab-2 > div {
    display: none;
    width: 100%;
    padding: 1.5em 1em;
}

.tab-2 label:has(:checked) {
    opacity: 1;
}

.tab-2 label:has(:checked) + div {
    display: block;
}


.price-table-wrapper {
  overflow-x: auto;
}

.price-table-area {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.price-table {
  font-size: 16px;
  text-align: left;
  margin-right: 1em;
}

.price-table+.last {
  margin-right: 0;
}


.price-table th,
.price-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  background-color: #f2f2f2;
}

.price-table thead {
  background-color: #f2f2f2;
}

@media (min-width: 768px) {
  .price-table tbody tr:nth-child(n+1):nth-child(-n+4):nth-of-type(odd) td {
    background-color: #FF66FF;
  }

  .price-table tbody tr:nth-child(n+1):nth-child(-n+4):nth-of-type(even) td {
    background-color: #FFCCFF;
  }

  .price-table tbody tr:nth-child(n+5):nth-child(-n+7):nth-of-type(odd) td {
    background-color: #FFFF66;
  }

  .price-table tbody tr:nth-child(n+5):nth-child(-n+7):nth-of-type(even) td {
    background-color: #FFFFCC;
  }

  .price-table tbody tr:nth-child(n+8):nth-child(-n+12):nth-of-type(odd) td {
    background-color: #F7C7AC;
  }

  .price-table tbody tr:nth-child(n+8):nth-child(-n+12):nth-of-type(even) td {
    background-color: #FBE2D5;
  }
}

@media (max-width: 768px) {
  .price-table tbody tr:nth-child(n+1):nth-child(-n+10):nth-of-type(odd) td {
    background-color: #FF66FF;
  }

  .price-table tbody tr:nth-child(n+1):nth-child(-n+10):nth-of-type(even) td {
    background-color: #FFCCFF;
  }

  .price-table tbody tr:nth-child(n+11):nth-child(-n+20):nth-of-type(odd) td {
    background-color: #FFFF66;
  }

  .price-table tbody tr:nth-child(n+11):nth-child(-n+20):nth-of-type(even) td {
    background-color: #FFFFCC;
  }

  .price-table tbody tr:nth-child(n+21):nth-child(-n+30):nth-of-type(odd) td {
    background-color: #F7C7AC;
  }

  .price-table tbody tr:nth-child(n+21):nth-child(-n+30):nth-of-type(even) td {
    background-color: #FBE2D5;
  }
}

.price-notes {
  margin: 0 auto 1em;
  padding: 0 1em;
  max-width: 1140px;
}

.price-box {
  margin: 0 auto 2em;
  background: white;
  border: 1px solid #ccc;
  padding: 16px;
  flex: 1 1 48%; /* 横2つで収まるよう調整 */
  min-width: 300px;
  max-width: 540px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.price-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

.price-detail-table {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
}

.price-detail-table td {
  padding: 6px 8px;
  border-top: 1px solid #eee;
}

.certificate-section {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.certificate-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 16px;
  font-family: "Yu Mincho", serif;
  text-align: center;
}

.certificate-table {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
  font-size: 18px;
  font-family: "Yu Mincho", serif;
  border: 1px solid #000;
  background-color: white;
}

.certificate-table th,
.certificate-table td {
  border: 1px solid #000;
  padding: 10px;
  text-align: left;
}


/* 会社概要 */
.company_div{
  flex-direction: column;
}

.company_div h2{
  margin-bottom: 20px;
  font-weight: bold;
}

/* 会社概要テーブル */
.company-detail{
  width: 75%;
}

.company-detail th{
  background-color: #fff3d4;
  text-align: right;
  vertical-align: middle;
}

.company-detail th,td{
  padding: 10px;
  border: 1px solid #dddddd;
}


/* 会社概要テーブルレスポンシブ対応 */
@media (max-width: 768px) {
  .company-detail{
    border: 1px solid #dddddd;
    border-bottom: none;
  }

  .company-detail th{
    text-align: center;
  }

  .company-detail th,.company-detail td{
    display: block;
    border: none;
    border-bottom: 1px solid #dddddd;
  }
}


.footer-section {
  background-color: #f9f9f9;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  color: #333;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 0;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-column {
  flex: 1;
  min-width: 280px;
}

.company-info {
  padding: 0 1em;
}

.footer-column p {
  margin: 0 0 12px;
  line-height: 1.6;
}

/* 区切り線 */
.info-separator {
  border: none;
  border-top: 1px solid #ccc;
  margin: 16px 0;
}

.tel {
  font-size: 22px;
  color: #0078d4;
  font-weight: bold;
  margin: 8px 0;
}

.contact-card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-card p {
  margin: 8px 0;
}

.contact-button {
  display: inline-block;
  background-color: #5bc0de;
  color: white;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 16px;
  text-align: center;
  line-height: 1.4;
  width: 100%;
}

.contact-button span {
  font-weight: normal;
  font-size: 15px;
  display: block;
  margin-top: 4px;
}

.footer-bottom {
  background-color: #eee;
  padding: 12px 0;
  text-align: center;
  font-size: 15px;
  color: #666;
}



