@charset "utf-8";

/* === 色覚異常とはページ 上部カード 修正版 === */

.vision-hero,
.stats-row,
.quick-cards {
    font-family: "Zen Maru Gothic", sans-serif;
}

.vision-hero *,
.stats-row *,
.quick-cards * {
    box-sizing: border-box;
}

.hero .vision-hero {
    max-width: 1100px;
    margin: 40px auto 30px;
    padding: 56px 32px;
    text-align: left;
}

.hero .vision-hero h1 {
    margin: 18px 0;
    padding: 0;
    text-align: left;
    font-size: 2.5rem;
    line-height: 1.5;
}

.hero .vision-hero p {
    padding: 0;
    text-align: left;
    font-size: 1.05rem;
}

.hero .stats-row,
.hero .quick-cards {
    text-align: center;
}

.hero .stat-box p,
.hero .quick-card p {
    padding: 0;
    text-align: center;
}

.hero .quick-card {
    display: block;
    text-align: center;
}

.hero .quick-card h3 {
    margin: 0 0 10px;
}

@media (max-width: 768px) {
    .hero .vision-hero {
        text-align: center;
    }

    .hero .vision-hero h1,
    .hero .vision-hero p {
        text-align: center;
    }
}

.vision-hero {
  max-width: 1100px;
  margin: 40px auto 30px;
  padding: 56px 32px;
  border-radius: 34px;
  background: linear-gradient(135deg, #e8f7ff, #ffffff);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.vision-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #4aa3c7;
  color: white;
  font-weight: bold;
  letter-spacing: 0.08em;
}

.vision-hero h1 {
  margin: 18px 0;
  font-size: 2.5rem;
  line-height: 1.5;
}

.vision-hero p {
  line-height: 1.9;
  font-size: 1.05rem;
}

.vision-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #4aa3c7;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.vision-btn:hover {
  background: #2f8bae;
  color: white;
}

.stats-row {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-box {
  width: 260px;
  padding: 24px 18px;
  text-align: center;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-box span {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4aa3c7;
}

.stat-box p {
  margin-top: 8px;
  line-height: 1.7;
}

.quick-cards {
  max-width: 1000px;
  margin: 30px auto 50px;
  padding: 0 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.quick-card {
  width: 280px;
  padding: 24px 20px;
  border-radius: 26px;
  background: #fff;
  color: #333;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: 0.25s;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.quick-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.quick-card p {
  line-height: 1.7;
}

.experience-lead {
  text-align: center;
  line-height: 1.8;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .vision-hero {
    margin: 24px 16px;
    padding: 36px 22px;
    text-align: center;
  }

  .vision-hero h1 {
    font-size: 1.7rem;
  }

  .stat-box,
  .quick-card {
    width: 100%;
  }
}

html {
  cursor: url("crayon.png") 4 4, auto;
}


.hero h1 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.hero p {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.hero h2 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h3 {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

footer {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  margin: 0;
}

header {
  background: rgb(215, 238, 247);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

header img {
  vertical-align: bottom;
  font-size: 0;
}

.hero {
  margin: 0 auto;
}


.hero h1 {
  margin: 0 auto;
  text-align: center;
  font-size: 48px;

}

.hero h2 {
  text-align: center;
  padding: 16px 0;
}

.hero p {
  text-align: center;
  padding: 0 15%;
  font-size: 18px;
}

.hero div {
  text-align: center;
}

.hero .saigo {
  margin-bottom: 48px;
}

footer {
  text-align: center;
  padding: 64px 0;
  background: lightgrey;
}

.to-top {
  position: fixed;
  bottom: 16px;
  right: 16px;
}

.txt {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding-top: 40px;
}

.txt h1 {
  font-weight: bold;
  margin: 0;
  border-bottom: 1px solid black;

  /* ここからアニメーション関係 */
  transform: translateY(2em);
  animation: textanimation 1s forwards;
}

/* 1文字目 */
.txt h1:nth-child(1) {
  animation-delay: 0.2s
}

/* 2文字目 */
.txt h1:nth-child(2) {
  animation-delay: 0.4s
}

/* 3文字目 */
.txt h1:nth-child(3) {
  animation-delay: 0.6s
}

/* 4文字目 */
.txt h1:nth-child(4) {
  animation-delay: 0.8s
}

/* 5文字目 */
.txt h1:nth-child(5) {
  animation-delay: 1s
}

/* 6文字目 */
.txt h1:nth-child(6) {
  animation-delay: 1.2s
}


@keyframes textanimation {
  0% {
    transform: translateY(2em);
  }

  50% {
    transform: translateY(-1em);
  }

  100% {
    transform: translateY(0);
  }
}

/* ホバー判定を全体に */
.nav-item.dropdown {
  position: relative;
}

/* 初期状態：隠れてる */
.dropdown-menu {
  display: block !important;
  /* Bootstrapのdisplay:none対策 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition:
    opacity .35s ease,
    transform .35s ease,
    visibility .35s ease;
}

/* 表示状態 */
.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
  /* 表示はすぐに */
}

/* ホバー外した時の閉じアニメ */
.nav-item.dropdown:not(:hover) .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition-delay: .15s;
  /* ←この時間で閉じる遅さ調整 */
}

/* タップハイライト消す */
.dropdown-menu a {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 選択(ドラッグ選択)された時の背景色も消す */
.dropdown-menu a::selection {
  background: transparent;
}

/* フォーカス時の青枠もなくす */
.dropdown-menu a:focus {
  background-color: transparent;
  outline: none;
}

/* ホバーは今まで通り好きな色で */
.dropdown-menu a:hover {
  background-color: rgba(0, 0, 0, 0.08);
}

.share-icons a {
  font-size: 28px;
  /* アイコンの大きさ */
  margin: 0 8px;
  color: #1a1a1a;
  text-decoration: none;
}

.share-icons a:hover {
  opacity: 0.7;
}

.share-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.share-icons a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

/* 各プラットフォームのブランドカラー */
.share-icons a:nth-child(1) {
  background: #000000;
  /* X (旧Twitter) */
}

.share-icons a:nth-child(2) {
  background: #1877F2;
  /* Facebook */
}

.share-icons a:nth-child(3) {
  background: #06C755;
  /* LINE */
}

.share-icons a:hover {
  opacity: 0.4;
}

.share-icons a:nth-child(4) {
  background: #555;
  /* リンクコピー用の色 好きに変更可 */
}

/* スクロールバー全体の設定 */
::-webkit-scrollbar {
  width: 10px;
}

/* 背景 */
::-webkit-scrollbar-track {
  background: #111;
  /* 黒背景などにすると映える */
  border-radius: 5px;
}

/* つまみ部分を虹色に */
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      red,
      orange,
      yellow,
      green,
      cyan,
      blue,
      purple);
  border-radius: 5px;
}

/* ホバーでちょい暗くする */
::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.85);
}

#copyToast {
  position: absolute;
  background: rgba(51, 51, 51, 1);
  color: #fff;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99999;
  white-space: nowrap;
}

/* 吹き出し三角 */
#copyToast::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(51, 51, 51, 1) transparent transparent transparent;
}

