@import url(common.css);

/* ここからメインビジュアルの書式 */
.main-img {
  width: 100%;
  height: 70vh;
}

.main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/*こまでメインビジュアルの書式 */

/* ここからメインの内容の書式 */
.container {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.business-box {
  margin-bottom: 80px;
}

/* 見出しタブ */
.business-title {
  display: inline-block;
  position: relative;
  z-index: 2;

  padding: 15px 90px 15px 25px;
  background: #4370a9;
  color: #fff;

  font-size: 24px;
  font-weight: bold;
  line-height: 1;

  transform: translateY(15px);

  /* 見出し全体を一つの図形にする */
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%);
}
/* タブ右側の斜め */
.business-title::after {
  display: none;
}
/* 本体 */
.business-content {
  position: relative;
  background: #dceaf7;
  min-height: 260px;
  padding: 50px 70px;
  overflow: hidden;
  box-sizing: border-box;
}
/* 左下の斜め */
.business-content::before {
  content: "";
  position: absolute;

  left: -2px;
  bottom: -2px;

  width: 60px;
  height: 60px;

  background: #fff;

  clip-path: polygon(0 100%, 100% 100%, 0 0);
}
/* 右上の斜め */
.business-content::after {
  content: "";
  position: absolute;

  top: -2px;
  right: -2px;

  width: 60px;
  height: 60px;

  background: #fff;

  clip-path: polygon(100% 0, 100% 100%, 0 0);
}
.business-content p,
.business-content ul {
  margin: 0;
}
.business-content li {
  margin-bottom: 18px;
  font-size: 18px;
  line-height: 1.8;
}
/* ここまでメインの内容の書式 */

/* ここからセクション1の書式 */
.business-content ul {
  padding-left: 100px;
}
/* ここまでセクション1の書式 */

/* ここからセクション2の書式 */

/* ここまでセクション2の書式 */

/* ここからセクション3の書式 */
.company-title {
  margin-bottom: 50px;
}
/* ここまでセクション3の書式 */
/* 会社概要表 */
.company {
  width: 80%;
  margin: 30px auto; /* 表を中央に配置 */
  border-collapse: separate; /* collapse → separate に変更 */
  border-spacing: 4px 2.5px; /* ←セル同士の間隔 */
}
.company th {
  width: 220px;
  padding: 18px;
  background: #e6ebf5; /*左側(タイトル)の背景色*/
  border: 1px solid #ccc;
  text-align: left;
  font-weight: bold;
}

.company td {
  padding: 18px;
  background: #f0f3f9; /*右側(内容)の背景色*/
  border: 1px solid #ccc;
  line-height: 1.8;
}
/* ここまで会社概要表 */

/* ここまでメインの内容の書式 */

/* 詳しく見るボタン */
.button-area {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;
  padding-right: 20px;
}

.detail-btn {
  display: inline-block;
  padding: 12px 30px;

  background: #4370a9;
  color: #fff;
  text-decoration: none;

  font-size: 16px;
  font-weight: bold;

  border-radius: 999px;
  transition: 0.3s;
}

.detail-btn:hover {
  background: #2f5f95;
}
.detail-btn span {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.detail-btn:hover span {
  transform: translateX(5px);
}
.submenu-toggle {
  display: none;
}

/* ==========================
   スマホ表示
========================== */
@media screen and (max-width: 768px) {
  /* メインビジュアルの高さ調整 */
  .main-img {
    height: 260px;
  }
  /* 画像を枠いっぱい表示 */
  .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* ==========================
     事業紹介タイトル調整
  ========================== */
  .business-title {
    /* 文字サイズをスマホ用に縮小 */
    font-size: 18px;

    /* 左右の余白を調整 */
    padding: 12px 55px 12px 18px;

    /* 本文ボックスに少し重ねる */
    transform: translateY(10px);
  }
  /* ==========================
     事業内容ボックス調整
  ========================== */

  .business-content {
    /* スマホでは高さを自動調整 */
    min-height: auto;

    /* 内側の余白を縮小 */
    padding: 30px 20px;
  }
  /* ==========================
     事業内容リスト調整
  ========================== */

  .business-content ul {
    padding-left: 10px;
  }

  .business-content li {
    font-size: 16px;

    margin-bottom: 12px;
  }
}
