@charset "UTF-8";

:root{
  --affiliate-navy:#07165a;
  --affiliate-blue:#086df3;
  --affiliate-line:#dce7f4;
  --affiliate-soft:#f7faff;
  --affiliate-serif:"Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;
  --affiliate-sans:"Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",sans-serif;
  --affiliate-mobile-header-space:72px;
}

*{box-sizing:border-box;}

body{
  margin:0;
  color:var(--affiliate-navy);
  background:#fff;
  font-family:var(--affiliate-sans);
}

img{display:block;max-width:100%;}

.affiliate-page{
  width:100%;
  overflow:hidden;
  background:#fff;
}

.affiliate-inner{
  width:min(calc(100% - 24px),1512px);
  margin-inline:auto;
}

.affiliate-section{
  padding:8px 0;
}

.affiliate-panel{
  border:1px solid var(--affiliate-line);
  border-radius:16px;
  background:rgba(255,255,255,.98);
}

.affiliate-section-title,
.affiliate-panel-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0;
  color:var(--affiliate-navy);
  font-family:var(--affiliate-serif);
  font-weight:600;
  letter-spacing:.08em;
  text-align:center;
}

.affiliate-section-title{
  font-size:clamp(25px,2.1vw,34px);
}
.affiliate-panel-title{
  font-size:clamp(22px,1.75vw,30px);
}

.affiliate-section-title::before,
.affiliate-section-title::after,
.affiliate-panel-title::before,
.affiliate-panel-title::after{
  content:"";
  width:40px;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--affiliate-blue));
}

.affiliate-section-title::after,
.affiliate-panel-title::after{
  background:linear-gradient(90deg,var(--affiliate-blue),transparent);
}

/* HERO */
.affiliate-hero{
  position:relative;
  min-height:650px;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(255,255,255,1) 0%,rgba(255,255,255,.98) 34%,rgba(255,255,255,.65) 52%,rgba(255,255,255,0) 70%),
    url("../img/ai-affiliate/wave.png") center bottom / cover no-repeat,
    #fff;
}

.affiliate-hero__inner{
  position:relative;
  width:min(calc(100% - 104px),1420px);
  min-height:650px;
  margin-inline:auto;
  display:flex;
  align-items:center;
}

.affiliate-hero__content{
  position:relative;
  z-index:3;
  width:49%;
  padding-bottom:8px;
}

.affiliate-kicker{
  margin:0 0 62px;
  color:#0865dd;
  font-family:var(--affiliate-serif);
  font-size:clamp(16px,1.25vw,22px);
  letter-spacing:.13em;
}

.affiliate-hero h1{
  margin:0;
  font-family:var(--affiliate-serif);
  font-size:clamp(58px,5vw,78px);
  font-weight:500;
  line-height:1.15;
  letter-spacing:.04em;
  white-space:nowrap;
}

.affiliate-hero__lead{
  margin:34px 0 0;
  font-family:var(--affiliate-serif);
  font-size:clamp(25px,2vw,34px);
  line-height:1.65;
  letter-spacing:.04em;
}

.affiliate-hero__text{
  margin:30px 0 0;
  font-family:var(--affiliate-serif);
  font-size:clamp(15px,1.2vw,20px);
  line-height:2;  
  letter-spacing:.04em;
}

.affiliate-hero__visual{
  position:absolute;
  top:8px;
  /* 画面倍率に左右されない固定位置。通常表示では右寄せを維持する */
  right:-80px;
  bottom:0;
  z-index:1;
  width:min(56vw,820px);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  pointer-events:none;
  -webkit-mask-image:none;
  mask-image:none;
  background:transparent;
}

.affiliate-hero__visual img{
  width:100%;
  max-height:640px;
  object-fit:contain;
  object-position:right center;
  background:transparent;
}

.affiliate-hero-benefits{display:none;}

/* PROBLEMS */
.affiliate-problems{
  padding-top:34px;padding-bottom:48px;
}

