/* 共通設定 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

h1 {
  font-size: 48px;
  font-weight: bold;
  color: #fff;
}

h2 {
  font-size: 32px;
  font-weight: normal;
  color: #ffffff;
  margin: 0;
}

h3 {
  font-size: 24px;
  font-weight: normal;
  color: #333;
}

/* ヘッダー */
.header {
  background-color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid #ddd;
  position: fixed;
  width: 100%;
  Z-INDEX: 999;
  top: 0;
  left: 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo img {
  height: 80px;
}

.contact-info {
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
  padding: 0 10px;
}

.contact-info .phone {
  color: #0085B2 !important;
  font-size: 35px;
  font-weight: bold;
  margin-left: 10px;
}


/*
.nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.nav {
  border-top: 1px solid #eee;
  background: rgba(255, 255, 255, 0.7);
  transition: background 0.3s ease;
}

.nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  flex: 1;
  text-align: center;
  transition: background 0.3s;
  position: relative;
}

.nav li::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: orange;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 0;
}

.nav a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
}

.nav li.active a {
  border-bottom: 2px solid #FFCC99;
}

.nav a:hover {
  background: #f5f5f5;
}
*/


/* メインナビゲーション */
.main-nav {
  border-top: 1px solid #eee;
  transition: background 0.3s ease;
  position: relative;
  /* これを追加：子要素の絶対配置の基準にする */
}

.main-nav .nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: block;
  /* PC時の既定値：後でメディアクエリで切替 */
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 0;
  max-width: 1200px;
}

.main-nav li {
  text-align: center;
  flex: 1;
  position: relative;
  transition: background 0.3s;
}

.main-nav a {
  display: block;
  padding: 1rem;
  text-decoration: none;
  color: #333;
  /* font-weight: bold;*/
  position: relative;
  z-index: 1;
}

.main-nav li::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: orange;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  z-index: 0;
}

.main-nav li:hover {
  background: #f5f5f5;
}

.main-nav li:hover::after {
  width: 100%;
}

.main-nav li.active a {
  border-bottom: 3px solid orange;
}


/* ハンバーガーメニュー用 */
.nav-toggle {
  position: absolute;
  right: .5rem;
  top: 1rem;
  width: 40px;
  height: 40px;
}

.nav-toggle {
  --bar-h: 2px;
  --gap: 10px;
  position: absolute;
  right: .5rem;
  top: -3.8rem;
  width: 45px;
  height: 45px;
  display: flex;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 100;
  display: none;
}

.nav-toggle span {
  position: absolute;
  left: 6px;
  /* 端から少し内側にして見た目を整える */
  right: 6px;
  top: 50%;
  height: var(--bar-h);
  background: #0085B2;
  border-radius: 2px;
  transform-origin: 50% 50%;
  transition: transform .25s ease, opacity .2s ease;
}

/* ハンバーガーメニューのアニメーション */
/* 初期位置：中央から上下へ等距離に配置 */
.nav-toggle span:nth-child(1) {
  transform: translateY(calc(-50% - var(--gap)));
}

.nav-toggle span:nth-child(2) {
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(calc(-50% + var(--gap)));
}

/* アクティブ時：中央で交差させるだけ */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}

/* レスポンシブ時のメニュー */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav .nav-container {
    display: none;
    /* まず隠す */
    position: absolute;
    top: 100%;
    /* .main-navの直下にドロップ */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 99;
    padding: 0;

  }

  .main-nav .nav-container.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    max-width: none;
  }

  .main-nav li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    flex: none;
    /* 等幅を解除して自然な幅に */
    text-align: left;
  }

  .main-nav a {
    font-size: 1rem;
    line-height: 1.5rem;
    padding: 1rem .5rem;
    text-align: center;
  }

  .main-visual {
    margin-top: 5rem !important;
  }

  .sub-page {
    margin-top: 5rem !important;
  }

  .header .contact-info {
    display: none;
  }

  .header {
    height: 80px;
  }

  .header-inner {
    height: 80px;
  }
}

.SP_footer_btn {
  position: relative;
  z-index: 9999;
}

.btn-wrap.btn-wrap-pc-sp {
  position: fixed;
  width: 100%;
}

.SPbtn,
a.SPbtn,
button.SPbtn {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;

}

.btn-wrap-pc-sp {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;

  bottom: 0;
  position: sticky;

  /*テスト表示用*/
  max-width: 100vw;
  margin: 0 auto;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  display: none;
}

a.btn-pc-sp {
  line-height: 1.4;
  width: 49.5%;
  padding: .8rem;
  color: #ffff;
  z-index: 1000;

}

a.btn-pc-sp--contact {
  color: #fff;
  background: #00AF72;
}

a.btn-pc-sp--tel {
  color: #fff;
  background: #0085B2;
}

.fa-position-right {
  position: absolute;
  top: calc(50% - 0.5em);
  right: 1rem;
}

a.btn-pc-sp {
  width: 49.5%;
  padding-right: 1rem;
  padding-left: 1rem;
  color: #ffff;
}

a.btn-pc-sp--contact {
  color: #fff;
}

a.btn-pc-sp--contact.btn-pc-sp--2 {
  border-bottom: 5px solid #008556;
  background: #00AF72;
}

