/*
基板製造ページ 専用CSS
Ctrl+Fで「01 メイン画像」などの項目名を検索してください。
00 共通 / 01 メイン画像 / 02 コンセプト / 03 相談例 / 04 サービス
05 製造ネットワーク / 06 製造の流れ / 07 選ばれる理由 / 08 CONTACT
padding＝内側余白、margin＝外側余白、gap＝項目間隔。
各項目の末尾にスマホ用設定をまとめています。
ヘッダー・フッターは common.css を使用しています。
*/

/* #region 00 共通設定・横幅・見出し
======================================== */
.pm-page {
    color: #102b43;
    background: #fff;
}

/* 本文の横幅・左右余白 */
.pm-container {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
}

/* 各項目の上下余白 */
.pm-section { padding: 36px 0 20px; }

.pm-main-background {
    background:
        linear-gradient(110deg, rgba(255,255,255,.97), rgba(243,249,254,.95)),
        url("../images/PCB design/青白回路基板ブループリント背景.png.webp") center / cover;
}

.pm-page h2 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .03em;
    margin-bottom: 14px;
}

/* CONCEPTなどの英語小見出し */
.pm-label {
    color: #447ba6;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .17em;
    margin-bottom: 8px;
}

.pm-copy { font-size: 15px; line-height: 1.95; letter-spacing: .04em; color: #425973; }
.pm-page :focus-visible { outline: 3px solid #00a6a6; outline-offset: 5px; }
.pm-skip { position: absolute; top: -100px; left: 16px; padding: 12px 20px; background: #fff; z-index: 200; }
.pm-skip:focus { top: 10px; }

@media (max-width: 767px) {
    .pm-container { width: calc(100% - 40px); }
    .pm-section { padding: 35px 0 20px; }
    .pm-page h2 { font-size: 28px; }
    .pm-copy { font-size: 14px; }
    .pm-pc-break { display: none; }
}
/* #endregion */

/* #region 01 メイン画像・基板製造
======================================== */
.pm-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #061d34;
}

/* 右側の斜め写真2枚。元画像は加工せずCSSで配置。 */
.pm-hero-photos { position: absolute; inset: 0; }
.pm-hero-photos img { position: absolute; top: 0; height: 100%; object-fit: cover; }
.pm-hero-stack { left: 38%; width: 45%; clip-path: polygon(24% 0, 100% 0, 75% 100%, 0 100%); }
.pm-hero-machine { right: 0; width: 36%; clip-path: polygon(33% 0, 100% 0, 100% 100%, 0 100%); }

/* 左側の文字に重ねる暗いグラデーション */
.pm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #031627 0%, #052a48ef 31%, #052a4870 47%, transparent 64%);
    pointer-events: none;
}

/* タイトルエリア：paddingで上・下の余白を変更 */
.pm-hero-inner { position: relative; z-index: 1; min-height: 560px; padding: 28px 0 38px; }
.pm-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .08em; margin-bottom: 24px; }
.pm-hero-content { max-width: 760px; }
.pm-hero-label { font-size: 12px; letter-spacing: .20em; margin-bottom: 8px; }