.affiliate-problems .affiliate-section-title{
  margin-bottom:38px;
}

.affiliate-problem-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
}

.affiliate-problem-grid article{
  min-width:0;
  padding:4px 22px 12px;
  text-align:center;
  border-right:1px solid var(--affiliate-line);
}

.affiliate-problem-grid article:last-child{
  border-right:none;
}

.affiliate-problem-grid img{
  width:120px;
  margin:0 auto 18px;
}

.affiliate-problem-grid h3{
  margin:0;
  font-family:var(--affiliate-serif);
  font-size:clamp(16px,1.25vw,21px);
  line-height:1.7;
  font-weight:600;
}

.affiliate-problem-grid p{
  display:none;
}

/* OVERVIEW */
.affiliate-overview__grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.affiliate-comparison,
.affiliate-support{
  padding:14px 18px 18px;
}

.affiliate-comparison .affiliate-panel-title,
.affiliate-support .affiliate-panel-title{
  margin-bottom:20px;
}

.affiliate-comparison__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 64px minmax(0,1fr);
  align-items:center;
  gap:14px;
}

.affiliate-compare-card{
  min-width:0;
}

.affiliate-compare-card img{
  width:100%;
  aspect-ratio:1.55/1;
  object-fit:cover;
  border-radius:10px;
}

.affiliate-compare-card ul{
  margin:10px 0 0;
  padding:0;
  list-style:none;
}

.affiliate-compare-card li{
  position:relative;
  margin-top:6px;
  padding-left:25px;
  font-family:var(--affiliate-serif);
  font-size:clamp(13px,1vw,17px);
  line-height:1.55;
}

.affiliate-compare-card li::before{
  position:absolute;
  top:0;
  left:2px;
  color:var(--affiliate-blue);
  font-family:var(--affiliate-sans);
  font-weight:700;
}

.affiliate-compare-card--before li::before{
  content:"×";
}

.affiliate-compare-card--after li::before{
  content:"✓";
}

.affiliate-comparison__arrow{
  color:var(--affiliate-blue);
  font-size:58px;
  line-height:1;
  text-align:center;
}

.affiliate-support__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.affiliate-support__grid article{
  min-height:128px;
  padding:8px 12px 14px;
  text-align:center;
  border-right:1px solid var(--affiliate-line);
  border-bottom:1px solid var(--affiliate-line);
}

.affiliate-support__grid article:nth-child(3n){
  border-right:none;
}

.affiliate-support__grid article:nth-last-child(-n+3){
  border-bottom:none;
}

.affiliate-support__grid img{
  width:120px;
  margin:0 auto 8px;
}

.affiliate-support__grid h3{
  margin:0;
  font-family:var(--affiliate-serif);
  font-size:clamp(14px,1.1vw,18px);
  font-weight:600;
  line-height:1.55;
}

/* FLOW */
.affiliate-flow__panel{
  padding:8px 28px 14px;
}

.affiliate-flow__panel .affiliate-panel-title{
  margin-bottom:8px;
}

.affiliate-flow__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr);
  align-items:end;
  gap:8px;
}

.affiliate-flow-step{
  min-width:0;text-align:center;
}

.affiliate-flow-step h3{
  margin:0 0 8px;
  font-family:var(--affiliate-serif);
  font-size:clamp(15px,1.15vw,20px);
  font-weight:600;
}

.affiliate-flow-step img{
  width:100%;
  aspect-ratio:1.72/1;
  object-fit:cover;
  border-radius:9px;
  border:1px solid var(--affiliate-line);
}

.affiliate-flow-arrow{
  align-self:center;
  color: #000;
  font-size:46px;
  text-align:center;
  line-height:1;
}

/* STRENGTHS */
.affiliate-strengths__panel{
  padding:8px 20px 14px;
}

.affiliate-strengths__panel .affiliate-panel-title{
  margin-bottom:8px;
}

