/*
回路設計ページ 専用CSS

【編集する場所】Ctrl+Fで番号と日本語の項目名を検索してください。
00 共通設定 / 01 メイン画像 / 02 コンセプト / 03 相談例
04 サービス / 05 工程 / 06 選ばれる理由 / 07 CONTACT

padding＝内側の余白、margin＝外側の余白、gap＝項目間隔。
各項目内の @media はスマートフォン・タブレット用の設定です。
ヘッダー・フッターは common.css を再利用しています。
*/

/* #region 00 共通設定・本文幅・見出し
======================================== */
.cd-page {
    color: #102b43;
    background: #fff;
}

/* 本文全体の横幅・左右余白 */
.cd-container {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
}

/* メイン本文の淡い回路図背景 */
.cd-main-background {
    background:
        linear-gradient(110deg, rgba(255,255,255,.97), rgba(247,251,254,.94)),
        url("../images/Circuit design/青白回路基板ブループリント背景.png.webp") center / cover;
}

/* 各セクションの共通の上下余白 */
.cd-section {
    padding: 55px 0 25px;
}

/* 明朝体の見出し */
.cd-page h2 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

/* CONCEPTなど英語の小見出し */
.cd-label {
    font-family: Georgia, serif;
    color: #496a8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .20em;
    margin-bottom: 12px;
}

/* 見出し下の説明文 */
.cd-copy {
    font-size: 15px;
    line-height: 1.95;
    letter-spacing: .04em;
    color: #425973;
}

.cd-page :focus-visible {
    outline: 3px solid #00a6a6;
    outline-offset: 5px;
}

.cd-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 12px 20px;
    background: #fff;
}

.cd-skip:focus { top: 10px; }

/* スマートフォンの共通設定 */
@media (max-width: 767px) {
    .cd-container { width: calc(100% - 40px); }
    .cd-section { padding: 40px 0 20px; }
    .cd-page h2 { font-size: 28px; }
    .cd-copy { font-size: 14px; }
    .cd-pc-break { display: none; }
}
/* #endregion */

/* #region 01 メイン画像・回路設計
======================================== */
/* 全体の高さ・背景画像 */
.cd-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #061522 url("../images/Circuit design/未来を描く電子回路バナー.png.webp") center / cover no-repeat;
}

/* タイトルエリア：上下余白はpaddingで変更 */
.cd-hero-inner {
    position: relative;
    min-height: 560px;
    padding: 30px 0 40px;
}

/* HOMEから始まるパンくず */
.cd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 11px;
    letter-spacing: .08em;
    color: rgba(255,255,255,.85);
}

.cd-hero-content { max-width: 760px; }

.cd-hero-label {
    font-family: Georgia, serif;
    font-size: 13px;
    letter-spacing: .22em;
    margin-bottom: 8px;
}

/* 「回路設計」の文字サイズ */
.cd-hero h1 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

/* 「アイデアを、動く回路へ。」 */
.cd-hero-subtitle {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(24px, 2.8vw, 40px);
    line-height: 1.5;
    letter-spacing: .05em;
}

/* 青〜緑の線：幅・太さ・上下余白 */
.cd-accent {
    width: 210px;
    height: 3px;
    margin: 24px 0;
    background: linear-gradient(90deg, #0086d7, #00a6a6 55%, #63b76c);
}

.cd-hero-lead {
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: .03em;
}

/* 左下と右下の英語 */
.cd-hero-message, .cd-hero-side {
    font-family: Georgia, serif;
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: .18em;
}

.cd-hero-message { margin-top: 22px; }
.cd-hero-side { position: absolute; right: 0; bottom: 36px; }

@media (max-width: 1100px) {
    .cd-hero-content { max-width: 65%; }
    .cd-hero-lead { font-size: 15px; }
}

@media (max-width: 767px) {
    .cd-hero {
        background-image:
            linear-gradient(90deg, rgba(3,16,28,.88), rgba(3,16,28,.62)),
            url("../images/Circuit design/未来を描く電子回路バナー.png.webp");
        background-position: center, 62% center;
    }
    .cd-hero-inner { padding: 25px 0 45px; }
    .cd-breadcrumb { font-size: 10px; margin-bottom: 42px; }
    .cd-hero-content { max-width: 100%; }
    .cd-hero h1 { font-size: 52px; }
    .cd-hero-subtitle { font-size: clamp(22px, 5.5vw, 30px); }
    .cd-hero-lead { font-size: 15px; }
    .cd-hero-side { display: none; }
}
/* #endregion */

/* #region 02 コンセプト・構想から量産まで
======================================== */
.cd-concept {
    background:
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.94) 42%, rgba(255,255,255,.30) 75%, transparent),
        url("../images/Circuit design/青白回路基板ブループリント背景.png.webp") center / cover no-repeat;
}

