/* Hero (text page) */
.hero {
  padding: 56px 0 18px;
  text-align: center;
}

h1.hero-title {
  font-size: 30px;
  font-weight: bold;
  color: var(--blue);
  margin-bottom: 5px;
  line-height: 1.2;
}

h2.hero-sub-title {
  font-size: 16px;
  margin-bottom: 18px;
}

.hero_p {
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--blue2);
  background: rgba(37, 99, 235, .10);
  border: 1px solid rgba(37, 99, 235, .18);
}

.hero h1 .accent {
  color: var(--blue);
}

.hero h2 .accent {
  color: var(--blue);
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Panel area */
.panel-wrap {
  padding: 26px 0 70px;
}

.panel {
  padding: 22px;
  text-align: left;
}

.panel .label {
  font-size: 13px;
  color: #334155;
  margin: 2px 0 10px;
  font-weight: 600;
}

textarea {
  width: 100%;
  height: 210px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, .9);
  padding: 14px 14px;
  font-size: 14px;
  outline: none;
  background: #fbfdff;
}

textarea:focus {
  border-color: rgba(37, 99, 235, .55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
  background: #ffffff;
}

.panel-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.result-flex {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.alert-box {
  background-color: #fff1f2;
  border: 1px solid #fda4af;
  color: #e11d48;
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

/* Result Card */
.result-card {
  margin-top: 40px;
  padding: 30px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e6eefc;
  box-shadow: var(--shadow);
}

.result-title {
  margin: 0 0 25px;
  font-size: 20px;
}

.result-status {
  color: var(--blue);
}


/* 例：ボタンっぽく見せるためのCSS */
/* アーカイブ用ボタンのスタイル */
.btn-outline {
    display: inline-block;
    padding: 12px 30px;         /* ボタンの中の余白 */
    border: 2px solid #3b82f6;  /* 分析ボタンに近い青色の枠線 */
    color: #3b82f6;             /* 文字の色も青 */
    background-color: #fff;     /* 背景は白にしてスッキリさせる */
    border-radius: 9999px;      /* 分析ボタンに合わせた丸い角 */
    text-decoration: none;      /* 下線を消す */
    font-size: 14px;            /* 文字サイズ */
    font-weight: 600;           /* 少し太字に */
    transition: all 0.3s ease;  /* マウスを乗せた時の動きを滑らかに */
}

/* マウスを乗せた（ホバーした）時の色の変化 */
.btn-outline:hover {
    background-color: #3b82f6;  /* 背景を青に */
    color: #fff;                /* 文字を白に */
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2); /* 軽く浮かせる */
}

/* 外側の円（PHPで背景色が入る土台） */
.chart-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

/* 中央を白く抜くための円 */
.chart-center-circle {
  position: absolute;
  width: 100px;
  height: 100px;
  background: #fff;
  border-radius: 50%;
}

/* 文字情報のコンテナ */
.chart-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* 「85%」などの数字部分 */
.chart-percent {
  font-weight: 800;
  font-size: 24px;
}

/* 「信頼度」という文字部分 */
.chart-label {
  font-size: 11px;
  color: #64748b;
}


/* Result Content */
.result-content {
  flex: 1;
  min-width: 280px;
}

.content-caption {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted);
}

.content-text {
  text-align: left;
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.count {
  font-size: 12px;
  color: var(--muted);
}

.btn {
  margin-left: auto;
}

.btn .dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
}

.input_url {
  width: 100%;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  font-size: 16px;
  background:
    #f8fafc
}

/* リセットボタン（グレー版） */
.btn-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: #f1f5f9;
  /* 薄いグレー */
  color: #64748b;
  /* 濃いグレーの文字 */
  border-radius: 999px;
  /* 丸みは青ボタンと合わせる */
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  margin-right: 15px;
  /* 少しだけ枠線を入れると馴染みます */
}

.btn-clear:hover {
  background-color: #e2e8f0;
  /* ホバー時に少し暗く */
  color: #475569;
}

.toTop {
  position: fixed;
  right: 16px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgb(185 185 185 / 72%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
  cursor: pointer;

  display: grid;
  place-items: center;

  /* 初期は非表示 */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.toTop.is-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toTop:hover {
  background: rgba(0, 0, 0, .85);
}

.toTop__icon {
  width: 22px;
  height: 22px;
}

/* キーボード操作の見た目 */
.toTop:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/*ローディング*/
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-status {
  font-size: 1.2em;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 20px;
}

.loading-note {
  color: #64748b;
  font-size: 14px;
  margin-top: 20px;
}

/* 結果カード内の免責事項エリア */
.result-disclaimer {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

/* 免責事項のテキスト */
.disclaimer-text {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}



/* OS設定でアニメーション減らす人向け */
@media (prefers-reduced-motion: reduce) {
  .toTop {
    transition: none;
  }
}

/* 📱 スマホ用（url.phpと同じ仕組み） */
@media (max-width: 768px) {
  .result-flex {
    flex-direction: column !important;
    text-align: center !important;
  }

  .chart-wrap {
    margin: 0 auto 20px !important;
    /* 円が潰れるのを防ぐ */
    flex-shrink: 0 !important;
  }

  .result-card h2 {
    text-align: center !important;
  }
}


@media (max-width: 560px) {
  h2.hero-sub-title {
    font-size: 24px;
  }

  .nav {
    font-size: 12px;
  }
}