.affiliate-strength-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
}

.affiliate-strength-grid article{
  min-width:0;
  padding:6px 18px 12px;
  text-align:center;
  border-right:1px solid var(--affiliate-line);
}

.affiliate-strength-grid article:last-child{
  border-right:none;
}

.affiliate-strength-grid img{
  width:120px;
  margin:0 auto 6px;
}

.affiliate-strength-grid h3{
  margin:0;
  font-family:var(--affiliate-serif);
  font-size:clamp(14px,1.05vw,18px);
  line-height:1.55;
  font-weight:600;
}

/* CTA */
.affiliate-cta{
  padding-bottom:14px;
}

.affiliate-cta__box{
  padding:10px 24px 12px;
  border:1px solid var(--affiliate-line);
  border-radius:16px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.78),rgba(238,247,255,.92)),
    url("../img/ai-affiliate/wave.png") center bottom / cover no-repeat;
  text-align:center;
}

.affiliate-cta h2{
  margin:0 0 10px;
  font-family:var(--affiliate-serif);
  font-size:clamp(24px,1.9vw,34px);
  font-weight:500;
  line-height:1.55;
  letter-spacing:.05em;
}

.affiliate-cta a{
  width:min(100%,820px);
  min-height:68px;
  margin:0 auto;
  padding:10px 34px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(100deg, #123f91 0%, #0874ed 100%);
  box-shadow:0 12px 26px rgba(2,36,120,.24);
  text-decoration:none;
  transition:transform .2s ease,box-shadow .2s ease;
}

.affiliate-cta a:hover,
.affiliate-cta a:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(2,36,120,.30);
}

.affiliate-cta a img{
  width:40px;flex:0 0 40px;
}

.affiliate-cta a span{
  font-family:var(--affiliate-serif);
  font-size:clamp(20px,1.65vw,29px);
  letter-spacing:.05em;
}

.affiliate-cta p{
  margin:10px 0 0;
  color:#0873e8;
  font-family:var(--affiliate-serif);
  font-size:clamp(13px,1vw,17px);
  line-height:1.6;
}

.affiliate-mobile-break{
  display:none;
}

/* TABLET */
@media screen and (min-width:768px) and (max-width:1100px){
  .affiliate-hero{
    min-height:560px;
  }

  .affiliate-hero__inner{
    min-height:560px;width:min(calc(100% - 60px),1020px);
  }

  .affiliate-hero__content{
    width:52%;
  }

  .affiliate-kicker{
    margin-bottom:36px;
  }
  .affiliate-hero__visual{
    width:57vw;
    right:-40px;
  }

  .affiliate-problem-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));row-gap:28px;
  }

  .affiliate-problem-grid article:nth-child(3n){
    border-right:none;
  }

  .affiliate-problem-grid article:nth-child(4){
    border-left:0;
  }

  .affiliate-overview__grid{
    grid-template-columns:1fr;
  }

  .affiliate-strength-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));row-gap:14px;
  }

  .affiliate-strength-grid article:nth-child(3n){
    border-right:none;
  }
}

