/* =========================
   1. 共通設定
========================= */

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: sans-serif;
  padding-top: 100px;
  margin: 0;
}

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

/* 共通セクション余白 */
.section {
  padding: 80px 0;
}

/* 共通背景色 */
.gray {
  background: #f0f0f0;
}

/* 共通テキスト */
.lead {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.accent {
  color: #2b6cb0;
  white-space: nowrap;
}

/* 共通グリッド・カード */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border: 1px solid #ddd;
}

/* id指定 */
#services {
  padding-top: 10px;
}

/* =========================
   2. ヘッダー・ナビゲーション
========================= */

header {
  border-bottom: 1px solid #ccc;
  padding: 14px 0;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.logo {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  width: 300px;
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav > li {
  position: relative;
}

.main-nav li:last-child {
  margin-left: auto;
}

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

.main-nav a:hover {
  opacity: 0.7;
}

.menu-label {
  color: #333;
  font-weight: 500;
  display: block;
  padding: 10px 0;
  cursor: default;
}

/* ドロップダウン */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.dropdown li {
  margin: 0;
}

.dropdown a {
  padding: 10px 16px;
  white-space: nowrap;
}

.dropdown a:hover {
  background: #f5f7fa;
  opacity: 1;
}

.has-dropdown:hover .dropdown {
  display: block;
}

.has-dropdown > a::after,
.has-dropdown > .menu-label::after {
  content: "▼";
  font-size: 10px;
  margin-left: 6px;
  opacity: 0.6;
}

/* =========================
   3. ヒーロー・メインビジュアル
========================= */

.hero {
  background:
    linear-gradient(to right, white 45%, rgba(255, 255, 255, 0)),
    url("../images/hero.jpg") right/cover no-repeat;
  padding: 140px 0;
}

.hero1 {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 40%,
      rgba(255, 255, 255, 0.3) 70%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/hero3.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 140px 0;
}

.hero2 {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 40%,
      rgba(255, 255, 255, 0.3) 70%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/hospital.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 140px 0;
}

.hero3 {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.7) 40%,
      rgba(255, 255, 255, 0.3) 70%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/service.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 140px 0;
}

.hero5 {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/workers.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 150px 0;
}

.hero-ma {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/m-and-a.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 150px 0;
}

.thanks1 {
  background:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0) 40%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("../images/thanks.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  padding: 150px 0;
}

.hero-inner,
.hero-content {
  max-width: 650px;
}

.hero-text h1 {
  font-size: 46px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 18px;
  color: #444;
  margin-bottom: 20px;
}

.hero5-text h1,
.thanks1-text h1 {
  font-size: 35px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  line-height: 1.4;
  margin-bottom: 20px;
}

.thanks1-text p {
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.hero-logo img {
  width: 220px;
  margin: 20px 0;
}

.hero-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* =========================
   4. コンセプト・共通コンテンツ
========================= */

.concept-section {
  padding-top: 10px;
}

.concept-wrap {
  display: flex;
  align-items: center;
  gap: 60px;
}

.concept-text {
  flex: 1;
}

.concept-text p {
  line-height: 2;
}

.concept-image {
  display: flex;
  align-items: center;
}

.concept-image img {
  width: 130px;
}

.symbol {
  width: 150px;
  display: block;
  margin: 20px auto;
}

.structure-img {
  width: 100%;
  max-width: 800px;
  display: block;
  margin: 50px auto;
}

/* =========================
   5. 会社概要・テーブル
========================= */

.company-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #b4b3b3;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid #bbb;
  padding: 16px 15px;
}

.company-table th {
  width: 230px;
  text-align: left;
  background: #f5f7fa;
  font-weight: bold;
  color: #333;
  vertical-align: middle;
}

.company-table td {
  vertical-align: middle;
}

.company-table a {
  color: #2b6cb0;
  text-decoration: none;
}

.company-table a:hover {
  opacity: 0.7;
}

/* =========================
   6. 実績紹介ページ
========================= */

.page-section {
  padding: 50px 0;
  background: #fff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.result-card-detail {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 40px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.result-card-detail h3 {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #222;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.result-meta span {
  display: inline-block;
  padding: 8px 14px;
  background: #eef4fb;
  color: #2f6db5;
  border-radius: 999px;
  font-size: 0.9rem;
}

.result-summary-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  padding: 25px;
  background: #f8fafc;
  border-radius: 12px;
}

.summary-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #2f6db5;
}

.summary-item p {
  margin: 0;
  line-height: 1.8;
  color: #333;
}

.result-body h4 {
  font-size: 1.2rem;
  margin: 35px 0 12px;
  padding-left: 14px;
  border-left: 4px solid #2f6db5;
  color: #222;
}

.result-body p {
  line-height: 2;
  color: #333;
  margin-bottom: 18px;
}

/* =========================
   7. CTA
========================= */

.cta-section {
  padding: 80px 0;
  background: #f5f7fa;
}

.cta-box {
  text-align: center;
  background: #fff;
  padding: 50px 30px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.cta-box h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #222;
}

.cta-box p {
  line-height: 1.9;
  color: #555;
  margin-bottom: 30px;
}

.cta-group { 
  display: flex;
  justify-content: center;
  gap: 30px; /*ボタン同士の間隔をあける*/
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 14px 24px;
  max-width: 280px;
  background: #2f6db5;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  margin: 0;
}

.cta-button:hover {
  opacity: 0.85;
}

/* =========================
   8. 事業案内ページ
========================= */

.service-intro {
  margin-bottom: 20px;
}

.service-intro p {
  line-height: 2;
  color: #333;
  margin-bottom: 16px;
}