/* 「基板製造」の文字 */
.pm-hero h1 { font: 500 clamp(48px, 5vw, 76px)/1.25 "Yu Mincho", "YuMincho", serif; letter-spacing: .12em; margin-bottom: 12px; }
.pm-hero-subtitle { font: 500 clamp(23px, 2.7vw, 38px)/1.5 "Yu Mincho", "YuMincho", serif; letter-spacing: .06em; }
.pm-accent { width: 210px; height: 3px; margin: 24px 0; background: linear-gradient(90deg, #0086d7, #00a6a6 55%, #63b76c); }
.pm-hero-lead { font-size: 16px; line-height: 1.95; letter-spacing: .03em; }
.pm-hero-message, .pm-hero-side { font-size: 11px; line-height: 1.9; letter-spacing: .15em; }
.pm-hero-message { margin-top: 20px; }
.pm-hero-side { position: absolute; right: 0; bottom: 36px; text-shadow: 0 1px 5px #001322; }

@media (max-width: 1100px) {
    .pm-hero-content { max-width: 65%; }
    .pm-hero-lead { font-size: 14px; }
    .pm-hero-side { font-size: 9px; }
}
@media (max-width: 767px) {
    .pm-hero::after { background: linear-gradient(90deg, #031627f2, #031627b3); }
    .pm-hero-stack { left: 0; width: 100%; clip-path: none; }
    .pm-hero-machine { display: none; }
    .pm-hero-inner { padding: 25px 0 40px; }
    .pm-breadcrumb { font-size: 10px; margin-bottom: 35px; }
    .pm-hero-content { max-width: 100%; }
    .pm-hero h1 { font-size: 52px; }
    .pm-hero-subtitle { font-size: 28px; }
    .pm-hero-side { display: none; }
}
/* #endregion */

/* #region 02 コンセプト・最適な製造体制
======================================== */
.pm-concept {
    background:
        linear-gradient(90deg, #fff 0%, #fffffff2 42%, #ffffff40 80%, transparent),
        url("../images/PCB design/未来型積層基板の輝き.png.webp") center right / cover no-repeat;
}
.pm-concept-inner { min-height: 300px; padding: 40px 0; }
.pm-concept h2, .pm-concept .pm-copy { max-width: 950px; }
@media (max-width: 767px) {
    .pm-concept { background-image: linear-gradient(90deg, #fffffff5, #ffffffe6), url("../images/PCB design/未来型積層基板の輝き.png.webp"); }
    .pm-concept-inner { padding: 40px 0; }
}
/* #endregion */

/* #region 03 相談例・試作／継続生産／特殊仕様
======================================== */
.pm-situation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 18px; }
.pm-situation-card { min-width: 0; background: #fff; border: 1px solid #e1eaf2; }
.pm-situation-card > img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.pm-situation-content { position: relative; padding: 20px 22px 22px 90px; }
.pm-situation-number { position: absolute; left: 12px; top: -28px; padding: 2px 8px; background: #fff; border-top: 2px solid #a7c5d9; font: 40px/1.5 "Yu Mincho", serif; }
.pm-situation-content h3 { font-size: 19px; margin-bottom: 10px; }
.pm-situation-content p { font-size: 14px; line-height: 1.9; color: #425973; }
@media (max-width: 1100px) {
    .pm-situation-content { padding: 28px 20px 22px; }
    .pm-situation-number { font-size: 29px; top: -30px; }
    .pm-situation-content h3 { font-size: 17px; }
}
@media (max-width: 767px) {
    .pm-situation-grid { grid-template-columns: 1fr; gap: 24px; }
    .pm-situation-content { padding: 20px 20px 24px 80px; }
    .pm-situation-number { font-size: 34px; top: -25px; }
}
/* #endregion */

/* #region 04 サービス・4種類の基板製造
======================================== */
.pm-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.pm-service-card { min-width: 0; border: 1px solid #dce7f0; background: #fff; }
.pm-service-card > img { width: 100%; aspect-ratio: 2.7 / 1; object-fit: cover; }
.pm-service-content { padding: 15px 20px 20px; }
.pm-service-content h3 { font-size: clamp(16px, 1.5vw, 22px); text-align: center; margin-bottom: 10px; }
.pm-service-content ul { padding-left: 18px; font-size: 14px; line-height: 1.9; }
@media (max-width: 1100px) {
    .pm-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-service-content h3 { font-size: 21px; }
}
@media (max-width: 600px) {
    .pm-service-grid { grid-template-columns: 1fr; }
}
/* #endregion */

/* #region 05 製造ネットワーク・国内／海外／サポート
======================================== */
.pm-network-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 35px; align-items: center; }
.pm-network h2 { font-size: clamp(27px, 2.5vw, 38px); }

/* 点描の背景・ロゴ・3つの連携先。文章はHTMLで編集できます。 */
.pm-network-diagram {
    position: relative;
    min-width: 0;
    padding: 15px 8px;
    background: radial-gradient(circle, #c8e2f6 1px, transparent 1.5px) center / 7px 7px;
    border-radius: 35%;
}
.pm-network-brand { width: min(330px, 60%); margin: 0 auto 35px; padding: 8px; background: #fff; position: relative; }
.pm-network-brand img { width: 100%; }
.pm-network-brand::after { content: ""; position: absolute; width: 1px; height: 35px; background: #58b9db; top: 100%; left: 50%; }
.pm-network-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; position: relative; }
.pm-network-branches::before { content: ""; position: absolute; left: 16%; right: 16%; top: -16px; height: 16px; border: 1px solid #58b9db; border-bottom: 0; border-radius: 25px 25px 0 0; }
.pm-network-branches article { position: relative; text-align: center; border: 1px solid #c7e2f6; border-radius: 50%; padding: 18px 7px 22px; background: #ffffffed; }
.pm-network-branches article > img, .pm-network-icon { display: block; width: 45px; height: 45px; object-fit: contain; margin: 0 auto 10px; }
.pm-network-branches h3 { font-size: 13px; margin-bottom: 8px; }
.pm-network-branches p { font-size: 11px; line-height: 1.8; }
@media (max-width: 1100px) {
    .pm-network-layout { grid-template-columns: 1fr; gap: 20px; }
    .pm-network-diagram { max-width: 820px; width: 100%; margin: auto; }
}
@media (max-width: 600px) {
    .pm-network-branches { grid-template-columns: 1fr; gap: 16px; }
    .pm-network-branches::before, .pm-network-brand::after { display: none; }
    .pm-network-branches article { border-radius: 12px; padding: 20px; }
    .pm-network-branches h3 { font-size: 17px; }
    .pm-network-branches p { font-size: 13px; }
    .pm-network-brand { width: min(300px, 85%); margin-bottom: 18px; }
}
/* #endregion */

/* #region 06 製造の流れ・6工程
======================================== */
.pm-flow-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin-top: 18px; background: #051d31; }
.pm-flow-list li { position: relative; min-width: 0; border-right: 1px solid #638fa9; }
.pm-flow-list li:last-child { border: 0; }
.pm-flow-heading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 6px; color: #fff; background: linear-gradient(120deg, #031827, #0e3957); }
.pm-flow-heading span { color: #00c0df; font-size: 20px; }
.pm-flow-heading h3 { font-size: 14px; }
.pm-flow-list img { width: 100%; height: 105px; object-fit: cover; object-position: center 20%; }
.pm-flow-list li:not(:last-child)::after { content: "›"; position: absolute; right: -8px; top: 52%; z-index: 1; font-size: 30px; line-height: 1; color: #fff; text-shadow: 0 1px 4px #001321; }
@media (max-width: 1100px) {
    .pm-flow-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
    .pm-flow-list li:nth-child(3n)::after { display: none; }
}
@media (max-width: 600px) {
    .pm-flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-flow-heading { gap: 8px; }
    .pm-flow-heading h3 { font-size: 12px; }
    .pm-flow-list li:nth-child(3n)::after { display: block; }
    .pm-flow-list li:nth-child(2n)::after { display: none; }
}
/* #endregion */

/* #region 07 選ばれる理由・6つの強み
======================================== */
.pm-strengths { padding-top: 20px; padding-bottom: 40px; }
.pm-strength-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin-top: 25px; }
.pm-strength-grid li { min-width: 0; padding: 8px 12px; text-align: center; border-left: 1px solid #cfdfeb; }
.pm-strength-grid li:last-child { border-right: 1px solid #cfdfeb; }
.pm-strength-grid img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 16px; }
.pm-strength-grid p { font-size: 12px; font-weight: 600; line-height: 1.8; }
@media (max-width: 1024px) {
    .pm-strength-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 0; }
    .pm-strength-grid li:nth-child(3n) { border-right: 1px solid #cfdfeb; }
}
@media (max-width: 600px) {
    .pm-strength-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pm-strength-grid li:nth-child(3n) { border-right: 0; }
    .pm-strength-grid li:nth-child(2n) { border-right: 1px solid #cfdfeb; }
}
/* #endregion */

/* #region 08 CONTACT・既存ページの共通デザイン
======================================== */
.pm-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;
}

/* コンテンツ全体 */

.pm-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;
}

/* 左側 */

.pm-contact .contact-cta-content {
  max-width: 780px;
  flex: 1;
}

.pm-contact-label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.pm-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;
}

.pm-contact .contact-cta-text {
  margin: 0 0 32px;

  font-size: 15px;
  font-weight: 600;
  line-height: 1.9;

  color: #ffffff;
}

/* ボタン */

.pm-contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pm-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;
}

.pm-contact-btn-white {
  background: #ffffff;
  color: #102235;
}

.pm-contact-btn-white:hover {
  background: #e7f0f6;
  color: #102235;
}

.pm-contact-btn-dark {
  background: rgba(0, 13, 27, 0.78);
  color: #ffffff;
}

.pm-contact-btn-dark:hover {
  background: rgba(0, 45, 75, 0.85);
  color: #ffffff;
}

/* 右側の英語 */

.pm-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) {

  .pm-contact {
    min-height: auto;
    padding: 65px 0;

    background-position: 62% center;
  }

  .pm-contact .contact-cta-inner {
    width: calc(100% - 40px);
    display: block;
  }

  .pm-contact .contact-cta-title {
    font-size: 27px;
  }

  .pm-contact .contact-cta-text {
    font-size: 14px;
  }

  .pm-contact-buttons {
    flex-direction: column;
  }

  .pm-contact-btn {
    width: 100%;
    min-height: 56px;
  }

  .pm-contact-message {
    margin-top: 35px;
    font-size: 10px;
  }

}



/* #endregion */
@media (prefers-reduced-motion: reduce) {
    .pm-page * { scroll-behavior: auto !important; transition: none !important; }
}


/* #region 画像と番号の重なり解消・相談例カード
   数字を画像の下、見出しの上に置く。PC・スマホ共通。
======================================== */
body .pm-situation-content {
    padding: 20px 22px 24px;
}
body .pm-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 */
