.diagnosis{
    min-height:calc(100vh - 80px);
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:start;
    background-image:
        linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
        url("../img/contact-form-bg.png");
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    color:#061b3d;
    width:100%;
    max-width:1620px;
    padding:0px 0px 0px 120px;
    font-family:"Noto Serif JP", serif !important;
}

.diagnosis-text h1{
    font-size:42px;
    line-height:1.55;
    letter-spacing:-0.035em;
    font-weight:500;
    margin:0 0 10px;
}

.diagnosis-text p{
    max-width:520px;
    font-size:14px;
    line-height:1.85;
    letter-spacing:-0.01em;
    font-weight:500;
    margin:0 15px 10px;
}

.diagnosis-card{
    position:relative;
    width:100%;
    max-width:600px;
    padding:22px 26px 24px;
    overflow:hidden;
    border:1px solid rgba(8,109,243,.14);
    border-radius:18px;
    background:rgba(255,255,255,.86);
    box-shadow:0 18px 48px rgba(6,27,61,.07);
}

.diagnosis-card::before{
    content:"";
    position:absolute;
    top:-96px;
    right:-82px;
    width:210px;
    height:210px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(8,109,243,.10),rgba(8,109,243,0) 70%);
    pointer-events:none;
}

.diagnosis-card h2{
    position:relative;
    z-index:1;
    margin:0 0 20px;
    font-size:27px;
    font-weight:600;
    line-height:1.45;
    letter-spacing:.06em;
    text-align:center;
}

.diagnosis-card h2::after{
    content:"";
    display:block;
    width:34px;
    height:3px;
    margin:8px auto 0;
    border-radius:999px;
    background:#086df3;
}

.diagnosis-list{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    overflow:hidden;
    padding:0;
    margin:0;
    border:1px solid rgba(8,109,243,.14);
    border-radius:14px;
    background:#f5f8fd;
    list-style:none;
}

.diagnosis-list li{
    position:relative;
    min-width:0;
    min-height:107px;
    padding:18px 16px 18px 56px;
    display:flex;
    align-items:center;
    border-right:1px solid rgba(8,109,243,.12);
    border-bottom:1px solid rgba(8,109,243,.12);
    color:#061b3d;
    background:rgba(255,255,255,.58);
    font-size:15.5px;
    font-weight:600;
    line-height:1.55;
    letter-spacing:.015em;
}

.diagnosis-list li:nth-child(2n){
    border-right:0;
}

.diagnosis-list li:nth-last-child(-n+2){
    border-bottom:0;
}

.diagnosis-list li::before{
    content:"✓";
    position:absolute;
    top:50%;
    left:16px;
    width:27px;
    height:27px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:50%;
    color:#fff;
    background:#086df3;
    box-shadow:0 7px 16px rgba(8,109,243,.20);
    font-family:Arial,sans-serif;
    font-size:15px;
    font-weight:700;
    line-height:1;
    transform:translateY(-50%);
}

.diagnosis-text > p:last-child{
    margin:7px 15px 0;
    font-size:13px;
    line-height:1.6;
}

.contact-form{
    max-width:720px;
    padding:10px;
    border-radius:0;
    background:rgba(240,250,255,.78);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    box-shadow:none;
    margin:20px 20px;
    transform:translateX(-48px);
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:11px 14px;
}

.form-field label{
    display:block;
    margin-bottom:10px;
    font-size:15px;
    font-weight:500;
    color:#061b3d;
}

.form-field input,
.form-field select,
.form-field textarea{
    width:100%;
    border:1px solid #d6e0ea;
    border-radius:0;
    background:#fff;
    color:#061b3d;
    font-family:inherit;
    font-size:15px;
    box-sizing:border-box;
}

.form-field input,
.form-field select{
    height:52px;
    padding:0 16px;
}

