/* 必要なら :root で色変数定義 */
:root{
  --toc-text-primary:#ffffff;
  --gray: #575757;
}

/* ===== Hero ===== */
.toc-hero{
  position:relative;
  min-height:1024px;
  height: 100vh;
}

.toc-hero__bg{
  position:absolute; inset:0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  will-change: transform;
}

.toc-hero__content{
  position:absolute; z-index:2;
  text-align:center;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.toc-hero__logo{
  margin-bottom:40px;
  animation: toc-fadeInUp 1s ease-out both;
}

.toc-hero__tagline{
  font-family: "Shippori Mincho", serif;
  font-style: normal;
  font-size:25px;
  font-weight:700;
  color: var(--gray);
  margin:0;
  animation: toc-fadeInUp 1s ease-out .3s both;
}

/* 下部SVG */
.toc-hero__bottom-svg {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2; /* コンテンツの上に表示 */
}

.toc-hero__bottom-svg img {
  width: 100%;
  height: auto;
  display: block;
}

/* 配置：ヒーローの下辺中央に固定 */
.scroll-indicator{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 28px; height: 15vh;
  display: grid; place-items: center;
  background: transparent;
  border: 0; padding: 0; cursor: pointer;
  z-index:10;
}

/* 縦ライン */
.scroll-indicator__line{
  position: absolute;
  width: 1px;
  height: 15vh;
  background: #6FA8DB;
  border-radius: 999px;
}

.scroll-indicator__dot {
  --size: 18px;
  width: var(--size);
  height: var(--size);
  background: #6FA8DB;
  border-radius: 50%;
  animation: scroll-dot 2.5s ease-in-out infinite;
}

/* 丸が縦ラインに沿って往復 */
@keyframes scroll-dot {
  0% {
    transform: translateY(-7vh);     /* 上端 */
    opacity: 1;
  }
  80% {
    opacity: 0.1;                 /* 下に近づいたらフェードアウト */
  }
  100% {
    transform: translateY(7vh); /* 下端 */
    opacity: 0;                   /* 下で消える */
  }
}

/* モーションを減らす設定に配慮 */
@media (prefers-reduced-motion: reduce){
  .scroll-indicator__dot{ animation: none; }
}

@keyframes toc-fadeInUp{
  from{ opacity:0; transform:translateY(30px); }
  to{ opacity:1; transform:translateY(0); }
}

@media (max-width:768px){
  .toc-hero{ min-height: 560px;
    height: 80vh;
  }
  .scroll-indicator {
    bottom: 0;
  }
  .toc-hero__logo img{ width:300px; height:auto; }
  .toc-hero__tagline{ font-size:20px; }
}


.index-bottom-circle {
  position: absolute;
  right: 0;
  bottom: -10%;
  width: clamp(200px, 30vw, 560px); 
  height: clamp(200px, 30vw, 560px); 
  z-index: 3;
}

.index-bottom-circle__img {
  transform-origin: center;
  animation: ibc-spin 60s linear infinite;
}

@keyframes ibc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== responsive ===== */
@media (max-width: 1280px){
  .index-bottom-circle{
    bottom: 2%;
  }
  .index-bottom-circle__img {
    width: 600px;
    height: 600px;
  }
}
@media (max-width: 768px){
  .index-bottom-circle__img {
    width: 400px;
    height: 400px;
  }
}
