@charset "utf-8";

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

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


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

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

p {
  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;
}

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

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

.video {
  text-align: center;
}

h1 {
  text-align: center;
}

h2 {
  text-align: center;
  font-size: 32px;
  margin-top: 112px;
  color: 	#e83743;
  font-weight: bold;
}

p {
  text-align: center;
  font-size: 16px;
}

.card img {
  margin: 0 auto;
}

.card {
  width: 420px;
  border: none;
  display: flex;
  flex: auto;
}

.card img {
  align-items: center;
  gap: inherit;
}

section {
  margin-bottom: 32px;
}

.download a {
  font-size: 24px;
}


p {
  margin: 16px 0 0 16px;
}

.video {
  margin-top: 16px;
}

.download-button {
  margin: 16px;
}

/*まずはお決まりのボックスサイズ算出をborer-boxに */


*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 62.5%;/*rem算出をしやすくするために*/
}


.btn,
a.btn,
button.btn {
  font-size: 1.6em;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;
  border-radius: 0.5rem;
}


a.btn-flat {
  overflow: hidden;

  padding: 1.5rem 6rem;

  color: #fff;
  border-radius: 0;
  background: #000;
}

a.btn-flat span {
  position: relative;
  z-index: 1;
}

a.btn-flat:before {
  position: absolute;
  top: 0;
  left: calc(-150% + 50px);

  width: 150%;
  height: 500%;

  content: '';
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  -webkit-transform: rotate(45deg) translateX(0) translateY(0);
  transform: rotate(45deg) translateX(0) translateY(0);

  background: #fff100;
}

a.btn-flat:after {
  position: absolute;
  top: -400%;
  right: calc(-150% + 50px);

  width: 150%;
  height: 500%;

  content: '';
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
  -webkit-transform: rotate(45deg) translateX(0) translateY(0);
  transform: rotate(45deg) translateX(0) translateY(0);

  background: #fff100;
}

a.btn-flat:hover:before {
  -webkit-transform: rotate(45deg) translateX(0) translateY(-50%);
  transform: rotate(45deg) translateX(0) translateY(-50%);
}

a.btn-flat:hover:after {
  -webkit-transform: rotate(45deg) translateX(0) translateY(50%);
  transform: rotate(45deg) translateX(0) translateY(50%);
}

.btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
  margin-bottom: 16px;
}

footer {
  font-size: 16px;
}


li {
  font-size: 16px;
}

.navbar-toggler {
  font-size: 20px;
  padding: 4px 12px;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 80px 0;
}

/* ボタン本体 */
.ultra-button {
  font-size: 22px;
  color: #fff;
  background: linear-gradient(45deg, #ff7a00, #ffb300);
  padding: 18px 40px;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  overflow: hidden;
  animation: idleMove 4s infinite ease-in-out,
             glowPulse 2s infinite ease-in-out;
  transition: all 0.3s ease;
  box-shadow: 0 12px 25px rgba(255, 130, 0, .6);
}

/* 通常時ゆらゆら＆微回転 */
@keyframes idleMove {
  0% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-4px) rotateY(15deg) scale(1.05); }
  100% { transform: translateY(0) rotateY(0deg); }
}

/* 常時光パルス */
@keyframes glowPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

/* ホバー時：ド派手回転＆膨張 */
.ultra-button:hover {
  transform: rotateX(360deg) rotateZ(8deg) scale(1.25);
  box-shadow: 0 28px 45px rgba(255, 160, 0, .95);
  background: linear-gradient(45deg, #ff9500, #ffe066);
  letter-spacing: 1.5px;
}

/* 光のライン（常時） */
.ultra-button::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 200%;
  height: 300%;
  background: linear-gradient(transparent, rgba(255,255,255,0.55), transparent);
  transform: rotate(45deg);
  animation: shineLoop 5s infinite linear;
}

