/*CTA1合わせて読みたい*/
#ar-related { --ar-accent:#1a6cc4; }          /* ← サイトのブランドカラーに変更可 */

#ar-related, #ar-related * { box-sizing: border-box; }
#ar-related { max-width: 880px; margin: 32px auto; }

#ar-related .ar-head { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 16px; }
#ar-related .ar-head .ar-ic { font-size: 20px; line-height: 1; }

#ar-related .ar-card { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; margin-bottom: 12px; }
#ar-related .ar-card:last-child { margin-bottom: 0; }
#ar-related .ar-card:hover { border-color: var(--ar-accent); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-1px); }

#ar-related .ar-thumb { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 10px; background: #f3f5f8; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
#ar-related .ar-body { flex: 1; min-width: 0; }
#ar-related .ar-title { display: block; font-size: 15px; font-weight: 700; color: #1f2937; line-height: 1.5; margin: 0 0 3px; }
#ar-related .ar-meta { display: block; font-size: 12px; color: #6b7280; line-height: 1.5; margin: 0; }
#ar-related .ar-arrow { flex: 0 0 auto; color: var(--ar-accent); font-size: 22px; line-height: 1; opacity: .85; transition: transform .15s; }
#ar-related .ar-card:hover .ar-arrow { transform: translateX(3px); }

/* Instagram カードのサムネのみブランドグラデーション */
#ar-related .ar-ig .ar-thumb { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#bc1888); color: #fff; }

@media (max-width: 520px) {
  #ar-related .ar-card { gap: 12px; padding: 14px; }
  #ar-related .ar-thumb { width: 46px; height: 46px; flex-basis: 46px; font-size: 22px; }
  #ar-related .ar-title { font-size: 14px; }
}


/*診断コンテンツ*/

  /* 起動カード */
  .launch {
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff8ec, #fff);
    border: 2px solid #d97706;
    border-radius: 14px;
    padding: 26px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .launch .launch-title{
  font-size:20px;
  font-weight:800;
  color:#92500a;
  margin-bottom:6px;
  line-height:1.4;
}

  .launch:before {
    content: "🧭";
    position: absolute;
    right: -8px;
    bottom: -16px;
    font-size: 96px;
    opacity: .07;
  }

  .launch .badge {
    display: inline-block;
    background: #d97706;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .05em;
  }

  .launch p {
    font-size: 13px;
    color: #a16207;
    margin-bottom: 18px;
  }

  .launch button {
    background: #14305c;
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 30px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(20, 48, 92, .25);
    transition: .15s;
  }

  .launch button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(20, 48, 92, .32);
  }

  /* モーダル */
  .diag-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .diag-modal[hidden] {
    display: none;
  }

  .diag-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 48, 92, .6);
    backdrop-filter: blur(2px);
  }

  .diag-panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 38px 34px 32px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
    animation: fade .25s ease-out;
  }

  @keyframes fade {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .diag-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #999;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: .15s;
    z-index: 2;
  }

  .diag-close:hover {
    background: #f0f3f8;
    color: #14305c;
  }

  .diag-progress {
    display: flex;
    gap: 5px;
    margin-bottom: 24px;
  }

  .diag-progress span {
    flex: 1;
    height: 4px;
    background: #e3e9f2;
    border-radius: 2px;
    transition: background .3s;
  }

  .diag-progress span.done,
  .diag-progress span.current {
    background: #14305c;
  }

  .diag-step-label {
    font-size: 11px;
    color: #888;
    letter-spacing: .18em;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .diag-question {
    font-size: 19px;
    font-weight: 700;
    color: #14305c;
    line-height: 1.55;
    margin-bottom: 6px;
  }

  .diag-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 22px;
  }

  .diag-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .diag-choice {
    background: #f5f8fc;
    border: 2px solid #e3e9f2;
    border-radius: 8px;
    padding: 16px 18px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #2a2a2a;
    line-height: 1.5;
    font-family: inherit;
    font-weight: 500;
    transition: .15s;
  }

  .diag-choice:hover {
    border-color: #14305c;
    background: #fff;
    transform: translateX(2px);
  }

  /* 結果 */
  .result-hero {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 26px;
  }

  .type-label {
    display: inline-block;
    background: #14305c;
    color: #fff;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    margin-bottom: 14px;
  }

  .type-name {
    font-size: 24px;
    color: #14305c;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .type-tagline {
    font-size: 13px;
    color: #c2410c;
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: 14px;
  }

  .type-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.85;
    text-align: left;
    background: #f7faff;
    padding: 18px 20px;
    border-radius: 8px;
    border-left: 3px solid #14305c;
  }

  .result-section {
    margin-bottom: 28px;
  }

  .result-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid #f0f3f8;
    font-size: 16px;
    color: #14305c;
    font-weight: 700;
  }

  .result-section h4 small {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-left: auto;
  }

  .uni-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .uni-card {
    display: block;
    background: #fff;
    border: 1px solid #dfe7f2;
    border-radius: 10px;
    padding: 18px 20px;
    transition: .15s;
    text-decoration: none;
    color: inherit;
  }

  .uni-card:hover {
    border-color: #14305c;
    box-shadow: 0 6px 16px rgba(20, 48, 92, .1);
    transform: translateY(-2px);
  }

  .uni-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 9px;
    flex-wrap: wrap;
  }

  .uni-name {
    font-size: 16px;
    font-weight: 700;
    color: #14305c;
    line-height: 1.4;
  }

  .uni-city {
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
  }

  .uni-city:before {
    content: "📍 ";
  }

  .uni-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .uni-badge {
    background: #fff3da;
    color: #b45309;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
  }

  .uni-fit {
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .uni-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #06c755;
  }

  .uni-link .arrow {
    transition: .15s;
  }

  .uni-card:hover .uni-link .arrow {
    transform: translateX(3px);
  }

  .pathway-card {
    background: #fffaf0;
    border: 1px solid #f0d9a8;
    border-radius: 8px;
    padding: 18px 20px;
  }

  .pathway-label {
    display: inline-block;
    background: #d97706;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .pathway-text {
    font-size: 13px;
    color: #6b4d12;
    line-height: 1.75;
  }

  .cta-section {
    background: linear-gradient(135deg, #14305c 0%, #1f4480 100%);
    border-radius: 10px;
    padding: 28px 24px;
    color: #fff;
    text-align: center;
    margin-top: 32px;
  }

  .cta-section h4 {
    color: #fff;
    border: none;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .cta-lead {
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
    line-height: 1.85;
    margin-bottom: 22px;
  }

  .primary-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #06c755;
    color: #fff;
    padding: 16px 36px 14px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(6, 199, 85, .3);
    transition: .15s;
    margin-bottom: 14px;
    cursor: pointer;
  }

  .primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(6, 199, 85, .4);
  }

  .primary-cta .m {
    font-size: 16px;
    font-weight: 700;
  }

  .primary-cta .m:before {
    content: "💬 ";
  }

  .primary-cta .s {
    font-size: 11px;
    opacity: .9;
    margin-top: 2px;
  }

  .cta-reassure {
    font-size: 11px;
    color: rgba(255, 255, 255, .8);
    letter-spacing: .05em;
  }

  .result-foot {
    font-size: 11px;
    color: #9aa3b2;
    line-height: 1.7;
    margin-top: 18px;
    text-align: center;
  }

  .result-actions {
    text-align: center;
    margin-top: 18px;
  }

  .restart {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    text-decoration: underline;
    font-size: 12px;
    padding: 4px 8px;
    font-family: inherit;
  }

  .restart:hover {
    color: #14305c;
  }

  @media(max-width:720px) {

    .diag-panel {
      padding: 32px 22px 26px;
      max-height: 95vh;
    }

    .diag-question {
      font-size: 17px;
    }

    .type-name {
      font-size: 21px;
    }
  }

  /*CTA_3 LINE導線*/
  #cta-consult {
  --cta-bg-1: #14305c;   /* 背景グラデーション（濃）← ブランドカラーに変更可 */
  --cta-bg-2: #1f4480;   /* 背景グラデーション（淡） */
  --cta-line: #06c755;   /* LINEボタン色（通常は変更不要） */
}