.cd-concept-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 300px;
    padding: 38px 0;
}

.cd-concept-content { max-width: 920px; }
.cd-concept .cd-copy { font-size: 14px; font-weight: 600; }
.cd-concept-message {
    flex-shrink: 0;
    color: #fff;
    font: 11px/2 Georgia, serif;
    letter-spacing: .18em;
    text-shadow: 0 1px 5px #00223b;
}

@media (max-width: 1100px) {
    .cd-concept-message { display: none; }
}
@media (max-width: 767px) {
    .cd-concept { background-image: linear-gradient(90deg, #fff, #ffffffe6), url("../images/Circuit design/青白回路基板ブループリント背景.png.webp"); }
    .cd-concept-inner { display: block; padding: 40px 0; }
}
/* #endregion */

/* #region 03 相談例・3つの画像カード
======================================== */
.cd-situation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 26px;
}

.cd-situation-card {
    min-width: 0;
    background: linear-gradient(120deg, #f0f7fc, #fff);
    border: 1px solid #dce7f0;
    overflow: hidden;
}

/* 元画像の写真部分だけを表示。画像ファイル自体は加工しません。 */
.cd-photo {
    position: relative;
    overflow: hidden;
    background: #05223a;
}

.cd-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
}

/* 比率を小さくすると画像枠が縦長になります。文字入り部分に注意。 */
.cd-situation-photo { aspect-ratio: 3.6 / 1; }

.cd-situation-content {
    position: relative;
    padding: 20px 25px 25px 85px;
}

/* 左側の01〜03 */
.cd-situation-number {
    position: absolute;
    top: -22px;
    left: 12px;
    background: #f9fcff;
    border-top: 2px solid #9abacc;
    padding: 0 8px;
    color: #102b43;
    font: 44px/1.5 "Yu Mincho", serif;
}

.cd-situation-content h3 {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cd-situation-content p {
    font-size: 15px;
    line-height: 1.9;
    color: #425973;
}

@media (max-width: 1100px) {
    .cd-situation-content { padding: 22px; }
    .cd-situation-number { position: relative; display: inline-block; top: -35px; left: -10px; margin-bottom: -28px; font-size: 34px; }
    .cd-situation-content h3 { font-size: 20px; }
    .cd-situation-content p { font-size: 14px; }
}
@media (max-width: 767px) {
    .cd-situation-grid { grid-template-columns: 1fr; gap: 22px; }
    .cd-situation-content { padding: 18px 22px 24px 80px; }
    .cd-situation-number { position: absolute; top: -20px; left: 12px; margin: 0; }
}
/* #endregion */

/* #region 04 サービス・対応する4つの回路設計
======================================== */
.cd-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.cd-service-card { min-width: 0; background: #fff; border: 1px solid #dce7f0; }
.cd-service-photo { aspect-ratio: 2.6 / 1; }
.cd-service-content { padding: 15px 20px 20px; }
.cd-service-content h3 { font-size: clamp(16px, 1.5vw, 22px); text-align: center; margin-bottom: 10px; }
.cd-service-content ul { padding-left: 18px; font-size: 14px; line-height: 1.9; color: #304b68; }

@media (max-width: 1100px) {
    .cd-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-service-content h3 { font-size: 21px; }
}
@media (max-width: 600px) {
    .cd-service-grid { grid-template-columns: 1fr; }
    .cd-service-content { padding: 20px 24px 24px; }
}
/* #endregion */

/* #region 05 工程・設計から基板製作まで
======================================== */
.cd-process-figure { margin: 24px 0 0; }
.cd-process-banner { width: 100%; height: auto; }

/* スマートフォンでは工程を読める文字サイズで表示 */
.cd-process-mobile { display: none; list-style: none; }
@media (max-width: 767px) {
    .cd-process-figure { display: none; }
    .cd-process-mobile { display: grid; gap: 10px; margin-top: 24px; }
    .cd-process-mobile li { display: flex; align-items: center; gap: 22px; padding: 14px 22px; background: linear-gradient(110deg, #051d31, #135278); color: #fff; font-size: 17px; }
    .cd-process-mobile span { font: 27px/1.5 "Yu Mincho", serif; color: #a5dcf0; }
}
/* #endregion */

/* #region 06 選ばれる理由・6つのアイコン
======================================== */
.cd-strengths { padding-top: 25px; padding-bottom: 42px; }
.cd-strength-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin-top: 28px; }
.cd-strength-grid li { min-width: 0; padding: 8px 15px; text-align: center; border-left: 1px solid #cedeea; }
.cd-strength-grid li:last-child { border-right: 1px solid #cedeea; }
.cd-strength-grid img { width: 56px; height: 56px; object-fit: contain; margin: 0 auto 18px; }
.cd-strength-grid p { font-size: 13px; font-weight: 600; line-height: 1.8; }
@media (max-width: 1024px) {
    .cd-strength-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px 0; }
    .cd-strength-grid li:nth-child(3n) { border-right: 1px solid #cedeea; }
}
@media (max-width: 767px) {
    .cd-strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cd-strength-grid li:nth-child(3n) { border-right: 0; }
    .cd-strength-grid li:nth-child(2n) { border-right: 1px solid #cedeea; }
    .cd-strength-grid img { width: 48px; height: 48px; }
    .cd-strength-grid p { font-size: 12px; }
}
/* #endregion */

/* #region 07 CONTACT・お問い合わせ
既存の「新しくつくる」のCONTACTデザインを再利用。
背景画像はCircuit design内のイルカの画像。
======================================== */
.cd-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;
}

/* コンテンツ全体 */

.cd-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;
}

/* 左側 */

.cd-contact .contact-cta-content {
  max-width: 780px;
  flex: 1;
}

.cd-contact-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.cd-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;
}

.cd-contact .contact-cta-text {
  margin: 0 0 32px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;

  color: #ffffff;
}

/* ボタン */

.cd-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.cd-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;
}

.cd-contact-btn-white {
  background: #ffffff;
  color: #102235;
}

.cd-contact-btn-white:hover {
  background: #e7f0f6;
  color: #102235;
}

.cd-contact-btn-dark {
  background: rgba(0, 13, 27, 0.78);
  color: #ffffff;
}

.cd-contact-btn-dark:hover {
  background: rgba(0, 45, 75, 0.85);
  color: #ffffff;
}

/* 右側の英語 */

.cd-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) {

  .cd-contact {
    min-height: auto;
    padding: 65px 0;

    background-position: 62% center;
  }

  .cd-contact .contact-cta-inner {
    width: calc(100% - 40px);
    display: block;
  }

  .cd-contact .contact-cta-title {
    font-size: 27px;
  }

  .cd-contact .contact-cta-text {
    font-size: 14px;
  }

  .cd-contact-buttons {
    flex-direction: column;
  }

  .cd-contact-btn {
    width: 100%;
    min-height: 56px;
  }

  .cd-contact-message {
    margin-top: 35px;
    font-size: 10px;
  }

}


/* #endregion */
@media (prefers-reduced-motion: reduce) {
    .cd-page * { scroll-behavior: auto !important; transition: none !important; }
}


/* #region 画像と番号の重なり解消・相談例カード
   数字を画像の下、見出しの上に置く。PC・スマホ共通。
======================================== */
body .cd-situation-content {
    padding: 20px 22px 24px;
}
body .cd-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 */