.form-field textarea{
    height:150px;
    padding:16px;
    resize:vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder{
    color:#91a0b2;
}

.form-full{
    grid-column:1 / -1;
}

.form-actions{
    display:flex;
    gap:10px;
    align-items:center;
    justify-content: center;
    margin-top:8px;
}

.submit-btn,
.line-btn{
    height:52px;
    padding:0 42px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:15px;
    font-weight:600;
}

.submit-btn{
    border:none;
    background:#061b3d;
    color:#fff;
}

.line-btn{
    background:#06c755;
    color:#fff;
}

.form-note{
    margin:0;
    font-size:12px;
    color:#7d8b9b;
    line-height:1.6;
    text-align: center;
}

@media screen and (max-width:768px){

    .diagnosis{
        background-position:62% center;
        background-attachment:scroll;
    }
    
    /* 全体 */
    .diagnosis{
        display:flex;
        flex-direction:column;
        gap:5px;
        padding:24px 18px 0px;
    }

    /* 左側 */
    .diagnosis-text{
        order:1;
    }

    .diagnosis-text > p:last-child{
        display:none;
    }

    .diagnosis-text h1{
        font-size:36px;
        line-height:1.35;
        letter-spacing:-0.04em;
        margin-top: 60px;
        margin-bottom:18px;
    }

    .diagnosis-text p{
        max-width:none;
        margin:0 0 24px;
        font-size:15px;
        line-height:1.8;
    }

    /* 診断カード */
    .diagnosis-card{
        max-width:none;
        padding:26px 18px 20px;
        margin-bottom:18px;
        border-radius:15px;
    }

    .diagnosis-card h2{
        margin-bottom:24px;
        font-size:24px;
        letter-spacing:.04em;
    }

    .diagnosis-card h2::after{
        width:34px;
        margin-top:9px;
    }

    .diagnosis-list{
        grid-template-columns:1fr;
        border-radius:12px;
    }

    .diagnosis-list li{
        min-height:78px;
        padding:17px 16px 17px 58px;
        border-right:0;
        border-bottom:1px solid rgba(8,109,243,.12);
        font-size:15.5px;
        line-height:1.55;
    }

    .diagnosis-list li:nth-last-child(-n+2){
        border-bottom:1px solid rgba(8,109,243,.12);
    }

    .diagnosis-list li:last-child{
        border-bottom:0;
    }

    .diagnosis-list li::before{
        left:16px;
        width:28px;
        height:28px;
        font-size:15px;
    }

    /* フォーム */
    .contact-form{
        order:2;
        max-width:none;
        padding:24px 20px;
        border-radius:16px;
        transform:none;
    }

    .form-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:16px;
    }

    .form-field label{
        margin-bottom:6px;
        font-size:14px;
    }

    .form-field input,
    .form-field select{
        height:46px;
        font-size:14px;
    }

    .form-field textarea{
        height:130px;
        font-size:14px;
    }

    .form-actions{
        display:flex;
        flex-direction:column;
        gap:12px;
        margin-top:10px;
    }

    .submit-btn,
    .line-btn{
        width:100%;
        height:50px;
        font-size:15px;
    }

    .form-note{
        font-size:11px;
        text-align:center;
        line-height:1.6;
    }
}

/* =========================================================
   SHARED TOP BACKGROUND
   TOP画面と同じ抽象ブルー背景をページ全体へ固定表示
========================================================= */
html{
  background:#f7fbff;
}

body{
  position:relative;
  isolation:isolate;
  min-height:100vh;
  background:transparent!important;
}

body::before,
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
}

body::before{
  z-index:-2;
  background-image:url("../img/top/top-page-background-v1.png");
  background-image:image-set(
    url("../img/top/top-page-background-v1.webp") type("image/webp"),
    url("../img/top/top-page-background-v1.png") type("image/png")
  );
  background-position:center center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:.78;
}

body::after{
  z-index:-1;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.24) 0%,
    rgba(248,252,255,.34) 52%,
    rgba(255,255,255,.46) 100%
  );
}

@media(max-width:900px){
  body::before{
    background-position:72% center;
    opacity:.73;
  }

  body::after{
    background:linear-gradient(
      180deg,
      rgba(255,255,255,.32) 0%,
      rgba(248,252,255,.42) 52%,
      rgba(255,255,255,.54) 100%
    );
  }
}

