/* --- service.css --- */
/* このファイルは「商品・サービス」に関連するページの共通スタイルを定義します。 */
/* 対象ページ: index.html, orca.html, consulting.html, software.html, development.html */

.header-container,
main,
.footer-small-container {
  padding-inline: 0px;
}

/* === 1. パンくずリストのスタイル === */
.breadcrumb {
  /* 左右に余白を設定 */
  padding-left: 20px;
  padding-right: 20px;
}

/* === 2. 商品・サービス一覧ページ (index.html) のスタイル === */

/* サービス紹介セクション全体のコンテナ */
.services {
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 0;
}

/* 各サービス（ORCA, コンサルティングなど）ごとのセクション */
.service-section {
  margin-bottom: 60px;
}

/* 最後のサービスセクションの下マージンを削除 */
.service-section:last-child {
  margin-bottom: 0;
}

/* 画像とテキストを左右に分割するためのコンテナ */
.service-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* 左側の画像エリア */
.service-image {
  flex: 0 0 auto;
  width: 300px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

/* ORCAセクションの画像にのみ、薄い黒枠を追加 */
.service-section:first-child > .service-content > .service-image {
  outline: 1.5px solid rgba(0, 0, 0, 0.3);
  outline-offset: 0;
}

/* 画像のサイズをコンテナに合わせて調整 */
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 右側のテキストエリア */
.service-text {
  flex: 1;
  padding-left: 0;
  padding-top: 0;
}

/* 各サービスのタイトル（青いグラデーションの背景） */
.service-title {
  background: linear-gradient(135deg, #0f789c, #38a6cc);
  color: white;
  padding: 14px 20px;
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 8px;
  display: inline-flex; /* テキストを中央揃えにするために flex に変更 */
  align-items: center; /* テキストを垂直方向に中央揃え */
  min-height: 58px; /* テキストが2行になった場合でも高さが揃うように最小高さを設定 */
  width: 90%; /* 幅を90%に設定 */
  text-align: left;
  position: relative; /* 矢印アイコンの配置基準 */
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* タイトル右側の矢印アイコン */
.arrow-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%); /* 上下中央揃え */
  width: 32px;
  height: 32px;
}

/* タイトル全体を囲むリンク */
.service-title-link {
  text-decoration: none;
  color: inherit;
}

/* 画像を囲むリンク */
.service-image a {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* 影を追加 */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 画像リンクのホバー効果 */
.service-image a:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ORCAロゴは枠線があるため、画像リンクの影を無効化 */
.service-section:first-child .service-image a,
.service-section:first-child .service-image a:hover {
  box-shadow: none;
}

/* 各サービスの説明文 */
.service-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px; /* color: #555; は継承されるため削除 */
  color: #555;
  max-width: 1000px;
  padding-left: 20px; /* タイトルとのインデントを揃える */
}

/* 最後の説明文の下マージンを削除 */
.service-description:last-child {
  margin-bottom: 0;
}

/* モバイル表示用の画像（デスクトップでは非表示） */
.mobile-image {
  display: none;
}

/* --- 2.1. index.html レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
  /* 画像とテキストを縦並びに変更 */
  .service-content {
    flex-direction: column;
    gap: 20px;
  }

  .hamburger-menu {
    display: block;
    width: 40px;
    height: 30px;
    position: absolute;
    z-index: 20;
    top: 2.7%;
    right: 5%;
  }

  /* デスクトップ用の画像を非表示 */
  .service-image {
    display: none;
  }

  /* モバイル用の画像を表示 */
  .mobile-image {
    display: block;
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 20px auto;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
  }

  /* モバイル用画像のサイズ調整 */
  .mobile-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* ORCAロゴのスマホ表示での枠線調整 */
  .service-section:first-child .mobile-image {
    /* ORCAロゴのコンテナにのみ適用 */
    outline: 1.5px solid rgba(0, 0, 0, 0.3); /* デスクトップ表示と同様の枠線を追加 */
    height: 200px; /* 他の画像コンテナと同じ高さを指定 */
    display: flex; /* Flexboxを有効化 */
    align-items: center; /* 垂直方向の中央揃え */
    justify-content: center; /* 水平方向の中央揃え */
    padding: 20px; /* 内側に余白を追加 */
    box-sizing: border-box; /* paddingを含めて高さを計算 */
  }

  /* ORCAロゴの画像自体のサイズ調整 */
  .service-section:first-child .mobile-image img {
    width: 100%; /* 幅はコンテナに合わせる */
    height: auto; /* 高さは自動調整 */
  }

  .service-text {
    padding-left: 0;
    text-align: left;
  }

  /* タイトルの幅を100%に */
  .service-title {
    font-size: 20px;
    padding: 12px 18px;
    width: 100%;
    height: 70px; /* 高さを固定して揃える */
    display: flex; /* Flexboxを有効化 */
    align-items: center; /* テキストを垂直方向に中央揃え */
  }

  .service-description {
    font-size: 16px;
    padding-left: 0;
  }
}

