.diagnosis{
    display:grid;
    gap:60px;
    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;
    margin:0 10px;
    padding:40px;
    font-family:"Noto Serif JP", serif !important;
}

.diagnosis-text h1{
    font-size:48px;
    line-height:1.35;
    font-weight:500;
    margin:0 0 28px;
}

.diagnosis-text p{
    max-width:560px;
    font-size:16px;
    line-height:1.9;
    margin:0;
}

.diagnosis-list{
    list-style:none;
    padding:0;
    margin:0;
    display:flex;
    flex-direction:column;
    gap:25px;
}

.diagnosis-list li{
    position:relative;
    padding-left:46px;
    font-size:24px;
    font-weight:600;
    letter-spacing:-0.015em;
    color:#061b3d;
}

.diagnosis-list li::before{
    content:"✓";
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:24px;
    height:24px;
    border-radius:50%;
    border:1px solid #c7d7e8;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#061b3d;
    font-size:24px;
    font-weight:700;
    background:#fff;
}

.contact-form{
    background:rgba(238,248,253,.82);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    padding:34px;
    border-radius:0;
    max-width:none;
}

.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;
}

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

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

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

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

.form-note{
    width: 100%;
    margin: 0;
    color: #7d8b9b;
    font-size: 12px;
    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;
        margin-top: 60px;
    }

    .diagnosis-text h1{
        font-size:48px;
        line-height:1.35;
        font-weight:500;
        margin:0 0 28px;
    }

    .diagnosis-text p{
        max-width:560px;
        font-size:16px;
        line-height:1.9;
        margin:0;
    }

    /* 診断カード */
    .diagnosis-card{
        max-width:none;
        padding:32px 24px;
        margin-bottom:18px;
    }

    .diagnosis-card h2{
        font-size:24px;
        margin-bottom:24px;
    }

    .diagnosis-list{
        gap:22px;
    }

    .diagnosis-list li{
        padding-left:42px;
        font-size:16px;
        line-height:1.5;
    }

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

    /* フォーム */
    .contact-form{
        order:2;

        max-width:none;

        padding:24px 20px;

        border-radius:16px;
    }

    .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;
}
.contact-form{
  background:rgba(255,255,255,.82)!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;
  }
}