/* SMARTPHONE */
@media screen and (max-width:767px){
  .affiliate-page{
    padding-top:var(--affiliate-mobile-header-space);
  }

  .affiliate-inner{
    width:min(calc(100% - 24px),720px);
  }

  .affiliate-section{
    padding:6px 0;
  }

  .affiliate-panel{
    border-radius:13px;
  }

  .affiliate-section-title,
  .affiliate-panel-title{
    gap:12px;letter-spacing:.05em;
  }

  .affiliate-section-title{
    font-size:20px;
  }

  .affiliate-panel-title{
    font-size:20px;
  }

  .affiliate-section-title::before,
  .affiliate-section-title::after,
  .affiliate-panel-title::before,
  .affiliate-panel-title::after{
    width:24px;
  }

  .affiliate-hero{
    min-height:460px;
    background:
      linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 46%,rgba(255,255,255,.22) 72%,rgba(255,255,255,0) 100%),
      url("../img/ai-affiliate/wave.png") center bottom / auto 62% no-repeat,
      #fff;
  }

  .affiliate-hero__inner{
    width:100%;
    min-height:460px;
    padding:25px 18px 8px;
    display:block;
  }

  .affiliate-hero__content{
    width:100%;padding:0;
  }

  .affiliate-kicker{
    margin:0 0 24px;
    padding-left:12px;
    border-left:4px solid var(--affiliate-blue);
    font-size:12px;letter-spacing:.08em;
  }

  .affiliate-hero h1{
    font-size:clamp(39px,11.5vw,52px);
    line-height:1.15;
    letter-spacing:.025em;
    white-space:nowrap;
  }

  .affiliate-hero__lead{
    width:56%;
    margin-top:24px;
    font-size:clamp(20px,5.6vw,26px);
    line-height:1.7;
  }

  .affiliate-hero__text{
    width:59%;
    margin-top:22px;
    font-size:clamp(12px,3.2vw,14px);
    line-height:1.95;
  }

  .affiliate-hero__text br{
    display:block;
  }

  .affiliate-hero__visual{
    /* FormXモバイル版と同じ画像枠・配置 */
    top:calc(
      25px +
      clamp(10px,2.8vw,12px) +
      14px
    );
    right:clamp(-105px,-22vw,-70px);
    bottom:auto;
    width:clamp(280px,88vw,380px);
    height:clamp(260px,78vw,340px);
    margin:0;
    overflow:hidden;
    align-items:center;
    -webkit-mask-image:none;
    mask-image:none;
  }

  .affiliate-hero__visual img{
    width:100%;
    height:100%;
    max-height:none;
    object-fit:contain;
    object-position:74% center;
  }

  /* FormXと同じ、文字側へなじませる白グラデーション */
  .affiliate-hero__visual::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:2;
    background:linear-gradient(
      90deg,
      #fff 0%,
      rgba(255,255,255,.92) 12%,
      rgba(255,255,255,.38) 28%,
      rgba(255,255,255,0) 48%
    );
    pointer-events:none;
  }

  .affiliate-hero-benefits{
    display:block;
    padding:14px 20px 24px;
  }

  .affiliate-hero-benefits__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .affiliate-hero-benefits__grid article{
    min-height:122px;
    padding:14px 8px;
    text-align:center;
    border-right:1px solid var(--affiliate-line);
    border-bottom:1px solid var(--affiliate-line);
  }

  .affiliate-hero-benefits__grid article:nth-child(2n){
    border-right:none;
  }
  .affiliate-hero-benefits__grid article:nth-last-child(-n+2){
    border-bottom:none;
  }

  .affiliate-hero-benefits__grid img{
    width:66px;
    margin:0 auto 8px;
  }

  .affiliate-hero-benefits__grid h2{
    margin:0;
    font-family:var(--affiliate-serif);
    font-size:15px;
    line-height:1.55;
    font-weight:600;
  }

  .affiliate-problems .affiliate-section-title{
    margin-bottom:16px;
  }

  .affiliate-problem-grid{
    grid-template-columns:1fr;
  }

  .affiliate-problem-grid article{
    min-height:110px;
    padding:13px 4px;
    display:grid;
    grid-template-columns:88px 1fr;
    align-items:center;
    gap:15px;
    text-align:left;
    border-right:none;
    border-bottom:1px solid var(--affiliate-line);
  }

  .affiliate-problem-grid article:last-child{
    border-bottom:none;
  }

  .affiliate-problem-grid img{
    width:80px;
    margin:0;
  }

  .affiliate-problem-grid h3{
    font-size:19px;
    line-height:1.5;
  }

  .affiliate-problem-grid p{
    display:block;
    margin:6px 0 0;
    color:#111;
    font-family:var(--affiliate-serif);
    font-size:13.5px;
    line-height:1.7;
  }

  .affiliate-overview__grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .affiliate-comparison,.affiliate-support{
    padding:12px 14px 16px;
  }

  .affiliate-comparison .affiliate-panel-title,
  .affiliate-support .affiliate-panel-title{
    margin-bottom:16px;
  }

  .affiliate-comparison__grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .affiliate-compare-card img{
    aspect-ratio:2.72/1;
    border-radius:8px;
  }

  .affiliate-compare-card ul{
    margin:7px 0 0;
  }

  .affiliate-compare-card li{
    margin-top:4px;
    padding-left:22px;
    font-size:13px;
  }

  .affiliate-comparison__arrow{
    font-size:43px;
    transform:rotate(90deg);
  }

  .affiliate-support__grid article{
    min-height:116px;
    padding:7px 6px 12px;
  }

  .affiliate-support__grid img{
    width:62px;
    margin-bottom:6px;
  }

  .affiliate-support__grid h3{
    font-size:13px;
    line-height:1.45;
  }

  .affiliate-flow__panel{
    padding:8px 12px 14px;
  }

  .affiliate-flow__panel .affiliate-panel-title{
    margin-bottom:10px;
  }

  .affiliate-flow__grid{
    position:relative;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-areas:"content audience" "lp contract";
    gap:52px 34px;
    padding:0 10px 4px;
  }

  .affiliate-flow-step--content{
    grid-area:content;
  }

  .affiliate-flow-step--audience{
    grid-area:audience;
  }

  .affiliate-flow-step--lp{
    grid-area:lp;
  }

  .affiliate-flow-step--contract{
    grid-area:contract;
  }

  .affiliate-flow-step h3{
    font-size:14px;
    line-height:1.4;
  }

  .affiliate-flow-step img{
    aspect-ratio:1.52/1;
    border-radius:7px;
  }

  .affiliate-flow-arrow{
    position:absolute;
    font-size:35px;
  }

  .affiliate-flow-arrow--one{
    top:26%;
    left:50%;
    transform:translate(-50%,-50%);
  }

  .affiliate-flow-arrow--two{
    top:50%;
    right:23%;
    transform:translate(50%,-50%) rotate(90deg);
  }

  .affiliate-flow-arrow--three{
    bottom:22%;
    left:50%;
    transform:translate(-50%,50%) rotate(180deg);
  }

  .affiliate-strengths__panel{
    padding:8px 12px 12px;
  }

  .affiliate-strengths__panel .affiliate-panel-title{
    margin-bottom:6px;
  }

  .affiliate-strength-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .affiliate-strength-grid article{
    min-height:102px;
    padding:10px 8px;
    display:grid;
    grid-template-columns:67px 1fr;
    align-items:center;
    gap:6px;
    text-align:left;
    border-right:1px solid var(--affiliate-line);
    border-bottom:1px solid var(--affiliate-line);
  }

  .affiliate-strength-grid article:nth-child(2n){
    border-right:none;
  }

  .affiliate-strength-grid article:nth-last-child(-n+2){
    border-bottom:none;
  }

  .affiliate-strength-grid img{
    width:64px;
    margin:0;
  }

  .affiliate-strength-grid h3{
    font-size:14px;
    line-height:1.45;
  }

  .affiliate-cta{
    padding-top:8px;
    padding-bottom:8px;
  }

  .affiliate-cta__box{
    padding:16px 12px 12px;
    border-radius:12px;
  }

  .affiliate-cta h2{
    margin-bottom:14px;
    font-size:21px;
    line-height:1.55;
  }

  .affiliate-mobile-break{
    display:block;
  }

  .affiliate-cta a{
    min-height:62px;
    padding:8px 14px;
    gap:10px;
    border-radius:10px;
  }

  .affiliate-cta a img{
    width:32px;
    flex-basis:32px;
  }

  .affiliate-cta a span{
    font-size:17px;
    line-height:1.4;
  }

  .affiliate-cta p{
    margin-top:10px;
    font-size:13px;
    line-height:1.65;
  }
}