/* === 3. 各サービス詳細ページの共通スタイル === */

/* サイドバーとメインコンテンツを囲むコンテナ */
.main-content {
  margin: 0 auto;
  padding: 0 0 60px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* 左側のサイドバー */
.sidebar {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  height: fit-content; /* コンテンツの高さに合わせる */
}

/* サイドバーのタイトル ("商品・サービス") */
.sidebar-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #38a6cc; /* 下線 */
  padding-bottom: 15px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* サイドバーの各メニュー項目 */
.sidebar-item {
  display: block;
  padding: 15px 45px 15px 15px;
  font-size: 16px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative; /* アイコンの配置基準 */
  border-radius: 8px;
  border: none;
  outline: none;
}

/* ホバー時のスタイル */
.sidebar-item:hover {
  background-color: #e0f7fa;
  color: #0f789c;
}

/* 現在表示しているページのメニュー項目 (アクティブ状態) */
.sidebar-item.active {
  background-color: #38a6cc;
  color: white;
  font-weight: bold;
}

/* メニュー項目右側のアイコン (>) */
.sidebar-icon {
  position: absolute;
  right: 15px;
  height: 22px;
  background-image: url('img/circleright-b.svg'); /* アイコン画像 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.3s ease;
}

/* アクティブ状態のアイコンを白に変更 */
.sidebar-item.active .sidebar-icon {
  filter: brightness(0) invert(1);
}

/* サイドバーのリンク */
a.sidebar-link {
  text-decoration: none;
  color: inherit;
}

/* 右側のメインコンテンツエリア */
.content-area {
  flex: 1;
  max-width: 1000px;
}

.page-title {
  font-size: 42px;
  font-weight: 600;
  color: #222; /* color: #222; は継承されるため削除 */
  margin-top: 0;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: 1px;
}

/* メイン画像やロゴを囲むセクション */
.feature-section {
  text-align: center;
  margin: 50px 0;
}

/* メイン画像 */
.feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.feature-subtitle {
  /* ページタイトル下のサブタイトル */
  font-size: 32px;
  font-weight: 700;
  color: #333; /* color: #333; は継承されるため削除 */
  text-align: center;
  margin: 40px 0;
  line-height: 1.5;
}

/* 詳細な説明文のセクション */
.feature-description {
  margin: 50px 0;
}

/* 説明文の段落 */
.feature-description p {
  font-size: 18px;
  line-height: 1.9;
  color: #555; /* color: #555; は継承されるため削除 */
  margin-bottom: 30px;
}

/* ボタンを囲むセクション */
.feature-button-section {
  text-align: center;
  margin: 60px 0;
}

/* 「ORCA特設サイト」「問い合わせはこちら」などのボタン */
.site-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f789c, #38a6cc);
  color: #fff;
  border: none;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(56, 166, 204, 0.4);
}

/* ボタンのホバー効果 */
.site-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(56, 166, 204, 0.6);
}

/* ボタン内のアイコン (外部リンクなど) */
.button-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* レスポンシブ対応 */
/* --- 3.1. 詳細ページ レスポンシブ対応 (1024px以下) --- */
@media (max-width: 1024px) {
  /* サイドバーとメインコンテンツを縦並びに変更 */
  .main-content {
    flex-direction: column;
    gap: 30px;
  }

  .sidebar {
    flex: none;
    width: 100%; /* 幅を100%に */
    order: 2; /* 表示順をメインコンテンツの後に */
  }

  .content-area {
    order: 1; /* 表示順をサイドバーの前に */
  }
}