@keyframes shineLoop {
  0% { transform: translateX(-200%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

/* ★クリック系エフェクト（強化！）★ */
.ultra-button.clicked {
  animation: pressShock 0.35s ease-out;
}

/* 押し込む衝撃 */
@keyframes pressShock {
  0% { transform: scale(1.0); }
  50% { transform: scale(0.75); }
  100% { transform: scale(1.3); }
}

/* 衝撃波（外に広がるリング） */
.ultra-button.clicked::before {
  animation: shockWave 0.9s ease-out forwards;
}

@keyframes shockWave {
  0% {
    box-shadow: 0 0 0 0 rgba(255,200,0,.9);
  }
  100% {
    box-shadow: 0 0 80px 45px rgba(255,160,0,0);
  }
}

/* 火花爆散 */
.ultra-button.clicked::after {
  content: "";
  position: absolute;
  inset: -15px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,220,0,.9) 20%, transparent 75%);
  filter: blur(25px);
  animation: sparkBoom 0.6s ease-out forwards;
}

@keyframes sparkBoom {
  0% { transform: scale(0.3); opacity: 1; }
  70% { transform: scale(2.8); opacity: .65; }
  100% { transform: scale(3.8); opacity: 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; /* ←この時間で閉じる遅さ調整 */
}
/* コンテナ中央寄せ */
.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}

/* ボタン本体 */
.ultra-button {
  position: relative;
  display: inline-block;
  padding: 16px 40px;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff9500, #ff4d00);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(255, 90, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: buttonPulse 3s infinite ease-in-out;
  overflow: visible; /* 羽を隠さない */
  width: auto; /* 横長問題解消 */
}

/* 脈動 */
@keyframes buttonPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ホバー時の3D回転 */
.ultra-button:hover {
  transform: perspective(400px) rotateY(14deg) rotateX(6deg) scale(1.08);
  box-shadow: 0 10px 30px rgba(255, 70, 0, 0.85);
}

/* クリック時のクルリン回転 */
.ultra-button.clicked {
  animation: clickSpin 0.6s ease forwards;
}
@keyframes clickSpin {
  0% { transform: rotate(0deg) scale(1.05); }
  50% { transform: rotate(360deg) scale(0.9); }
  100% { transform: rotate(0deg) scale(1.05); }
}

/* 光ライン */
.ultra-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-25deg);
  animation: shineMove 4s infinite ease-in-out;
}
@keyframes shineMove {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

/* ===================================================
   羽アニメーション（両翼が羽ばたく）
================================================== */
.wing {
  position: absolute;
  width: 26px;
  height: 26px;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  animation: wingFlap 2s infinite ease-in-out;
}
.wing-left {
  left: -28px;
  top: 50%;
  transform: translateY(-50%) rotate(-35deg);
}
.wing-right {
  right: -28px;
  top: 50%;
  transform: translateY(-50%) rotate(35deg);
}

@keyframes wingFlap {
  0%, 100% { transform: scale(0.6) translateY(-50%); opacity: 0; }
  35% { transform: scale(1.1) translateY(-55%); opacity: 0.9; }
  70% { transform: scale(0.8) translateY(-45%); opacity: 0.5; }
}

/* ===================================================
   粒子（ランダム舞踊）
================================================== */
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  pointer-events: none;
  opacity: 0;
}

.spark:nth-child(3) { animation: sparkle1 3.4s infinite ease-in-out; left:10%; top:40%; }
.spark:nth-child(4) { animation: sparkle2 3.7s infinite ease-in-out; left:60%; top:20%; }
.spark:nth-child(5) { animation: sparkle3 4.0s infinite ease-in-out; left:40%; top:70%; }
.spark:nth-child(6) { animation: sparkle4 3.2s infinite ease-in-out; left:80%; top:50%; }
.spark:nth-child(7) { animation: sparkle5 4.3s infinite ease-in-out; left:30%; top:15%; }