@media(max-width:640px){
  body::before{
    background-position:84% center;
    opacity:.69;
  }
}


main{
  background:transparent!important;
}
.diagnosis{
  background-image:none!important;
  background-color:transparent!important;
}
.diagnosis-card,
.contact-form{
  background:rgba(255,255,255,.80)!important;
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
}

/* =========================================================
   GLOBAL FOOTER — browser zoom / scale stability
   ブラウザの表示倍率を変更してもフッターを画面幅いっぱいに維持
========================================================= */
html,
body{
  min-height:100%;
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

body > #header{
  flex:0 0 auto;
}

body > main{
  width:100%;
  flex:1 0 auto;
}

body > #footer{
  position:relative;
  z-index:10;
  width:100%;
  max-width:none!important;
  margin-top:auto;
  margin-right:0!important;
  margin-left:0!important;
  align-self:stretch;
  flex:0 0 auto;
  box-sizing:border-box;
}

/* footer.htmlから読み込まれる一番外側の要素だけ固定幅を解除 */
body > #footer > *,
body > #footer > footer,
body > #footer > .footer{
  width:100%!important;
  max-width:none!important;
  margin-right:0!important;
  margin-left:0!important;
  box-sizing:border-box;
}

/* 内部コンテンツの中央寄せは維持 */
body > #footer .footer-inner,
body > #footer .footer__inner,
body > #footer .footer-container,
body > #footer .footer__container{
  margin-right:auto!important;
  margin-left:auto!important;
}

/* 縮小表示時の横スクロール発生を防ぐ */
body > #footer,
body > #footer > *{
  min-width:0;
}

/* =========================================================
   GLOBAL PAGE POSITION — zoom stability / left anchored
   ブラウザの表示倍率を下げても、ページ本体を中央へ移動させず、
   通常時と同じ左基準位置に維持する
========================================================= */
html,
body{
  width:100%;
  min-width:320px;
}

body{
  align-items:stretch;
}

/* 各ページの最外側ラッパーを左基準へ固定 */
.affiliate-page,
.article-page,
.formx-page,
.other-page,
.dr-growth-page,
.business-ai-page,
.strategy-page,
.page-image-wrap,
.page-image-cta-wrap{
  width:min(100%,1620px);
  max-width:1620px;
  margin-right:auto!important;
  margin-left:0!important;
}

/* 各ページ内の中央コンテナも、縮小時に画面中央へ移動しない */
.affiliate-inner,
.article-inner,
.formx-inner,
.formx-container,
.other-inner,
.dr-wide,
.business-ai-container,
.strategy-inner,
.privacy-inner{
  margin-right:auto!important;
  margin-left:0!important;
}

/* プライバシー・フォームなど main が直接レイアウトを持つページ */
body > main{
  max-width:1620px;
  margin-right:auto;
  margin-left:0;
}

/* お問い合わせ・資料請求 */
.diagnosis{
  margin-right:auto!important;
  margin-left:0!important;
}

/* フッターは背景だけ全幅、内容は元の左位置を維持 */
body > #footer{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

body > #footer .footer{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

body > #footer .footer-info{
  margin-right:auto!important;
  margin-left:40px!important;
}

/* PCのみ位置固定。スマホでは既存レスポンシブ設定を優先 */
@media(max-width:1036px){
  .affiliate-page,
  .article-page,
  .formx-page,
  .other-page,
  .dr-growth-page,
  .business-ai-page,
  .strategy-page,
  .page-image-wrap,
  .page-image-cta-wrap,
  body > main{
    width:100%;
    max-width:none;
    margin-right:0!important;
    margin-left:0!important;
  }

  .affiliate-inner,
  .article-inner,
  .formx-inner,
  .formx-container,
  .other-inner,
  .dr-wide,
  .business-ai-container,
  .strategy-inner,
  .privacy-inner{
    margin-right:auto!important;
    margin-left:auto!important;
  }

  body > #footer .footer-info{
    margin-left:0!important;
  }
}