@media screen and (max-width:390px){
  .affiliate-hero{
    min-height:430px;
  }

  .affiliate-hero__inner{
    min-height:430px;
    padding-inline:14px;
  }

  .affiliate-hero__content{
    width:100%;
  }

  .affiliate-hero h1{
    font-size:38px;
  }

  .affiliate-hero__lead{
    font-size:20px;
  }

  .affiliate-hero__text{
    font-size:12px;
  }

  .affiliate-section-title{
    font-size:21px;
  }

  .affiliate-panel-title{
    font-size:20px;
  }
}

/* =========================================================
   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;
  }
}


.affiliate-page,
.affiliate-problems,
.affiliate-overview,
.affiliate-flow,
.affiliate-strengths{
  background:transparent!important;
}
.affiliate-panel,
.affiliate-problem-grid article,
.affiliate-compare-card,
.affiliate-support__grid article,
.affiliate-flow-step,
.affiliate-strength-grid article{
  background-color:rgba(255,255,255,.82)!important;
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}

/* =========================================================
   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;
  }
}

/* =========================================================
   AI AFFILIATE HERO — PC位置固定の最終上書き
   下部の共通指定で .affiliate-page が1620pxに制限されるため、
   このページだけPC時も画面幅いっぱいに戻す。
========================================================= */
@media screen and (min-width:1101px){
  .affiliate-page{
    width:100%!important;
    max-width:none!important;
  }

  /* ヘッダー・ヒーロー・次セクション間の縦余白を圧縮 */
  .affiliate-hero,
  .affiliate-hero__inner{
    min-height:520px;
  }

  .affiliate-hero__visual{
    /* 他サービスページと同じ右側中央を基準にする */
    top:50%;
    right:-40px!important;
    bottom:auto;
    width:min(54vw,780px);
    transform:translateY(-50%);
  }

  .affiliate-hero__visual img{
    max-height:480px;
  }

  .affiliate-problems{
    padding-top:16px;
  }
}


