/* ==========================================================
   indicator ページ専用スタイル
   共通の style.css の後に読み込む。他ページへの影響を避けるため
   すべて .indicatorSection / .indicatorHeading 配下に限定する。
   ========================================================== */

/* ページタイトル（共通 .pageHeader の画像を全幅バナーに差し替え）
   ---------------------------------------------------------- */
.reason .indicatorPageHeader .pageHeader__inner {
  padding-top: 0;
  justify-content: center;
}
.reason .indicatorPageHeader .pageHeader__inner picture {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 1280/210;
}

/* ページ内リンク
   ---------------------------------------------------------- */
.indicatorAnchor__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.68vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media screen and (max-width: 1000px) {
  .indicatorAnchor__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media screen and (max-width: 768px) {
  .indicatorAnchor__list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.indicatorAnchor__link {
  height: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px;
  background: var(--yellow);
  border-radius: 10px;
}
@media screen and (max-width: 768px) {
  .indicatorAnchor__link {
    min-height: 64px;
    padding: 12px;
  }
}

.indicatorAnchor__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(14px, calc(1vw + 3px), 24px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  filter: drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000)
    drop-shadow(0 0 2px #000);
  text-shadow: 2px 2px 0 #000;
}
/* 1カラムのSPでは改行せず横並び（幅が足りなければ折り返す） */
@media screen and (max-width: 768px) {
  .indicatorAnchor__text {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 0.5em;
    font-size: clamp(17px, calc(2vw + 10px), 24px);
  }
}

.indicatorAnchor__arrow {
  width: 32px;
  aspect-ratio: 1;
  flex-shrink: 0;
  position: relative;
  background: var(--white);
  border-radius: 5px;
}
.indicatorAnchor__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 11px;
  height: 7px;
  background: var(--black);
  mask-image: url(data:image/svg+xml,%3Csvg%20width%3D%2214%22%20height%3D%229%22%20viewBox%3D%220%200%2014%209%22%20fill%3D%22none%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0.707092%200.707108L6.70709%206.70711L12.7071%200.707108%22%20stroke%3D%22white%22%20stroke-width%3D%222%22/%3E%3C/svg%3E);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
@media screen and (max-width: 768px) {
  .indicatorAnchor__arrow {
    width: 24px;
  }
}
/* PC：hover で矢印を下に弾ませる（mt_mac_lp のアンカーリンクと同じ動き） */
@media screen and (min-width: 769px) {
  .indicatorAnchor__link:hover .indicatorAnchor__arrow::before {
    animation: indicatorAnchorArrowBounce 0.6s ease-out;
  }
}
@keyframes indicatorAnchorArrowBounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 見出し（ロゴ + タイトル）
   ---------------------------------------------------------- */
.indicatorHeading {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}
@media screen and (max-width: 768px) {
  .indicatorHeading {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
}

.indicatorHeading__logos {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 20px;
  background: var(--white);
  border-radius: 10px;
  list-style: none;
  margin: 0;
}
@media screen and (max-width: 768px) {
  .indicatorHeading__logos {
    padding: 12px;
  }
}

.indicatorHeading__logo {
  width: 90px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  .indicatorHeading__logo {
    width: 64px;
  }
}

.indicatorHeading__logo img {
  width: 77%;
  height: auto;
  object-fit: contain;
}
/* TradingView：黒地に白ロゴ */
.indicatorHeading__logo--tv {
  background: #000;
  border-color: #000;
}
.indicatorHeading__logo--tv img {
  width: 89%;
}
/* 枠いっぱいに表示するロゴ（FXキーストン） */
.indicatorHeading__logo--full img {
  width: 100%;
}

/* ロゴ横の人物写真（枠の上下右いっぱいに配置） */
.indicatorHeading__person {
  width: 130px;
  height: 130px;
  margin: -20px -20px -20px 16px;
  overflow: hidden;
  border-radius: 0 10px 10px 0;
}
@media screen and (max-width: 768px) {
  .indicatorHeading__person {
    width: 88px;
    height: 88px;
    margin: -12px -12px -12px 8px;
  }
}
.indicatorHeading__person img {
  /* 写真の位置は人物ごとに --w / --x / --y（枠幅に対する%）で調整 */
  width: var(--w, 100%);
  max-width: none;
  height: auto;
  margin: var(--y, 0) 0 0 var(--x, 0);
}
.indicatorHeading__person--fuuta {
  --w: 90%;
  --x: 4.6%;
  --y: 7.7%;
}
.indicatorHeading__person--busena {
  --w: 63.1%;
  --x: 18.5%;
  --y: 13.8%;
}
.indicatorHeading__person--kuroyuki {
  --w: 107.7%;
  --x: -7.7%;
  --y: 3.1%;
}
.indicatorHeading__person--yenzo {
  --w: 120.8%;
  --x: -2.3%;
  --y: -2.3%;
}
.indicatorHeading__person--hiropy {
  --w: 94.6%;
  --y: 3.1%;
}

/* 共通の .modHighLightHeading を左寄せ・余白なしで使う */
.indicatorHeading__title.modHighLightHeading {
  flex: 1;
  margin-bottom: 0;
  text-align: left;
}
.indicatorHeading__title .modHighLightHeading__main {
  padding-inline: 0 20px;
}
@media screen and (max-width: 768px) {
  .indicatorHeading__title.modHighLightHeading {
    margin-inline: 0;
    text-align: center;
  }
  .indicatorHeading__title .modHighLightHeading__main {
    font-size: 32px;
    font-size: 3.2rem;
    padding-inline: 8px;
  }
}

/* コンテンツ枠
   ---------------------------------------------------------- */
.indicatorSection .modSection__content--white {
  padding: 64px;
}
@media screen and (max-width: 1000px) {
  .indicatorSection .modSection__content--white {
    padding: 40px 30px;
  }
}
@media screen and (max-width: 768px) {
  .indicatorSection .modSection__content--white {
    padding: 32px 16px;
  }
}

/* アコーディオン：初期状態を open にする
   （HTML 側で question に .is-active を付与。開閉は共通 util.js のまま）
   ---------------------------------------------------------- */
.indicatorSection .modAccordion__item__answer {
  display: flex;
}

/* タイアップキャンペーン
   ---------------------------------------------------------- */
.indicatorCampaign {
  margin-bottom: 64px;
}
@media screen and (max-width: 768px) {
  .indicatorCampaign {
    margin-bottom: 32px;
  }
}

.indicatorCampaign__title {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 48px;
  /* 1440px幅で48px（デザイン値）からスケール */
  font-size: clamp(22px, 3.34vw, 48px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--black);
}
.indicatorCampaign__title::after {
  content: "";
  display: block;
  height: 9px;
  margin-top: 16px;
  background-image: radial-gradient(circle, var(--yellow) 4.5px, transparent 4.5px);
  background-size: 18px 9px;
  background-repeat: repeat-x;
}
@media screen and (max-width: 768px) {
  .indicatorCampaign__title {
    line-height: 1.4;
    margin-bottom: 32px;
  }
  .indicatorCampaign__title::after {
    height: 6px;
    margin-top: 8px;
    background-image: radial-gradient(circle, var(--yellow) 3px, transparent 3px);
    background-size: 12px 6px;
  }
}

.indicatorCampaign__btns {
  display: flex;
  gap: 32px;
}
@media screen and (max-width: 768px) {
  .indicatorCampaign__btns {
    flex-direction: column;
    gap: 24px;
  }
}

.indicatorCampaign__btnItem {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
@media screen and (max-width: 768px) {
  .indicatorCampaign__btnItem {
    gap: 12px;
  }
}

.indicatorCampaign__label {
  /* 1440px幅で24px（デザイン値）からスケール */
  font-size: clamp(16px, 1.67vw, 24px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: var(--black);
}

/* 共通の .modBtn / .modBtn--pink に立体の影とサイズを追加 */
.indicatorCampaign__btn {
  --btnDepth: 10px;
  --btnShadow: #086e47;
  /* 1440px幅で高さ100px・文字28px（デザイン値）からスケール */
  min-height: clamp(72px, 6.95vw, 100px);
  margin-bottom: var(--btnDepth);
  font-size: clamp(18px, 1.95vw, 28px);
  border-radius: 10px;
  background: var(--green);
  box-shadow: 0 var(--btnDepth) 0 var(--btnShadow);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.indicatorCampaign__btn.modBtn--pink {
  --btnShadow: #cc2575;
  background: var(--pink);
}
/* hover で影の厚み分だけ沈み込む（共通 .modBtn の opacity は打ち消す） */
.indicatorCampaign__btn:hover {
  opacity: 1;
  transform: translateY(var(--btnDepth));
  box-shadow: 0 0 0 var(--btnShadow);
}
@media screen and (max-width: 768px) {
  .indicatorCampaign__btn {
    --btnDepth: 6px;
  }
}

/* この記事を書いた人
   ---------------------------------------------------------- */
.indicatorAuthor {
  margin-top: 64px;
  padding: 24px;
  background: var(--white);
  border-radius: 10px;
  color: var(--black);
}
@media screen and (max-width: 768px) {
  .indicatorAuthor {
    margin-top: 32px;
    padding: 16px;
  }
}

.indicatorAuthor__heading {
  margin-bottom: 24px;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}
@media screen and (max-width: 768px) {
  .indicatorAuthor__heading {
    margin-bottom: 16px;
  }
}

.indicatorAuthor__body {
  display: flex;
  align-items: flex-start;
  gap: 33px;
}
@media screen and (max-width: 768px) {
  .indicatorAuthor__body {
    gap: 16px;
  }
}

.indicatorAuthor__img {
  width: 100px;
  aspect-ratio: 1;
  flex-shrink: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--white2);
}
@media screen and (max-width: 768px) {
  .indicatorAuthor__img {
    width: 64px;
  }
}
.indicatorAuthor__img img {
  /* 写真の位置は人物ごとに --w / --x / --y（枠幅に対する%）で調整 */
  width: var(--w, 100%);
  max-width: none;
  height: auto;
  margin: var(--y, 0) 0 0 var(--x, 0);
}
/* ロゴを表示する場合：白地＋枠線 */
.indicatorAuthor__img--logo {
  background: var(--white);
  border: 1px solid #eee;
}
.indicatorAuthor__img--fuuta {
  --w: 104%;
  --x: 5%;
  --y: 7%;
}
.indicatorAuthor__img--busena {
  --w: 66%;
  --x: 17%;
  --y: 9%;
}
.indicatorAuthor__img--keyston {
  --w: 80%;
  --x: 10%;
  --y: 10%;
}
.indicatorAuthor__img--kuroyuki {
  --w: 73%;
  --x: 13%;
  --y: 4%;
}
.indicatorAuthor__img--yenzo {
  --w: 139%;
  --x: 8%;
  --y: -7%;
}
.indicatorAuthor__img--hiropy {
  --w: 112%;
  --y: -1%;
}

.indicatorAuthor__text {
  flex: 1;
}

.indicatorAuthor__name {
  margin-bottom: 8px;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.indicatorAuthor__profile {
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.8;
  word-break: break-all;
}

/* ページトップへ（mt_inst_lp の .p-dmrlSection__pageToTop を流用）
   ---------------------------------------------------------- */
.indicatorPageToTop {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0 0 auto;
  color: var(--black);
  font-weight: 700;
  transition: opacity 0.3s ease;
}
.indicatorPageToTop::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: url("../images/pageToTop-arrow.svg") no-repeat center/contain;
}
.indicatorPageToTop:hover {
  opacity: 0.6;
}
@media screen and (max-width: 767px) {
  .indicatorPageToTop {
    margin-top: 24px;
  }
  .indicatorPageToTop::before {
    width: 28px;
    height: 28px;
  }
  .indicatorPageToTop span {
    font-size: 0.875em;
  }
}

/* アコーディオンの開閉ボタン（見出し内の button。見た目は見出しのまま）
   ---------------------------------------------------------- */
.indicatorAccordionToggle {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: pointer;
}
.indicatorAccordionToggle:focus {
  outline: none;
}
/* キーボード操作時は見出し全体にフォーカス枠を出す */
.modAccordion__item__question:has(.indicatorAccordionToggle:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* アコーディオン本文の下のリンク */
.indicatorSection .text__item .modBtnText {
  margin-top: 16px;
}
/* リンクの色（共通 .modBtnText の緑を上書き） */
.indicatorLink--pink .modBtnText__inner {
  color: var(--pink);
  background-image: linear-gradient(var(--pink), var(--pink));
}
.indicatorLink--blue .modBtnText__inner {
  color: #2962ff;
  background-image: linear-gradient(#2962ff, #2962ff);
}