/* キーフレーム（全軌道不規則） */
@keyframes sparkle1 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  30% { transform: translate(30px,-25px) scale(1.3); opacity:1; }
  100% { transform: translate(0,0) scale(0); opacity:0; }
}
@keyframes sparkle2 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  40% { transform: translate(-22px,30px) scale(1.4); opacity:1; }
  100% { transform: translate(5px,-10px) scale(0); opacity:0; }
}
@keyframes sparkle3 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  45% { transform: translate(20px,10px) scale(1.1); opacity:1; }
  100% { transform: translate(-15px,-10px) scale(0); opacity:0; }
}
@keyframes sparkle4 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  30% { transform: translate(-25px,-30px) scale(1.3); opacity:1; }
  100% { transform: translate(25px,10px) scale(0); opacity:0; }
}
@keyframes sparkle5 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  50% { transform: translate(-30px,0px) scale(1.5); opacity:1; }
  100% { transform: translate(15px,-15px) scale(0); opacity:0; }
}

/* 天使の羽 ================================= */
.feather {
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, #fff 0%, rgba(255,255,255,0) 70%);
  filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  animation: featherFloat 4s infinite ease-in-out;
}

.feather-left {
  left: -45px;
  top: 50%;
  transform: translateY(-50%) rotate(-50deg);
}
.feather-right {
  right: -45px;
  top: 50%;
  transform: translateY(-50%) rotate(50deg);
}

/* 羽が広がって飛んでいく */
@keyframes featherFloat {
  0% {
    transform: translateY(-50%) scale(0.4) rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: translateY(-60%) scale(1.2) rotate(10deg);
    opacity: 1;
  }
  60% {
    transform: translateY(-110%) scale(1.4) rotate(-20deg);
    opacity: .9;
  }
  100% {
    transform: translateY(-160%) scale(0.5) rotate(40deg);
    opacity: 0;
  }
}

/* 粒子（動き強化＋舞い散る） */
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  pointer-events: none;
  opacity: 0;
}

.spark:nth-child(3) { animation: sparkle1 3.2s infinite ease-in-out; left:10%; top:40%; }
.spark:nth-child(4) { animation: sparkle2 3.5s infinite ease-in-out; left:60%; top:20%; }
.spark:nth-child(5) { animation: sparkle3 3.8s infinite ease-in-out; left:40%; top:70%; }
.spark:nth-child(6) { animation: sparkle4 3.1s infinite ease-in-out; left:80%; top:50%; }
.spark:nth-child(7) { animation: sparkle5 4.0s infinite ease-in-out; left:30%; top:15%; }

/* 粒子ランダム軌道 */
@keyframes sparkle1 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  30% { transform: translate(30px,-25px) scale(1.3); opacity:1; }
  100% { transform: translate(0,0) scale(0); opacity:0; }
}
@keyframes sparkle2 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  45% { transform: translate(-22px,30px) scale(1.4); opacity:1; }
  100% { transform: translate(5px,-10px) scale(0); opacity:0; }
}
@keyframes sparkle3 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  50% { transform: translate(20px,10px) scale(1.1); opacity:1; }
  100% { transform: translate(-15px,-10px) scale(0); opacity:0; }
}
@keyframes sparkle4 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  35% { transform: translate(-25px,-30px) scale(1.3); opacity:1; }
  100% { transform: translate(25px,10px) scale(0); opacity:0; }
}
@keyframes sparkle5 {
  0% { transform: translate(0,0) scale(0); opacity:0; }
  55% { transform: translate(-30px,0px) scale(1.5); opacity:1; }
  100% { transform: translate(15px,-15px) scale(0); opacity:0; }
}

/* タップハイライト消す */
.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);
}

/* タップハイライト消す */
.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);
}

.scratchデータ {
  display: block;
  margin: 16px auto;
}

.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;
  }
}

.iframe {
  width: 100%;  /* 親が幅をちゃんと持つ */
  
  margin: 0 auto;
}

iframe {
  width: 70%;
  height: 400px; /* その時の画面いっぱい */
  display: inline;
}

.button-wrapper {
  overflow-x: hidden; /* ←追加！横はみ出しを隠す */
  width: 100%; /* ←追加！画面幅に収める */
}


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

/* ベース設定 */
.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;
  }
}
