@charset "UTF-8";
/* ============================================================
   トップページ / スライダー直下の8項目（アイコン型・枠なし）
   添付アイコンに倣った「太めの丸い線画・単色・背景プレートなし」
   - .ygh-goals--line : 単色（ネイビー）
   - .ygh-goals--color: 項目ごとに色分け
   Cache: ?v=20261110b
   ============================================================ */

.ygh-goals{
  --goals-icon: 42px;
  display:grid;
  grid-template-columns:repeat(8, minmax(0,1fr));
  gap:8px 4px;
  margin:-6px 0 34px;
  padding:0;
  list-style:none;
}

.ygh-goals__item{position:relative;margin:0;padding:0;min-width:0}

/* ---- 項目間の細い仕切り線（グレー） ---- */
.ygh-goals__item + .ygh-goals__item::before{
  content:"";
  position:absolute;
  left:-2px;
  top:16%;
  bottom:16%;
  width:1px;
  background:#dde2e9;
  pointer-events:none;
}

.ygh-goals__link{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  height:100%;
  padding:8px 4px 10px;
  border-radius:8px;
  color:#1f2a38;
  text-decoration:none;
  transition:background .18s, color .18s, transform .18s;
}

.ygh-goals__icon{
  display:block;
  width:var(--goals-icon);
  height:var(--goals-icon);
  color:#003c8c;
  transition:color .18s, transform .18s;
}
.ygh-goals__icon svg{
  display:block;
  width:100%;
  height:100%;
}

.ygh-goals__label{
  display:block;
  font-size:.78rem;
  font-weight:700;
  line-height:1.55;
  letter-spacing:.01em;
  text-align:center;
  color:#1f2a38;
  transition:color .18s;
}

.ygh-goals__link:hover,
.ygh-goals__link:focus-visible{background:#f4f8fd;transform:translateY(-2px)}
.ygh-goals__link:hover .ygh-goals__label,
.ygh-goals__link:focus-visible .ygh-goals__label{color:#003c8c}
.ygh-goals__link:focus-visible{outline:2px solid #003c8c;outline-offset:2px}

/* ---- 色分けパターン ---- */
.ygh-goals--color .ygh-goals__item:nth-child(8n+1) .ygh-goals__icon{color:#003c8c}
.ygh-goals--color .ygh-goals__item:nth-child(8n+2) .ygh-goals__icon{color:#00a0e9}
.ygh-goals--color .ygh-goals__item:nth-child(8n+3) .ygh-goals__icon{color:#009e96}
.ygh-goals--color .ygh-goals__item:nth-child(8n+4) .ygh-goals__icon{color:#4fa872}
.ygh-goals--color .ygh-goals__item:nth-child(8n+5) .ygh-goals__icon{color:#00a0e9}
.ygh-goals--color .ygh-goals__item:nth-child(8n+6) .ygh-goals__icon{color:#ef8b28}
.ygh-goals--color .ygh-goals__item:nth-child(8n+7) .ygh-goals__icon{color:#009e96}
.ygh-goals--color .ygh-goals__item:nth-child(8n+8) .ygh-goals__icon{color:#e0545e}

/* ---- レスポンシブ ---- */
@media (max-width:1024px){
  .ygh-goals{--goals-icon:38px;gap:6px 2px}
  .ygh-goals__label{font-size:.74rem}
  .ygh-goals__link{gap:8px;padding:6px 2px 8px}
}

@media (max-width:860px){
  .ygh-goals{grid-template-columns:repeat(4, minmax(0,1fr));gap:10px 4px}
  .ygh-goals__label{font-size:.78rem}
  .ygh-goals__item:nth-child(4n+1)::before{content:none}
}

@media (max-width:767px){
  .ygh-goals{--goals-icon:36px;gap:10px 2px;margin:-4px 0 24px}
  .ygh-goals__label{font-size:.72rem;line-height:1.5}
}

@media (max-width:420px){
  .ygh-goals{grid-template-columns:repeat(3, minmax(0,1fr))}
  .ygh-goals__label{font-size:.7rem}
  .ygh-goals__item:nth-child(4n+1)::before{content:""}
  .ygh-goals__item:nth-child(3n+1)::before{content:none}
}
