/* top_style.css (TOPページ専用)
   style.css（共通）と併用しても他ページを壊しにくいように、
   :root/body/a/* のグローバル指定はここには置かない方針。
   ポップアップ幅を変えたいときは .tc-tip の width を調整。
*/

.tc-wrap{ max-width:1040px; margin:0 auto; padding:0 var(--pad); }

/* header */
.tc-header{ border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:20; }
.tc-topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
.tc-brand{ font-weight:800; letter-spacing:.06em; }
.tc-nav{ display:flex; gap:12px; flex-wrap:wrap; font-size:14px; color:var(--muted); }
.tc-nav a{ padding:6px 10px; border-radius:10px;  text-decoration:none; }
.tc-nav a:hover{ background:#f2f2f2; color:var(--text); }

/* hero */
.tc-hero{ padding:18px 0 8px; }
.tc-hero-media{
  position:relative;
  max-width:1280px;   /* 画像の想定サイズ */
  margin:0 auto;
}
.tc-hero-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:24px;
}

/* hotspots */
.tc-hotspot{
  position:absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 72px);
  height: var(--size, 72px);
  transform: translate(-50%, -50%);
  border-radius:999px;
  display:block;
  outline: none;
  /* ツールチップ表示中に他のホットスポットが上に乗らないようにする */
  z-index: 1;
 text-decoration:none; }
.tc-hotspot > img{
  width:100%;
  height:100%;
  display:block;
  transition: transform .12s ease;
}
.tc-hotspot:hover > img,
.tc-hotspot:focus-visible > img{
  transform: scale(1.06);
}
.tc-hotspot:focus-visible{
  box-shadow: 0 0 0 4px rgba(121,207,198,.45);
  border-radius:999px;
}

/* ホバー/フォーカス/タップで開いた要素を最前面へ */
.tc-hotspot:hover,
.tc-hotspot:focus-visible,
.tc-hotspot.tc-open{
  z-index: 50;
}

/* 画像だけを表示 */
.tc-tip img{
  width: 50%;
  height: 50%;
  max-width: none;
  display: block;
}

/* tooltip (popup) : 画像だけ表示（白背景・枠・影を消す） */
.tc-tip{
  position:absolute;
  left: 0;                   /* ボタンの左端基準 */
  bottom: calc(100% + 10px); /* ボタンの上 */
  top: auto;
  transform: translateX(-50px) translateY(4px);
  width: min(260px, 80vw);  /* 画面が狭い時だけ縮む（全ポップアップで同じ） */
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}
/* .tc-tip strong{ display:block; margin-bottom:2px; } */

.tc-hotspot:hover .tc-tip,
.tc-hotspot:focus-visible .tc-tip,
.tc-hotspot.tc-open .tc-tip{
  opacity: 1;
  pointer-events: none; /* 出てもtipの上にマウスが乗っても消える */
  transform: translateX(-50px) translateY(0);
}

/* company line */
.tc-companyline{ text-align:center; padding:14px 0 2px; }
.tc-company{
  font-size:20px;
  text-decoration: underline;
  text-underline-offset: 4px;
  color:#5b2bbf; /* いまの雰囲気に合わせて紫寄り */
}
.tc-company:hover{ opacity:.85; }

/* footer */
.tc-footer{
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  padding:14px 0;
  margin-top:18px;
}

/* small screens */
@media (max-width: 520px){
  .tc-brand{ font-size:14px; }
  .tc-company{ font-size:18px; }
}

.tc-counter{ margin-top:6px; text-align:center; }
.tc-counter img{ display:inline-block; }