.service-problems {
  margin-top: 20px;
  padding: 30px;
  background: #f8fafc;
  border-radius: 12px;
}

.service-problems h2 {
  margin-top: 10px;
}

.service-problems h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: #222;
}

.service-problems ul {
  margin: 0;
  padding-left: 1.2em;
}

.service-problems li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: #333;
}

.service-block-section {
  background: #fff;
}

.service-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.service-anchor-nav a {
  display: inline-block;
  padding: 10px 16px;
  background: #eef4fb;
  color: #2f6db5;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: 0.3s;
}

.service-anchor-nav a:hover {
  opacity: 0.85;
}

.service-detail-card {
  padding: 36px;
  margin-bottom: 30px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 120px;
}

.service-detail-card h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  color: #222;
}

.service-lead {
  font-size: 1.05rem;
  color: #2f6db5;
  font-weight: bold;
  margin-bottom: 18px;
}

.service-detail-card p {
  line-height: 2;
  color: #333;
  margin-bottom: 12px;
}

.recruit-guide-card {
  background: #f9fbfd;
}

.service-link a {
  color: #2f6db5;
  text-decoration: none;
  font-weight: bold;
}

.service-flow-section {
  background: #f5f7fa;
}

.flow-text {
  max-width: 900px;
  line-height: 2;
  color: #333;
}

/* =========================
   9. ボタン
========================= */

.btn-submit {
  padding: 16px;
}

.btn-back {
  display: inline-block;
  padding: 12px 35px;
  text-decoration: none;
  border: 1px solid #2c5d7c;
  color: #2c5d7c;
  border-radius: 6px;
  background: rgba(44, 93, 124, 0.05);
  transition: 0.3s;
}

.btn-back:hover {
  background: #2c5d7c;
  color: #fff;
}

/* =========================
   10. フッター
========================= */

.site-footer {
  background: #f5f7fa;
  text-align: center;
  padding: 30px 0;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #ddd;
}

/* =========================
   11. 共通パーツ
========================= */

.hero-buttons {
  display: flex;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

nav {
  position: relative;
}

/* =========================
   12. レスポンシブ（スマホ・タブレット）
========================= */

@media screen and (max-width: 768px) {

  /* ロゴ */
  .logo-img {
    width: 200px;
  }

  /* ヒーロー文字 */
  .hero-text h1 {
    font-size: 1.6rem;
    line-height: 1.5;
  }

.hero-text p {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-inner {
    max-width: 100%;
    padding: 0 16px;
  }

  /* ヒーローボタン */
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  /* 実績 */
  .result-card-detail {
    padding: 25px;
  }

  .result-summary-box {
    grid-template-columns: 1fr;
  }

  .result-card-detail h3 {
    font-size: 1.4rem;
  }

  /* CTA */
  .cta-box h2 {
    font-size: 1.4rem;
  }

  /* 事業案内 */
  .service-detail-card {
    padding: 24px;
  }

  .service-detail-card h3 {
    font-size: 1.3rem;
  }

  .service-anchor-nav {
    gap: 10px;
  }

  .service-anchor-nav a {
    font-size: 0.9rem;
    padding: 9px 14px;
  }

  /* ハンバーガーメニュー */
  .main-nav {
    display: none;
  }

  .main-nav.active {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    padding-left: 12px;
    margin-top: 6px;
  }

  .main-nav .has-dropdown.open .dropdown {
    display: block;
  }

  .main-nav .dropdown-toggle,
  .main-nav .menu-label {
    display: block;
    cursor: pointer;
    padding: 8px 0;
  }

  /* チェックボックス */
  .checkbox-grid label {
    display: grid;
    grid-template-columns: 14px auto;
    align-items: start;
    column-gap: 6px;
    line-height: 1.5;
  }

  .checkbox-grid input[type="checkbox"] {
    transform: none;
    width: 12px;
    height: 12px;
    margin: 2px 0 0 0;
  }
}

/* =========================
   13. M & A
========================= */

.ma-support-section {
  padding: 60px 0;
  background: #f8fbff;
}

.ma-support-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1f2d3d;
  text-align: center;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
  text-align: left;
}

.ma-support-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ma-support-item {
  background: #fff;
  border: 1px solid #d9e3ec;
  border-radius: 12px;
  padding: 20px;
  line-height: 1.8;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.ma-case-section {
  padding: 60px 0;
  background: #ffffff;
}

.ma-case-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: #1f2d3d;
}

.ma-case-card {
  max-width: 900px;
  margin: 0 auto;
  background: #f8fbff;
  border: 1px solid #d9e3ec;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.ma-case-meta {
  margin-bottom: 12px;
}

.ma-case-meta span {
  display: inline-block;
  font-size: 0.9rem;
  color: #2c5d87;
  background: #eaf3fb;
  padding: 6px 12px;
  border-radius: 999px;
}

.ma-case-card h3 {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #1f2d3d;
}

.ma-case-card p {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
  margin: 0;
  text-align: left;
}

@media screen and (max-width: 768px) {

  .ma-case-section {
    padding: 60px 0;
  }

  .ma-case-section h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .ma-case-card {
    padding: 24px 20px;
  }

  .ma-case-card h3 {
    font-size: 1.15rem;
  }

  .ma-case-card p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .ma-support-section {
    padding: 60px 0;
  }

  .ma-support-section h2 {
    font-size: 1.5rem;
  }

  .section-intro {
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 0 16px;
    margin-bottom: 30px;
    text-align: left;
  }

  .ma-support-list {
    grid-template-columns: 1fr;
  }

  .ma-support-item {
    padding: 20px;
  }
}