/*
リバースエンジニアリング詳細ページ専用CSS
Ctrl+Fで「01 概要」「02 お悩み」などを検索してください。
各項目の下に、その項目のスマホ用設定をまとめています。
padding＝内側の余白 / margin＝外側の余白 / gap＝項目間隔
ヘッダー・フッターは common.css、CONTACTは末尾の11です。
*/

/* #region 00 共通設定・本文の横幅
======================================== */
.re2-page {
    color: #102b43;
    background: #fff;
}

/* 本文幅：既存の新しくつくる・もう一度つくると統一 */
.re2-container {
    width: min(1500px, calc(100% - 80px));
    margin: 0 auto;
}

/* 各項目の上下余白 */
.re2-section {
    padding: 48px 0;
}

.re2-section:nth-of-type(odd) {
    background: linear-gradient(110deg, #f7fafc, #edf3f8);
}

/* 見出しと右側の説明文 */
.re2-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 26px;
}

.re2-heading-main {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex-shrink: 0;
    max-width: 100%;
}

/* 左側の項目番号01〜10 */
.re2-number {
    font: 34px/1.15 "Yu Mincho", serif;
    color: #5c90bb;
    border-top: 2px solid #8ec4e3;
    padding-top: 5px;
}

/* 英語の小見出し */
.re2-label {
    color: #5487b1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    margin-bottom: 6px;
}

.re2-section h2 {
    font-size: clamp(23px, 2vw, 32px);
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.re2-intro, .re2-copy {
    font-size: 14px;
    line-height: 1.95;
    letter-spacing: .03em;
}

.re2-intro {
    flex: 1;
    max-width: 780px;
    padding-top: 7px;
}

.re2-copy {
    margin-left: 56px;
}

.re2-note, .re2-small {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 10px;
    color: #526b80;
}

.re2-page figure {
    margin: 0;
    min-width: 0;
}

.re2-page img {
    max-width: 100%;
}

.re2-page :focus-visible {
    outline: 3px solid #0086d7;
    outline-offset: 5px;
}

.re2-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    padding: 12px 20px;
    background: #fff;
    z-index: 200;
}

.re2-skip:focus { top: 10px; }

.re2-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .re2-section-heading { display: block; }
    .re2-intro { margin: 12px 0 0 56px; padding: 0; }
}

@media (max-width: 767px) {
    .re2-container { width: calc(100% - 40px); }
    .re2-section { padding: 36px 0; }
    .re2-heading-main { gap: 12px; }
    .re2-section h2 { font-size: 23px; }
    .re2-number { font-size: 28px; }
    .re2-label { font-size: 9px; letter-spacing: .12em; }
    .re2-intro, .re2-copy { margin-left: 0; font-size: 13px; }
    .re2-pc-break { display: none; }
}
/* #endregion */

/* #region 00 メイン画像・タイトル
======================================== */
/* 背景画像・最低の高さ */
.re2-hero {
    position: relative;
    min-height: 470px;
    color: #fff;
    background: #062d4a url("../images/reverse-engineering2/未来型PCB設計エンジニアリングバナー.png.webp") center / cover no-repeat;
}

/* タイトル部分：上下余白はpaddingで調整 */
.re2-hero-inner {
    padding: 58px 0 60px;
    min-height: 470px;
}

.re2-hero-label {
    color: #64d4e6;
    font-size: 14px;
    letter-spacing: .25em;
    margin-bottom: 18px;
}

.re2-hero h1 {
    font-size: clamp(28px, 3.2vw, 50px);
    line-height: 1.4;
    letter-spacing: .025em;
    margin-bottom: 14px;
    max-width: 850px;
}

.re2-hero-subtitle {
    font-size: clamp(17px, 1.9vw, 26px);
    letter-spacing: .05em;
}