/* --- 3.2. 詳細ページ レスポンシブ対応 (768px以下) --- */
@media (max-width: 768px) {
  .main-content {
    padding: 0 20px 20px;
    gap: 20px;
  }

  .sidebar {
    display: none; /* スマホではサイドバーを非表示 */
  }

  /* 各要素のフォントサイズなどを調整 */
  .page-title {
    font-size: 32px;
  }

  /* ページ説明文のフォントサイズを調整 */
  .corporate-description {
    font-size: 18px;
    text-align: center;
  }

  .orca-subtitle {
    font-size: 24px;
  }

  .orca-description p {
    font-size: 16px;
  }

  .orca-site-button {
    font-size: 16px;
    padding: 15px 30px;
  }

  /* 事業所セクションのレスポンシブ対応 */
  .office-info {
    width: 100%; /* 親要素の幅を基準にするため追加 */
    flex-direction: column; /* 縦並びにする */
    gap: 20px; /* 縦並びになった際の要素間の余白 */
  }

  .office-map {
    height: auto;
    width: calc(100vw - 40px); /* 画面幅から左右の余白(20px * 2)を引いた幅に設定 */
    aspect-ratio: 1 / 1; /* 縦横比を1:1（正方形）に設定 */
    flex: auto; /* flexの比率を自動にリセット */
  }

  .office-details {
    font-size: 16px;
    padding: 0; /* 不要な左右の余白を削除して左寄せに修正 */
    flex: auto; /* flexの比率を自動にリセット */
  }
}

/* === 4. システム開発実績ページ (development.html) のスタイル === */
/* ページ導入文 */
.development-intro {
  text-align: center;
  margin-bottom: 50px;
  font-size: 18px;
  color: #555; /* color: #555; は継承されるため削除 */
  line-height: 1.8;
}

/* 実績リストのグリッドコンテナ */
.development-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* 各実績のカードスタイル */
.development-item-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* カードのホバー効果 */
.development-item-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* カード内のコンテンツボディ */
.development-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.development-item-title {
  /* 実績のタイトル */
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px; /* color: #333; は継承されるため削除 */
  color: #333;
}

.development-item-description {
  /* 実績の説明文 */
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
  flex-grow: 1; /* color: #555; は継承されるため削除 */
  color: #555;
}

/* === 5. ORCAページ (orca.html) の個別スタイル === */

/* orca.htmlのロゴを囲むセクション */
.feature-section.orca-logo {
  height: 300px; /* consulting.htmlの画像と同じ高さを指定 */
  max-width: 450px; /* 枠線の最大幅を調整 */
  margin: 50px auto; /* 他のページと余白を合わせるため上下に50px追加 */
  display: flex; /* Flexboxを有効化 */
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 水平方向の中央揃え */
  padding: 20px; /* 内側に余白を追加 */
  box-sizing: border-box; /* paddingを含めて高さを計算 */
  outline: 1.5px solid rgba(0, 0, 0, 0.3); /* index.htmlと同様の枠線を追加 */
  border-radius: 12px; /* consulting.htmlの画像と同様に角を丸くする */
}

/* orca.htmlのロゴ画像 */
.feature-image.orca-logo {
  height: 150px; /* 画像の高さを指定 */
  width: auto; /* 画像の幅を自動調整 */
  object-fit: contain;
}

/* === 6. 会社概要ページ (corporate.html / orca.html) の個別スタイル === */

/* ページ上部の画像 */
.corporate-main-image {
  width: 100%;
  height: auto;
  margin-bottom: 30px;
  /* マスク効果の追加 */
  border-radius: 8px; /* 角を丸くする */
  transition: all 0.3s ease; /* ホバー効果のためのトランジション */
}

/* ページ説明文 */
.corporate-description {
  margin-bottom: 50px;
  text-align: left;
  font-size: 22px;
}