/* Vector hero rendering */
img[src$=".svg"]{
  image-rendering:auto;
}

/* MOBILE: hero bottom spacing */
@media screen and (max-width:767px){
  .affiliate-hero,.affiliate-hero__inner{min-height:clamp(325px,98vw,380px)}
  .affiliate-hero__inner{padding-bottom:0}
  .affiliate-problems{padding-top:8px}
}

/* MOBILE: shared hero typography */
@media screen and (max-width:767px){
  .affiliate-kicker{font-size:12px;line-height:1.4;font-weight:600}
  .affiliate-hero h1{font-size:clamp(42px,12vw,52px);line-height:1.08;font-weight:500}
  .affiliate-hero__lead{font-size:clamp(20px,5.6vw,26px);line-height:1.65;font-weight:500}
  .affiliate-hero__text{font-size:13px;line-height:1.9;font-weight:500}
}

/* =========================================================
   2026-08-07 AI AFFILIATE — comparison / support vertical
   ・Before / Afterを写真上・説明下の横並びカードへ変更
   ・導入前は丸囲み×、導入後は丸囲み✓
   ・比較セクションとサポート内容を上下に配置
========================================================= */

/* 「導入前と導入後の違い」の下に「サポート内容」を配置 */
.affiliate-overview__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:24px;
  align-items:stretch;
}

.affiliate-comparison,
.affiliate-support{
  width:100%;
  padding:28px 28px 32px;
}

.affiliate-comparison .affiliate-panel-title,
.affiliate-support .affiliate-panel-title{
  margin-bottom:30px;
}

/* Before / After：写真を上、見出しと説明を下へ */
.affiliate-comparison__grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);
  gap:24px;
  align-items:stretch;
  width:100%;
  max-width:1220px;
  margin-inline:auto;
}

