/* --------------------------------
  サイト固有のスタイル
----------------------------------- */

/* 基本設定とフォント設定 */
.gothic {
  font-family: 'Noto Sans JP', sans-serif;
}
.mincho {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-title .sub-title {
  display: block;
  font-family: 'Noto Sans JP', sans-serif; /* サブタイトルはゴシックに */
  font-size: 1.4rem;
  font-weight: 900;
  margin-top: 5px;
  color: #3787ff;
}
.btn {
  display: inline-block;
  background: #c00;
  color: #fff;
  padding: 8px 20px;
  font-weight: bold;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.btn.large {
  padding: 15px 40px;
  font-size: 1.8rem;
}
.btn:hover {
  opacity: 0.8;
}

.page-title {
  background-image: url(../images/common/under_bg.jpg);
  background-size: cover;
  padding-top: 60px;
  padding-bottom: 60px;
}
.page-title h1 {
  font-size: 5.5rem;
  color: #fff;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, .15);
}
.page-title .sub-title {
  font-size: 2.0rem;
  display: block;
  text-shadow: 3px 3px 4px rgba(0, 0, 0, .15);
}

/* ヘッダー */
.header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  /* Flexboxで左右両端に要素を配置 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}
.logo {
  max-width: 260px;
  display: flex; /* ロゴのマークとテキストを横並びに */
  align-items: center;
  gap: 8px; /* マークとテキストの間の余白 */
  text-decoration: none;
  color: #333;
  margin-left: 50px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 30px; /* ナビとボタンの間を広げる */
}
.gnav ul {
  display: flex; /* ナビゲーション項目を横並びに */
  gap: 28px;
  list-style: none; /* リストの黒点を削除 */
}
.gnav a {
  font-size: 1.4rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}
.gnav a:hover {
  color: #c00;
}
.gnav a::after {
  display: none;
}
header .btn {
  background: #ff4452;
  color: #fff;
  padding: 25px 85px;
  font-size: 1.4rem;
  font-weight: bold;
  white-space: nowrap;
  transition: opacity 0.3s;
  position: relative;
}
header .btn::before {
  content: "";
  width: 23px;
  height: 17px;
  background-image: url(../images/common/ico-mail.png);
  background-size: contain;
  display: inline-block;
  transform: translateY(4px);
  margin-right: 10px;
}


/* ===============================================
  スマホ用ハンバーガーメニュー (CSSのみで制御)
=============================================== */

/* ボタン自体のスタイル */
.menu-btn {
  display: none; /* pcnoクラスで制御されるが念のため */
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1002;
}
@media (max-width: 767px) {
  .menu-btn {
    display: block;
  }
}
.menu-btn span {
  display: block;
  position: absolute;
  left: 5px;
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: 0.3s;
}
.menu-btn span:nth-of-type(1) { top: 10px; }
.menu-btn span:nth-of-type(2) { top: 19px; }
.menu-btn span:nth-of-type(3) { bottom: 10px; }

/* メニューが開いた時のボタンのスタイル（X印） */
body.open .menu-btn span:nth-of-type(1) { top: 19px; transform: rotate(45deg); }
body.open .menu-btn span:nth-of-type(2) { opacity: 0; }
body.open .menu-btn span:nth-of-type(3) { top: 19px; transform: rotate(-45deg); }

/* スマホ用ナビゲーションメニューのスタイル */
.header-right.smno {
  /* スマホでは通常非表示(common.css)だが、JSでbody.openがついたら表示 */
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -5px 0 10px rgba(0,0,0,0.1);
  padding-top: 100px;
  z-index: 1001;
  transition: right 0.5s;
  
  /* PC用のflex設定を上書き */
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
body.open .header-right.smno {
  display: flex; /* display:noneを上書きして表示 */
  right: 0;
}
.header-right.smno .gnav {
  width: 100%;
}
.header-right.smno .gnav ul {
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 0 20px;
}
.header-right.smno .gnav li {
  border-bottom: 1px solid #ddd;
}
.header-right.smno .gnav a {
  display: block;
  padding: 20px 10px;
}
.header-right.smno .btn {
  margin: 30px auto 0;
  padding: 15px 30px;
}



/* メインビジュアル */
.hero {
  position: relative;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .hero-text {
      position: absolute;
      top: 50%;
      left: 62%;
      transform: translate(-50%, -50%);
      width: 60%;
      max-width: 1100px;
      text-align: right;
  }
  .hero-text img {
    width: 80%; /* スマホでは少し大きめに */
    max-width: 400px;
  }

  header {
    padding: 15px;
  }
  .logo {
    max-width: 160px;
    display: flex; /* ロゴのマークとテキストを横並びに */
    align-items: center;
    gap: 8px; /* マークとテキストの間の余白 */
    text-decoration: none;
    color: #333;
    margin-left: 0;
  }

  .page-title {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .page-title h1 {
    font-size: 3.5rem;
  }
  .page-title .sub-title {
    font-size: 1.4rem;
  }
}

/* 事業内容 */
.business-content {
  background: #fff8e1;
}
.business-container {
  gap: 40px;
}


/* レスポンシブ */
@media (min-width: 768px) {
  .business-text { flex: 1; }
  .business-image { flex: 1; }
}

/* レスポンシブ */
@media (max-width: 767px) {
  .business-text {
    width: 100%;
  }
  .business-image {
    width: 100%;
  }
}

/* 各サービス */
.service-category-title {
  background: #005a9b;
  color: #fff;
  padding: 8px 20px;
  font-size: 1.8rem;
  font-weight: bold;
  display: inline-block;
}
.service-item {
  gap: 40px;
}
.service-item .service-image {
  flex: 0 0 40%;
  border-radius: 8px;
  overflow: hidden;
}
.service-item .service-text { flex: 1; }
.service-text h4 {
  border-left: none;
  padding-left: 0;
}
.service-item-vertical .service-image img {
  border-radius: 8px;
}

/* 会社概要 */
.company-section {
  background: #f4f4f4;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th, 
.company-table td {
  border: none; /* 既存の枠線をすべてリセット */
  border-bottom: 1px solid #787878; /* 下線だけを指定 */
  padding: 20px 15px; /* 少し余白を調整 */
  text-align: left;
}
.company-table th {
  border-bottom: 1px solid #232323; /* 下線だけを指定 */
}
.company-table th {
  font-weight: bold;
  width: 25%;
}
/* アクセス */
iframe {
  width: 100%;
  height: 450px;
}

/* お問い合わせ */
.contact-section {
  background: url('/images/top/contact_bg.jpg') center/cover no-repeat;
  padding: 60px 0;
  position: relative;
}
.contact-section .section-title,
.contact-section .section-title .sub-title,
.contact-section .contact-item {
  color: #fff;
}
.contact-container {
  position: relative;
}
.contact-wrapper {
  gap: 20px;
}
.contact-item,
.contact-item {
  width: 38.1818181818%;
  max-width: 420px;
}



/* フッター */
.footer {
  background: #fff; /* 背景を白に変更 */
  color: #333; /* 文字色を黒に変更 */
  padding: 60px 0;
  border-top: 1px solid #eee;
}
.footer-logo {
  display: inline-block;
}
.footer-logo img {
  max-width: 180px; /* ロゴ画像のサイズを調整 */
  height: auto;
  opacity: 1; /* 不透明に */
}
.footer-info {
  font-size: 1.4rem;
  line-height: 1.8;
}
.copyright {
  color: #555;
}

/* ページトップボタン */
#page-top {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: rgba(192, 0, 0, 0.8);
  color: #fff;
  font-size: 2rem;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s;
}
#page-top:hover {
  background: #c00;
}

/* レスポンシブ */
@media (max-width: 767px) {
  .section {
    padding: 60px 0;
  }
  .header-right {
      width: 100%;
      height: 100vh;
      background: #fff;
      position: fixed;
      top: 0;
      right: -100%;
      transition: .3s;
  }
  .open .header-right {
      right: 0%;
      transition: .3s;
  }
  .header-right {
      display: block;
  }
  .gnav ul {
      border-top: #333 1px solid;
      text-align: center;
      display: block;
      gap: 0;
      list-style: none;
      margin-top: 70px;
  }
  .gnav a {
      font-size: 1.4rem;
      display: block;
      padding: 20px;
      border-bottom: #333 1px solid;
  }
  header .btn {
      max-width: 70%;
      text-align: center;
      display: block;
      margin: 15px auto;
  }
  .business-container,
  .service-item {
    flex-direction: column !important;
  }
  .service-item .service-image {
    flex-basis: auto;
    width: 100%;
  }
  .company-section {
    padding-bottom: 0;
  }
  .company-table {
      border-bottom: #aaa 1px solid;
  }
  .company-table th, .company-table td {
      border-bottom: 0;
  }
  .company-table th {
    width: auto;
    display: block;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .company-table td {
    display: block;
  }
  .company-table tr + tr > th {
    border-top: 1px solid #aaa;
  }
  /* アクセス */
  .company-section iframe {
    width: 100%;
    height: 250px;
  }
  .contact-item, .contact-item {
      width: 55%;
      max-width: 420px;
  }
}