.re2-accent {
    width: 150px;
    height: 3px;
    margin: 25px 0;
    background: linear-gradient(90deg, #0086d7, #00a6a6, #63b76c);
}

.re2-hero-text {
    max-width: 650px;
    font-size: 15px;
    line-height: 1.95;
}

@media (max-width: 767px) {
    .re2-hero {
        background-image: linear-gradient(90deg, #03223beF, #03223bb3), url("../images/reverse-engineering2/未来型PCB設計エンジニアリングバナー.png.webp");
        background-position: center, 60% center;
        min-height: 440px;
    }
    .re2-hero-inner { padding: 48px 0; min-height: 440px; }
    .re2-hero h1 { font-size: clamp(25px, 5.8vw, 40px); }
    .re2-hero-label { font-size: 11px; }
    .re2-hero-text { font-size: 14px; }
}
/* #endregion */

/* #region 01 概要・通常の開発との比較図
======================================== */
.re2-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.re2-overview .re2-section-heading { display: block; }
.re2-diagram img { width: 100%; height: auto; }

@media (max-width: 900px) {
    .re2-overview-grid { grid-template-columns: 1fr; gap: 24px; }
}
/* #endregion */

/* #region 02 お悩み・5つの画像カード
======================================== */
.re2-challenges .re2-section-heading { display: block; }
.re2-challenges .re2-intro { margin: 8px 0 0 56px; }
.re2-concern-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.re2-concern {
    background: #fff;
    border: 1px solid #e1eaf1;
    box-shadow: 0 2px 8px #193a5010;
    overflow: hidden;
}

.re2-concern img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.re2-concern h3 { font-size: 15px; line-height: 1.7; text-align: center; padding: 13px 8px; }

@media (max-width: 900px) {
    .re2-concern-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .re2-concern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .re2-concern h3 { font-size: 12px; }
    .re2-challenges .re2-intro { margin-left: 0; }
}
/* #endregion */

/* #region 03 解析対象・回路／搭載部品／配線／基板構造
======================================== */
.re2-analysis-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.re2-analysis-card { min-width: 0; }
.re2-analysis-card > img { width: 100%; aspect-ratio: 2.2 / 1; object-fit: cover; border-left: 4px solid #0086c9; margin-bottom: 14px; }
.re2-analysis-card h3 { font-size: 21px; margin-bottom: 5px; }
.re2-analysis-card > p:last-child { font-size: 14px; line-height: 1.8; }
@media (max-width: 767px) {
    .re2-analysis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .re2-analysis-card h3 { font-size: 18px; }
    .re2-analysis-card > p:last-child { font-size: 12px; }
}
/* #endregion */

/* #region 04 解析の9工程
======================================== */
.re2-process-list { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 14px; list-style: none; }
.re2-process-list li { position: relative; min-width: 0; padding: 14px 10px; background: #fff; border: 1px solid #e0e8ef; box-shadow: 0 2px 7px #15364f0a; }
.re2-step-number { display: block; font-size: 17px; letter-spacing: .08em; }
.re2-process-list h3 { font-size: 12px; min-height: 3.5em; margin-bottom: 12px; }
.re2-process-list img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.re2-process-list li:not(:last-child)::after { content: "›"; position: absolute; right: -14px; top: 62%; z-index: 1; font-size: 28px; color: #0068a7; }
@media (max-width: 1100px) {
    .re2-process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .re2-process-list li:nth-child(3n)::after { display: none; }
    .re2-process-list h3 { min-height: auto; }
}
@media (max-width: 767px) {
    .re2-process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .re2-process-list li:nth-child(3n)::after { display: block; }
    .re2-process-list li:nth-child(2n)::after { display: none; }
}
/* #endregion */

/* #region 05 多層基板・層ごとの画像・対応実績
======================================== */
.re2-layer-layout { display: grid; grid-template-columns: 1.2fr 3fr .65fr; align-items: center; gap: 30px; }
.re2-exploded img { width: 100%; max-height: 260px; object-fit: contain; }
.re2-layer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.re2-layer-grid figcaption { background: #44677e; color: #fff; text-align: center; padding: 7px 3px; font-size: 12px; }
.re2-layer-grid img { width: 100%; aspect-ratio: .9; object-fit: cover; }
.re2-spec { border-radius: 6px; padding: 20px 10px; background: #e7f0f8; text-align: center; color: #0060a4; }
.re2-spec > span { display: block; font-weight: 600; }
.re2-spec strong { display: block; font-size: 60px; line-height: 1.3; }
.re2-spec strong small { font-size: 22px; }
.re2-spec b { font-size: 28px; }
.re2-spec p { font-size: 11px; font-weight: 700; }
@media (max-width: 1100px) {
    .re2-layer-layout { grid-template-columns: 1fr 3fr; gap: 20px; }
    .re2-spec { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 20px; }
    .re2-spec strong { font-size: 40px; }
}
@media (max-width: 767px) {
    .re2-layer-layout { grid-template-columns: 1fr; }
    .re2-exploded img { max-height: 220px; }
    .re2-layer-grid figcaption { font-size: 9px; }
    .re2-spec { flex-wrap: wrap; gap: 10px; }
}
/* #endregion */

/* #region 06 CADトレース・NETリスト・回路図
======================================== */
.re2-cad-flow { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr; gap: 34px; list-style: none; }
.re2-cad-flow li { min-width: 0; position: relative; }
.re2-cad-flow h3 { font-size: 14px; margin-bottom: 10px; }
.re2-cad-flow img { width: 100%; aspect-ratio: 1.9; object-fit: cover; border: 1px solid #d9e5ef; }
.re2-cad-flow li:not(:last-child)::after { content: "›"; position: absolute; right: -25px; top: 45%; font-size: 30px; color: #0068a7; }

/* NETリスト・BOM表の共通設定。狭い画面では表だけ横スクロール */
.re2-table-scroll { overflow-x: auto; border: 1px solid #c7d9e8; border-radius: 3px; max-width: 100%; }
.re2-page table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; text-align: left; }
.re2-page th, .re2-page td { padding: 7px 10px; border-bottom: 1px solid #d8e3ed; }
.re2-page th { background: #eaf1f7; font-weight: 600; }
.re2-page tr:nth-child(even) td { background: #f3f7fa; }
.re2-table-title { font-size: 14px; margin-bottom: 8px; }
@media (max-width: 900px) {
    .re2-cad-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
    .re2-cad-flow li:nth-child(2n)::after { display: none; }
}
@media (max-width: 480px) {
    .re2-cad-flow { grid-template-columns: 1fr; }
    .re2-cad-flow li::after { display: none; }
}
/* #endregion */

/* #region 07 部品の特定・BOM復元
======================================== */
.re2-bom-layout { display: grid; grid-template-columns: .95fr 1.3fr; gap: 30px; align-items: start; }
.re2-bom-layout > div { min-width: 0; }
.re2-bom-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.re2-bom-photos img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.re2-bom-photos figcaption { font-size: 11px; text-align: center; margin-top: 8px; }
@media (max-width: 1100px) {
    .re2-bom-layout { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .re2-bom-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}
/* #endregion */

/* #region 08 出力データ・設計情報の連携図
======================================== */
.re2-output-layout { display: grid; grid-template-columns: .9fr 1.3fr; gap: 45px; align-items: center; }
.re2-output .re2-section-heading { display: block; }
@media (max-width: 900px) {
    .re2-output-layout { grid-template-columns: 1fr; gap: 22px; }
}
/* #endregion */

/* #region 09 復元から再設計・再製作へ
======================================== */
.re2-next-flow { display: grid; grid-template-columns: 1fr 24px 1fr; gap: 20px; align-items: center; }
.re2-next-flow img { width: 100%; height: auto; }
.re2-next-flow > span { font-size: 36px; text-align: center; color: #0068a7; }
@media (max-width: 767px) {
    .re2-next-flow { grid-template-columns: 1fr; gap: 12px; }
    .re2-next-flow > span { transform: rotate(90deg); line-height: 1; }
}
/* #endregion */

/* #region 10 技術情報への案内
======================================== */
.re2-technical-layout { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 28px; align-items: center; }
.re2-technical .re2-section-heading { display: block; margin-bottom: 14px; }
.re2-technical h2 { font-size: 26px; }
.re2-technical img { width: 100%; }
.re2-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; background: #005d9e; color: #fff; padding: 20px 25px; font-size: 13px; font-weight: 600; text-align: center; transition: background .2s; }
.re2-button:hover { background: #003b67; }
@media (max-width: 1100px) {
    .re2-technical-layout { grid-template-columns: 1fr 1fr; }
    .re2-button { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 767px) {
    .re2-technical-layout { grid-template-columns: 1fr; }
    .re2-button { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
    .re2-page * { transition: none !important; scroll-behavior: auto !important; }
}
/* #endregion */

/* #region 11 CONTACT・既存ページから再利用
======================================== */
.re2-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/about/philosophy.png.webp") center center / cover no-repeat;
    color: #ffffff;
}


/* お問い合わせの本文横幅・左右の配置 */
.re2-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;
}


/* お問い合わせ左側の本文幅 */
.re2-contact .contact-cta-content  {
    max-width: 780px;
    flex: 1;
}

/* CONTACTの小見出し */
.re2-contact-label  {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

/* 「お気軽にご相談ください」の見出し */
.re2-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;
}

/* お問い合わせの説明文 */
.re2-contact .contact-cta-text  {
    margin: 0 0 32px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.9;
    color: #ffffff;
}


/* 2つのボタンの配置・間隔 */
.re2-contact-buttons  {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* お問い合わせボタン共通：高さ・余白・文字 */
.re2-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;
}

/* 白いお問い合わせボタン */
.re2-contact-btn-white  {
    background: #ffffff;
    color: #102235;
}

/* 白いボタンにマウスを重ねたとき */
.re2-contact-btn-white:hover  {
    background: #e7f0f6;
    color: #102235;
}

/* 濃紺の相談ボタン */
.re2-contact-btn-dark  {
    background: rgba(0, 13, 27, 0.78);
    color: #ffffff;
}

/* 濃紺のボタンにマウスを重ねたとき */
.re2-contact-btn-dark:hover  {
    background: rgba(0, 45, 75, 0.85);
    color: #ffffff;
}


/* お問い合わせ右側の英語 */
.re2-contact-message  {
    flex-shrink: 0;
    margin: 0;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.16em;
}




/* #region CONTACTのスマートフォン用（幅767px以下）
   この中の設定は、指定した画面幅でのみ適用されます。
======================================== */
@media (max-width: 767px)  {
    /* お問い合わせエリア全体：高さ・上下余白・背景画像 */
    .re2-contact  {
        min-height: auto;
        padding: 65px 0;
        background-position: 62% center;
    }

    /* お問い合わせの本文横幅・左右の配置 */
    .re2-contact .contact-cta-inner  {
        width: calc(100% - 40px);
        display: block;
    }

    /* 「お気軽にご相談ください」の見出し */
    .re2-contact .contact-cta-title  {
        font-size: 27px;
    }

    /* お問い合わせの説明文 */
    .re2-contact .contact-cta-text  {
        font-size: 14px;
    }

    /* 2つのボタンの配置・間隔 */
    .re2-contact-buttons  {
        flex-direction: column;
    }

    /* お問い合わせボタン共通：高さ・余白・文字 */
    .re2-contact-btn  {
        width: 100%;
        min-height: 56px;
    }

    /* お問い合わせ右側の英語 */
    .re2-contact-message  {
        margin-top: 35px;
        font-size: 10px;
    }

}





/* #endregion */

/* #region 12 他ページとの字体統一・メイン見出しと各項目
======================================== */
/* 本文とカードの小見出しはcommon.cssのゴシック体を維持。
   大見出しの字体・太さのみを変更し、サイズ・余白・配置は維持。 */
body.re2-page main h1,
body.re2-page main h2 {
    font-family: "Yu Mincho", "YuMincho", serif;
    font-weight: 500;
}
/* #endregion */
