/*
組込みソフト開発 専用CSS
Ctrl+Fで「01 メイン画像」「04 対応領域」などの日本語見出しを検索。
00 共通 / 01 メイン / 02 コンセプト / 03 相談例 / 04 対応領域
05 開発体制 / 06 ハードとソフト / 07 開発の流れ / 08 強み / 09 CONTACT
padding＝内側余白、margin＝外側余白、gap＝項目間隔。
各項目にスマホ用設定を併記。ヘッダー・フッターはcommon.css。
*/

/* #region 00 共通設定・本文幅・見出し
======================================== */
.em-page { color: #102b43; background: #fff; }
.em-container { width: min(1500px, calc(100% - 80px)); margin: 0 auto; }
.em-section { padding: 24px 0 12px; }
.em-page h2 { font: 500 clamp(28px, 2.7vw, 40px)/1.5 "Yu Mincho", "YuMincho", serif; letter-spacing: .03em; margin-bottom: 12px; }
.em-label { color: #5481ba; font-size: 12px; font-weight: 600; letter-spacing: .14em; margin-bottom: 5px; }
.em-copy { font-size: 15px; line-height: 1.95; letter-spacing: .04em; color: #405775; }
.em-section-heading { display: flex; align-items: baseline; gap: 28px; margin-bottom: 12px; }
.em-section-heading h2 { flex-shrink: 0; margin-bottom: 0; }
.em-section-heading > p { font-size: 13px; color: #405775; }
.em-main-background { background: linear-gradient(115deg, #fff, #edf7ff); }
.em-page :focus-visible { outline: 3px solid #00a6a6; outline-offset: 5px; }
.em-page section[id] { scroll-margin-top: 20px; }
.em-skip { position: absolute; top: -100px; left: 16px; padding: 12px 20px; background: #fff; z-index: 200; }
.em-skip:focus { top: 10px; }
@media (max-width: 1100px) {
    .em-section-heading { display: block; }
    .em-section-heading > p { margin-top: 8px; }
}
@media (max-width: 767px) {
    .em-container { width: calc(100% - 40px); }
    .em-section { padding: 30px 0 15px; }
    .em-page h2 { font-size: 28px; }
    .em-copy { font-size: 14px; }
    .em-pc-break { display: none; }
}
/* #endregion */

/* #region 01 メイン画像・組込みソフト開発
======================================== */
.em-hero { min-height: 510px; color: #fff; background: #041d35 url("../images/embedded/組み込み開発と回路測定のテックワークスペース.png.webp") center / cover no-repeat; }
.em-hero-inner { position: relative; min-height: 510px; padding: 25px 0 35px; }
.em-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .07em; margin-bottom: 25px; }
.em-hero-label { font-size: 12px; letter-spacing: .16em; margin-bottom: 12px; }
.em-hero h1 { font: 500 clamp(34px, 3.8vw, 58px)/1.4 "Yu Mincho", "YuMincho", serif; letter-spacing: .04em; margin-bottom: 12px; }
.em-hero-subtitle { font: 500 clamp(22px, 2.5vw, 36px)/1.5 "Yu Mincho", "YuMincho", serif; letter-spacing: .03em; }
.em-accent { width: 150px; height: 3px; background: #00b4e1; margin: 22px 0; }
.em-hero-copy { max-width: 730px; font-size: 15px; line-height: 1.95; letter-spacing: .03em; }
.em-hero-message { font-size: 10px; line-height: 1.7; letter-spacing: .13em; margin-top: 20px; }
.em-hero-side { position: absolute; bottom: 30px; right: 0; font-size: 11px; line-height: 1.8; letter-spacing: .1em; text-shadow: 0 1px 5px #001323; }
@media (max-width: 1100px) {
    .em-hero { background-image: linear-gradient(90deg, #031d3599, #031d3533), url("../images/embedded/組み込み開発と回路測定のテックワークスペース.png.webp"); }
    .em-hero-copy { max-width: 65%; }
}
@media (max-width: 767px) {
    .em-hero { background-image: linear-gradient(90deg, #031d35ed, #031d35b3), url("../images/embedded/組み込み開発と回路測定のテックワークスペース.png.webp"); }
    .em-hero h1 { font-size: clamp(27px, 6.8vw, 40px); }
    .em-hero-subtitle { font-size: 24px; }
    .em-hero-copy { max-width: 100%; font-size: 14px; }
    .em-breadcrumb { font-size: 10px; }
    .em-hero-side { display: none; }
}
/* #endregion */

/* #region 02 コンセプト・ハードとソフト
======================================== */
.em-concept { background: linear-gradient(90deg, #fffffff5, #ffffffc9 45%, #ffffff00 85%), url("../images/embedded/青白い余白とコーディング作業場.png.webp") center / cover no-repeat; }
.em-concept-inner { padding: 32px 0; min-height: 245px; }
.em-concept .em-copy { max-width: 1180px; }
@media (max-width: 767px) {
    .em-concept { background-image: linear-gradient(90deg, #fffffff5, #ffffffe6), url("../images/embedded/青白い余白とコーディング作業場.png.webp"); }
    .em-concept-inner { padding: 35px 0; }
}
/* #endregion */

/* #region 03 相談例・3つの画像カード
======================================== */
.em-situation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.em-situation-card { min-width: 0; background: #fff; border: 1px solid #dfeaf4; }
.em-situation-card > img { width: 100%; aspect-ratio: 3.4; object-fit: cover; }
.em-situation-content { position: relative; padding: 22px 22px 20px; }
.em-situation-number { position: absolute; top: -34px; left: 12px; background: #fff; border-radius: 8px 8px 0 0; padding: 1px 12px; font: 600 34px/1.5 "Yu Mincho", serif; }
.em-situation-content h3 { font-size: 20px; line-height: 1.5; margin-bottom: 10px; }
.em-situation-content p { font-size: 14px; line-height: 1.85; color: #405775; }
@media (max-width: 1100px) {
    .em-situation-content { padding: 24px 18px 20px; }
    .em-situation-content h3 { font-size: 17px; }
    .em-situation-content p br { display: none; }
}
@media (max-width: 767px) {
    .em-situation-grid { grid-template-columns: 1fr; gap: 24px; }
    .em-situation-content h3 { font-size: 20px; }
}
/* #endregion */

/* #region 04 対応領域・マイコン／FPGA／I/O／通信
======================================== */
.em-area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.em-area-card { min-width: 0; background: #fff; border: 1px solid #e1ecf4; }
.em-area-photo { width: 100%; aspect-ratio: 3; object-fit: cover; }
.em-area-content { padding: 12px 20px 18px; }
.em-area-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.em-area-heading img { width: 40px; height: 40px; object-fit: contain; }
.em-area-heading h3 { font-size: 18px; }
.em-area-content ul { padding-left: 18px; font-size: 14px; line-height: 1.9; color: #405775; }
@media (max-width: 1100px) {
    .em-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .em-area-grid { grid-template-columns: 1fr; gap: 18px; }
}
/* #endregion */

/* #region 05 開発体制・専門エンジニアとの連携
======================================== */
.em-system { margin-top: 20px; background: linear-gradient(90deg, #fffffffa, #ffffffd9 55%, #ffffff00 90%), url("../images/embedded/青白い余白とコーディング作業場.png.webp") center / cover no-repeat; }
.em-system-inner { padding: 28px 0; }
.em-system .em-copy { max-width: 1250px; font-size: 14px; }
@media (max-width: 767px) {
    .em-system { background-image: linear-gradient(90deg, #fffffff5, #ffffffe6), url("../images/embedded/青白い余白とコーディング作業場.png.webp"); }
}
/* #endregion */

/* #region 06 ハードとソフト・5つの連携工程
======================================== */
.em-hardware-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; list-style: none; }
.em-hardware-list li { position: relative; min-width: 0; border: 1px solid #e2ecf5; background: #fff; }
.em-hardware-list img { width: 100%; aspect-ratio: 2.6; object-fit: cover; }
.em-hardware-list h3 { font-size: 16px; text-align: center; padding: 7px 6px; }
.em-hardware-list li:not(:last-child)::after { content: "›"; position: absolute; top: 25%; right: -20px; font-size: 40px; line-height: 1; color: #005783; }
@media (max-width: 900px) {
    .em-hardware-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .em-hardware-list li:nth-child(3n)::after { display: none; }
}
@media (max-width: 600px) {
    .em-hardware-list { grid-template-columns: 1fr; gap: 25px; }
    .em-hardware-list li::after { display: none; }
}
/* #endregion */

/* #region 07 開発の流れ・6工程
======================================== */
.em-flow-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; list-style: none; }
.em-flow-list li { min-width: 0; }
.em-flow-photo { position: relative; overflow: hidden; background: #052741; }
.em-flow-photo img { width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.em-flow-number { position: absolute; top: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; width: 43px; background: #002443ed; border-right: 1px solid #2facce; color: #24c3e0; font-size: 23px; }
.em-flow-list h3 { background: #fff; padding: 8px 5px; font-size: 14px; text-align: center; }
.em-flow-list li > p { font-size: 12px; line-height: 1.8; padding: 10px 12px 0; color: #405775; }
@media (max-width: 1100px) {
    .em-flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 600px) {
    .em-flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .em-flow-number { width: 35px; font-size: 20px; }
    .em-flow-list h3 { font-size: 12px; }
    .em-flow-list li > p { padding-left: 4px; padding-right: 4px; }
    .em-flow-list li > p br { display: none; }
}
/* #endregion */

/* #region 08 選ばれる理由・6つのアイコン
======================================== */
.em-strengths { padding-bottom: 30px; }
.em-strength-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin-top: 18px; }
.em-strength-grid li { min-width: 0; text-align: center; border-left: 1px solid #cbdde9; padding: 5px 12px; }
.em-strength-grid li:last-child { border-right: 1px solid #cbdde9; }
.em-strength-grid img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 14px; }
.em-strength-grid p { font-size: 13px; line-height: 1.8; }
@media (max-width: 1024px) {
    .em-strength-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 0; }
    .em-strength-grid li:nth-child(3n) { border-right: 1px solid #cbdde9; }
}
@media (max-width: 600px) {
    .em-strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .em-strength-grid li:nth-child(3n) { border-right: 0; }
    .em-strength-grid li:nth-child(2n) { border-right: 1px solid #cbdde9; }
    .em-strength-grid p { font-size: 12px; }
}
/* #endregion */

/* #region 09 CONTACT・既存ページと統一
======================================== */
.em-contact {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 65px 0;
  box-sizing: border-box;

  background:
    linear-gradient(
      90deg,
      rgba(0, 17, 34, 0.72) 0%,
      rgba(0, 25, 46, 0.30) 55%,
      rgba(0, 17, 34, 0.18) 100%
    ),
    url("../images/Circuit design/黄金の夕陽と跳ねるイルカの海.png.webp")
    center center / cover no-repeat;

  color: #ffffff;
}

/* コンテンツ全体 */

.em-contact .contact-cta-inner {
  position: relative;
  z-index: 1;

  width: calc(100% - 80px);
  max-width: 1440px;
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

/* 左側 */

.em-contact .contact-cta-content {
  max-width: 780px;
  flex: 1;
}

.em-contact-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.em-contact .contact-cta-title {
  margin: 0 0 22px;

  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 500;
  line-height: 1.55;

  color: #ffffff;
}

.em-contact .contact-cta-text {
  margin: 0 0 32px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;

  color: #ffffff;
}

/* ボタン */

.em-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.em-contact-btn {
  min-height: 60px;
  padding: 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;

  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.8);

  font-size: 15px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.em-contact-btn-white {
  background: #ffffff;
  color: #102235;
}

.em-contact-btn-white:hover {
  background: #e7f0f6;
  color: #102235;
}

.em-contact-btn-dark {
  background: rgba(0, 13, 27, 0.78);
  color: #ffffff;
}

.em-contact-btn-dark:hover {
  background: rgba(0, 45, 75, 0.85);
  color: #ffffff;
}

/* 右側の英語 */

.em-contact-message {
  flex-shrink: 0;
  margin: 0;

  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.16em;
}

/* スマートフォン */

@media (max-width: 767px) {

  .em-contact {
    min-height: auto;
    padding: 65px 0;

    background-position: 62% center;
  }

  .em-contact .contact-cta-inner {
    width: calc(100% - 40px);
    display: block;
  }

  .em-contact .contact-cta-title {
    font-size: 27px;
  }

  .em-contact .contact-cta-text {
    font-size: 14px;
  }

  .em-contact-buttons {
    flex-direction: column;
  }

  .em-contact-btn {
    width: 100%;
    min-height: 56px;
  }

  .em-contact-message {
    margin-top: 35px;
    font-size: 10px;
  }

}



/* #endregion */
@media (prefers-reduced-motion: reduce) {
    .em-page * { scroll-behavior: auto !important; transition: none !important; }
}


/* #region 画像と番号の重なり解消・相談例カード
   数字を画像の下、見出しの上に置く。PC・スマホ共通。
======================================== */
body .em-situation-content {
    padding: 20px 22px 24px;
}
body .em-situation-number {
    position: static;
    display: block;
    width: fit-content;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
    line-height: 1.2;
}
/* #endregion */