/* 表示 */
#copyToast.show {
  opacity: 1 !important;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 1.5s 2.5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.loading__logo {
  opacity: 0;
  animation: logo_fade 2s 0.5s forwards;
  width: 175px;
}

@keyframes logo_fade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  60% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
  }
}

/* === ナビバー完全版 === */

/* ベース設定 */
.navbar {
  font-family: "Zen Maru Gothic", sans-serif;
  padding: 10px 20px;
}

/* --- 通常リンクの下線アニメーション --- */
.nav-link {
  position: relative;
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #007bff;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- dropdown（平和学習について）専用 --- */
.nav-item.dropdown .nav-link::after {
  content: none;
  /* 最初から線なし */
}

.nav-item.dropdown .nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

/* --- dropdownの中の項目には線出さない --- */
.dropdown-menu .dropdown-item::after {
  content: none !important;
  display: none !important;
}

/* --- dropdownリスト内のhover色調整 --- */
.dropdown-item:hover {
  background-color: #f0f0f0;
  color: #007bff;
}

/* hover時に文字も青に */
.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
  color: #007bff !important;
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    transition: all 0.2s ease;
    opacity: 0;
    height: 0;
    overflow: hidden;
  }

  .navbar .dropdown.show .dropdown-menu {
    opacity: 1;
    height: auto;
    display: none !important;
  }
}

/* 境目の線の色 */
#slider .beer-reveal {
  border-right: solid 2px #EECB27;
}

/* ハンドルの背景色 */
#slider .beer-handle {
  background: #EECB27;
}

#slider-2 {
  width: 30%;

  border-radius: 16px;
}

#slider {
  width: 30%;

  border-radius: 16px;
}

/* 境目の線の色 */
#slider .beer-reveal {
  border-right: solid 2px #EECB27;
}

/* ハンドルの背景色 */
#slider .beer-handle {
  background: #EECB27;
}

/* 境目の線の色 */
#slider-2 .beer-reveal {
  border-right: solid 2px #EECB27;
}

/* ハンドルの背景色 */
#slider-2 .beer-handle {
  background: #EECB27;
}

.beer {
  text-align: center;
}

@media (max-width: 980px) {
  .beer #slider {
    display: block;
    margin: 0 auto;
  }

  .beer #slider-2 {
    display: block;
    margin: 0 auto 16px auto;
  }

  #slider-2 {
    width: 50%;
  }

  #slider {
    width: 50%;
  }
}

@media (max-width: 500px) {
  .beer #slider {
    display: block;
    margin: 0 auto;
  }

  .beer #slider-2 {
    display: block;
    margin: 0 auto 16px auto;
  }

  #slider-2 {
    width: 95%;
  }

  #slider {
    width: 95%;
  }
}

h3{
  text-align: center;
  margin: 32px;
}

.finish {
  margin-bottom: 32px;
}

.loading{
  position:fixed;
  inset:0;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.loading__text{
  margin-top:20px;
  font-size:18px;
}