.corporate-description2 {
  margin-bottom: 50px;
  text-align: center;
  font-size: 22px;
}

.corporate-description3 {
  margin-bottom: 50px;
  text-align: left;
  font-size: 22px;
}

.signature {
  margin-bottom: 50px;
  text-align: right;
  font-size: 18px;
}

/* 会社概要テーブル */
.corporate-info {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
}

.corporate-info th,
.corporate-info td {
  padding: 15px;
  vertical-align: middle;
  border-bottom: 1px solid #ddd; /* デフォルトの横線 */
}

.corporate-info th {
  background-color: transparent; /* 背景色をなくす */
  font-weight: bold;
  text-align: left;
  width: 25%;
  border-right: none; /* 縦線を消す */
  border-bottom: 2px solid #38a6cc; /* 項目名側の横線を太く、色を変更 */
}

/* 事業所セクションタイトル */
.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 50px;
  margin-bottom: 30px;
  border-bottom: 2px solid #38a6cc;
  padding-bottom: 10px;
}

/* 事業所情報 */
.office-info {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.office-map {
  flex: 3; /* 領域の比率を増やす */
  height: 350px; /* 高さは維持 */
}

.office-map img {
  width: 100%;
  border: 1px solid #ddd;
}

/* Google Mapの埋め込みスタイル */
.office-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.office-details {
  flex: 2; /* 領域の比率を減らす */
}

.office-details h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.office-details p {
  margin: 5px 0;
}

/* 地図へのリンク */
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* アイコンとテキストの間隔 */
  padding: 8px 12px;
  border: 1px solid #38a6cc;
  border-radius: 4px;
  color: #38a6cc;
  text-decoration: none;
  font-weight: bold;
  transition:
    background-color 0.3s,
    color 0.3s;
  margin-top: 10px; /* 上に少し余白を追加 */
}

.map-link:hover {
  background-color: #38a6cc;
  color: #fff;
}

.map-link-icon {
  width: 20px;
  height: 20px;
}

/* 会社概要テーブル内のリンクに下線を追加 */
.corporate-info td a {
  text-decoration: underline;
}

/* === 7. 会社概要テーブル レスポンシブ対応 (768px以下) === */
@media (max-width: 768px) {
  .corporate-info {
    border: none; /* テーブル全体の枠線を削除 */
  }

  .corporate-info thead {
    display: none; /* theadは非表示に */
  }

  .corporate-info tr {
    display: block; /* trをブロック要素に */
    border-bottom: 1px solid #ddd; /* 区切り線として設定 */
  }

  .corporate-info tr:last-child {
    border-bottom: none; /* 最後の項目の区切り線は不要なため削除 */
    margin-bottom: 0;
    /* padding-bottom: 0; */
  }

  .corporate-info th {
    display: none; /* thは非表示にする */
  }

  .corporate-info td {
    display: block; /* td, thをブロック要素に */
    width: 100%;
    text-align: left; /* テキストを左揃えに */
    padding: 10px 0; /* 上下の余白を確保 */
    border: none;
  }

  /* 各行の最後のセルにのみ、下の余白を追加して項目間のスペースを確保 */
  .corporate-info td:last-of-type {
    padding-bottom: 20px;
  }

  .corporate-info td::before {
    content: attr(data-label); /* data-label属性の値を表示 */
    font-weight: bold;
    display: block;
    padding: 0; /* ::before自体のpaddingは不要 */
    margin-bottom: 5px; /* 見出しと内容の間の余白を少し確保 */
    background-image: linear-gradient(#38a6cc, #38a6cc), linear-gradient(#ddd, #ddd);
    background-size:
      30% 2px,
      100% 1px;
    background-repeat: no-repeat;
    background-position:
      left bottom,
      left bottom;
  }
}

/* 組織図画像の表示サイズ調整 */
.org-chart-image {
  width: 50%; /* デスクトップでは半分程度 */
  display: block;
  margin: 0 auto 30px; /* 中央寄せ */
}

@media (max-width: 768px) {
  .org-chart-image {
    width: 100%; /* スマホ等のモバイル端末では横幅いっぱい */
  }
}