.affiliate-compare-card{
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--affiliate-line);
  border-radius:16px;
  background:rgba(255,255,255,.92);
}

.affiliate-compare-card__image{
  position:relative;
  min-width:0;
  margin:28px 28px 0;
  overflow:hidden;
  border:1px solid rgba(8,74,190,.11);
  border-radius:12px;
  background:#f7faff;
}

.affiliate-compare-card__image img{
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center;
  border-radius:0;
}

.affiliate-compare-card--before .affiliate-compare-card__image img{
  filter:grayscale(.88);
}

.affiliate-compare-card__label{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  min-width:88px;
  padding:9px 18px;
  border-radius:12px;
  color:#fff;
  background:#111;
  box-shadow:0 6px 15px rgba(0,0,0,.16);
  font-family:var(--affiliate-sans);
  font-size:17px;
  font-weight:700;
  line-height:1;
  text-align:center;
}

.affiliate-compare-card--after .affiliate-compare-card__label{
  background:linear-gradient(135deg,#0758df,var(--affiliate-blue));
  box-shadow:0 6px 15px rgba(8,109,243,.22);
}

.affiliate-compare-card__body{
  min-width:0;
  flex:1;
  padding:24px 30px 30px;
}

.affiliate-compare-card__body h3{
  margin:0 0 16px;
  color:var(--affiliate-navy);
  font-family:var(--affiliate-serif);
  font-size:21px;
  font-weight:600;
  line-height:1.55;
  letter-spacing:.04em;
}

.affiliate-compare-card--after .affiliate-compare-card__body h3{
  color:#075bdc;
}

.affiliate-compare-card ul{
  margin:0;
  padding:0;
  list-style:none;
}

.affiliate-compare-card li{
  position:relative;
  margin-top:12px;
  padding-left:42px;
  font-family:var(--affiliate-serif);
  font-size:15px;
  line-height:1.7;
}

.affiliate-compare-card li:first-child{
  margin-top:0;
}

.affiliate-compare-card li::before{
  content:"×";
  position:absolute;
  top:.08em;
  left:0;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  background:#5f708e;
  font-family:Arial,sans-serif;
  font-size:20px;
  font-weight:700;
  line-height:1;
}

.affiliate-compare-card--after li::before{
  content:"✓";
  background:var(--affiliate-blue);
  font-size:18px;
}

/* 中央の太い黒矢印 */
.affiliate-comparison__arrow{
  position:relative;
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:transparent;
  font-size:0;
  line-height:1;
}

.affiliate-comparison__arrow::before{
  content:"";
  width:44px;
  height:6px;
  border-radius:999px;
  background:#111;
}

.affiliate-comparison__arrow::after{
  content:"";
  width:17px;
  height:17px;
  margin-left:-18px;
  border-top:6px solid #111;
  border-right:6px solid #111;
  transform:rotate(45deg);
}

/* サポート内容：比較セクションの下で横一列 */
.affiliate-support__grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  align-items:stretch;
  border:1px solid var(--affiliate-line);
  border-radius:10px;
  overflow:hidden;
}

.affiliate-support__grid article,
.affiliate-support__grid article:nth-child(3n),
.affiliate-support__grid article:nth-last-child(-n+3){
  min-width:0;
  min-height:190px;
  height:auto;
  padding:24px 12px 22px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  border-right:1px solid var(--affiliate-line);
  border-bottom:0;
  background:#fff;
}

.affiliate-support__grid article:last-child{
  border-right:0;
}

.affiliate-support__grid img{
  width:100px;
  height:100px;
  margin:0 auto 12px;
  flex:0 0 100px;
  object-fit:contain;
}

.affiliate-support__grid h3{
  margin:0;
  font-family:var(--affiliate-serif);
  font-size:clamp(14px,1.05vw,18px);
  font-weight:600;
  line-height:1.55;
}