a.btn-pc-sp--tel.btn-pc-sp--2 {
  border-bottom: 5px solid #007096;
  background: #0085B2;
}

a.btn-pc-sp .number {
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/******/

/* メインビジュアル */
.main-visual {
  position: relative;
  overflow: hidden;
  height: 80vh;
  margin-top: 10.2rem;
}

.main-visual .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}


.slider-inner {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
  /* ← 追加 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.main-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 5;
  text-shadow: 1px 2px 3px #808080;
  width: 80%;
}

.main-copy h2 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.main-copy p {
  font-size: 18px;
}

/* サブページ */
.sub-page {
  margin-top: 10.2rem;
}


.sub-page .main-visual {
  height: 20vh !important;
}

.sub-page .main-copy h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.sub-page h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #333;
}


/* table */
.environment-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.environment-table th,
.environment-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.environment-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.outline th {
  width: 30%;
  min-width: 96px;
}

.outline td {
  text-align: left;
  padding-left: 20px;
}

.td_2 {
  text-align: left;
  padding-left: 20px;
}

.td_3 {
  text-align: left;
  padding-left: 20px;
}


/* サービス紹介 */

.services {
  background-color: #dfeef8;
  padding: 60px 20px;
}

.services h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0px;
  margin-top: 10px;
}

.services p {
  margin-left: 5px;
  margin-right: 5px;
}

.service-cards {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.card {
  width: 32%;
  background-color: #fff;
  overflow: hidden;
}

.card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 会社案内 */
.company-info {
  background-color: #fff;
  padding: 60px 10px;
  text-align: center;
  line-height: 2;
}

/* 経営理念 */
.philosophy {
  background-color: #f2f2f2;
  padding: 130px 10px;
  text-align: center;
  line-height: 2;
  position: relative;
}

.philosophy h2 {
  position: relative;
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

.philosophy h2::before {
  position: absolute;
  top: calc(50% - 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  content: '';
  background: #b4b4b4;
}

.philosophy h2 span {
  position: relative;
  padding: 0 1em;
  background: #f2f2f2;
}


span.bold {
  font-weight: normal;
  font-size: 1.5rem;
}


.philosophy::after {
  content: '';
  position: absolute;
  bottom: -50px;
  /* 三角形の高さ */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-top: 50px solid #f2f2f2;
}


/* CTA */
.cta {
  background-color: #ffffff;
  padding: 130px 10px;
}

.cta-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background-color: #0085B2;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: normal;
}

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* アイコンとテキストの間隔 */
  background-color: #0085B2;
  color: #ffffff;
  padding: 10px 80px;
  border-radius: 8px;
  font-weight: normal;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.mail-btn:hover {
  background-color: #02b0eb;
}

.mail-btn img {
  width: 30px;
  height: 30px;
  display: inline-block;
}

.btn:hover {
  background-color: #02b0eb;
  transition: 0.3s;
}

.phone-call .phone {
  font-size: 45px;
  font-weight: bold;
  color: #0085B2;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.phone-call img {
  width: 55px;
  height: 55px;
  display: inline-block;
}


.phone-call span.hours {
  font-size: 16px;
  font-weight: normal;
  color: #333;
}


/* フッター */
.footer {
  background-color: #0085B2;
  color: #ffffff;
  padding: 20px 10px;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  width: 200px;
  margin-bottom: 30px;
}

.footer-map {
  width: 100%;
  max-width: 450px;
  /* 好みに応じて調整 */
  aspect-ratio: 3 / 2;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer p {
  margin: 10px;
  padding: 0;
}

.footer_ribbon {
  width: 100%;
  background-color: #333;
  text-align: center;
}

.copyright {
  color: #ffffff;
  padding: 15px 0;
  text-align: center;
  margin-top: 0;
  font-size: 12px;
}


@media (max-width: 800px) {

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table.result {
    table-layout: fixed;
    width: 100%;
  }

  .result td {
    word-break: break-word;
    white-space: normal;
  }

  .td_1 {
    width: 15%;
  }
}

/* レスポンシブ対応（スマホ・タブレット） */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .header-inner,
  .footer-inner,
  .service-cards {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-wrap-pc-sp {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .slider,
  .slider-inner,
  .slide {
    width: 100%;
    min-height: 200px;
  }

  .main-copy h2 {
    font-size: 2.8rem;
  }

  .card {
    width: 100%;
    margin-bottom: 20px;
  }

  .phone-call span.hours {
    text-align: center;
  }

  .phone-call .phone {
    font-size: 35px;
    text-align: left;
  }

  .footer-map {
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 2;
  }

  .footer-logo p {
    font-size: 1rem;
  }

  .footer_ribbon p {
    padding-bottom: 75px;

  }
}

@media (max-width: 640px) {
  .service-cards {
    flex-direction: column;
    gap: 0;
  }

  .container {
    text-align: left;
  }

  .card {
    width: 100%;
    margin-bottom: 20px;
  }

  .card-img {
    aspect-ratio: 3 / 1;
  }

  .mail-btn {
    padding: 10px 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: normal;
  }

  .footer-logo {
    margin-bottom: 20px;
  }

  .footer-logo img {
    margin-bottom: 0;
  }
}