#cta-consult, #cta-consult * { box-sizing: border-box; }

#cta-consult {
  max-width: 880px; margin: 32px auto;
  background: linear-gradient(135deg, var(--cta-bg-1), var(--cta-bg-2));
  border-radius: 16px; padding: 36px 28px; color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
#cta-consult::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 0%, rgba(6,199,85,.2), transparent 50%);
}
#cta-consult .cta-in { position: relative; z-index: 1; }

#cta-consult .cta-title { font-size: 21px; font-weight: 800; line-height: 1.55; margin: 0 0 12px; color: #fff; }
#cta-consult .cta-lead { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.85; margin: 0 0 24px; }

#cta-consult .cta-line {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--cta-line); color: #fff; padding: 17px 48px 14px; border-radius: 50px;
  text-decoration: none; box-shadow: 0 8px 24px rgba(6,199,85,.38);
  transition: transform .15s, box-shadow .15s; margin-bottom: 20px;
}
#cta-consult .cta-line:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(6,199,85,.48); }
#cta-consult .cta-line .m { font-size: 17px; font-weight: 800; }
#cta-consult .cta-line .m::before { content: "💬 "; }
#cta-consult .cta-line .s { font-size: 11.5px; opacity: .92; margin-top: 3px; }

#cta-consult .cta-reassure {
  font-size: 12px; color: rgba(255,255,255,.82); letter-spacing: .02em;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 16px; margin: 4px 0 0;
}

@media (max-width: 520px) {
  #cta-consult { padding: 28px 18px; }
  #cta-consult .cta-title { font-size: 18px; }
  #cta-consult .cta-lead { font-size: 13px; }
  #cta-consult .cta-line { padding: 16px 30px 13px; }
  #cta-consult .cta-reassure { font-size: 11px; line-height: 1.9; }
}