@media screen and (max-width:1100px){
  .affiliate-comparison,
  .affiliate-support{
    padding:24px 20px 28px;
  }

  .affiliate-comparison__grid{
    grid-template-columns:minmax(0,1fr) 50px minmax(0,1fr);
    gap:16px;
  }

  .affiliate-compare-card__image{
    margin:20px 20px 0;
  }

  .affiliate-compare-card__body{
    padding:20px 22px 24px;
  }

  .affiliate-compare-card__body h3{
    font-size:18px;
  }

  .affiliate-compare-card li{
    padding-left:36px;
    font-size:13px;
  }

  .affiliate-compare-card li::before{
    width:25px;
    height:25px;
    font-size:18px;
  }

  .affiliate-compare-card--after li::before{
    font-size:16px;
  }

  .affiliate-support__grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .affiliate-support__grid article,
  .affiliate-support__grid article:nth-child(3n),
  .affiliate-support__grid article:nth-last-child(-n+3){
    min-height:180px;
    border-right:1px solid var(--affiliate-line);
    border-bottom:1px solid var(--affiliate-line);
  }

  .affiliate-support__grid article:nth-child(3n){
    border-right:0;
  }

  .affiliate-support__grid article:nth-last-child(-n+3){
    border-bottom:0;
  }
}

@media screen and (max-width:767px){
  .affiliate-overview__grid{
    gap:14px;
  }

  .affiliate-comparison,
  .affiliate-support{
    padding:18px 10px 20px;
  }

  .affiliate-comparison .affiliate-panel-title,
  .affiliate-support .affiliate-panel-title{
    margin-bottom:22px;
  }

  .affiliate-comparison__grid{
    grid-template-columns:1fr;
    gap:12px;
    max-width:620px;
  }

  .affiliate-compare-card{
    border-radius:14px;
  }

  .affiliate-compare-card__image{
    margin:12px 12px 0;
  }

  .affiliate-compare-card__label{
    top:9px;
    left:9px;
    min-width:72px;
    padding:8px 13px;
    border-radius:10px;
    font-size:14px;
  }

  .affiliate-compare-card__body{
    padding:17px 16px 20px;
  }

  .affiliate-compare-card__body h3{
    margin-bottom:13px;
    font-size:16px;
  }

  .affiliate-compare-card li{
    margin-top:9px;
    padding-left:33px;
    font-size:12px;
    line-height:1.65;
  }

  .affiliate-compare-card li::before{
    width:23px;
    height:23px;
    font-size:16px;
  }

  .affiliate-compare-card--after li::before{
    font-size:15px;
  }

  .affiliate-comparison__arrow{
    min-height:42px;
    flex-direction:column;
    transform:none;
  }

  .affiliate-comparison__arrow::before{
    width:6px;
    height:30px;
  }

  .affiliate-comparison__arrow::after{
    width:15px;
    height:15px;
    margin-top:-17px;
    margin-left:0;
    border-top:0;
    border-right:6px solid #111;
    border-bottom:6px solid #111;
    transform:rotate(45deg);
  }

  .affiliate-support__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .affiliate-support__grid article,
  .affiliate-support__grid article:nth-child(3n),
  .affiliate-support__grid article:nth-last-child(-n+3){
    min-height:0;
    padding:18px 8px 20px;
    border-right:1px solid var(--affiliate-line);
    border-bottom:1px solid var(--affiliate-line);
  }

  .affiliate-support__grid article:nth-child(2n){
    border-right:0;
  }

  .affiliate-support__grid article:nth-last-child(-n+2){
    border-bottom:0;
  }

  .affiliate-support__grid img{
    width:76px;
    height:76px;
    margin-bottom:10px;
    flex-basis:76px;
  }

  .affiliate-support__grid h3{
    font-size:13px;
    line-height:1.5;
  }
}

