﻿@charset "utf-8";


/*Google Fontsの読み込み
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Yomogi&display=swap');

/*Font Awesomeの読み込み
---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

/*lightbox.cssの読み込み
---------------------------------------------------------------------------*/
@import url(https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.10.0/css/lightbox.css);

body {
  margin: 0;
  font-family: 'Yomogi', sans-serif;
  background-color: #E3EEB2;
  color: #332D56;
  padding: 0;
  padding: 0;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  transition: opacity 2s ease-in-out;
}

main {
  position: relative;
  padding: 20px;
  position: relative;
  color: white;
  text-shadow: 0 0 3px;
  background-color: rgba(255, 253, 245, 0.9); 
  border-radius: 20px;
  margin: 20px;
  min-height: 100vh;
  calc(100vh -48)
}


header {
  position: relative;
  background: #4E6688;
  color: #E3EEB2;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
}

header h1 {
  font-size: 2.5rem;
  margin: 0;
  display: inline-block;
  position: relative;
  z-index: 2;
}

header h1 a {
  color: #E3EEB2;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

header h1 a:hover {
  animation: softBoing 0.6s ease;
}

@keyframes softBoing {
  0% { transform: scale(1); }
  30% { transform: scale(1.18) rotate(2deg); }
  60% { transform: scale(0.95) rotate(-2deg); }
  100% { transform: scale(1); }
}

html {
  scroll-behavior: smooth;

}
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 0 0;
  position: relative;
  z-index: 2;

}

nav a {
  color: #E3EEB2;
  text-decoration: none;
  font-size: 1.2rem;
}
main {
  color: #332D56;
}

main a {
  color: #332D56;
}
main a:hover {
  color: #4E6688;
}

.comic-page img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 2rem;
}

.hero h2 {
  color: #332D56;
}

.hero p {
  font-size: 1.2rem;
  margin: 1rem 0;
}
.hero img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: opacity 1s ease;
  display: block;
  margin: 0 auto;
}

/* PC表示用 */
@media (min-width: 768px) {
  .hero img {
    width: 50%;
  }
}

#mainImage {
  max-width: 80%;
  border-radius: 2rem;
  box-shadow: 0 0 15px #71C0BB;
  transition: all 0.5s ease;
  cursor: pointer;
  margin-bottom: 1rem;
}

#section4 {
  color: #999;
  text-shadow: none;
  font-family: sans-serif;
  background-color: #fff; /* ← ここで透過解除！ */
  padding: 2vw 5vw; /* 余白も調整しておくときれい */
}

button {
  background: #71C0BB;
  color: #332D56;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1.1rem;
  border-radius: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #4E6688;
  color: #E3EEB2;
}

footer {
  background: #4E6688;
  color: #E3EEB2;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  padding: 20px;
}

/* メッセージ */
.message {
  position: fixed;
  background: rgba(113, 192, 187, 0.85);
  color: #E3EEB2;
  padding: 1rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 0 10px #332D56;
  font-size: 1.2rem;
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 100;
}

.message.show {
  opacity: 1;
  transform: scale(1);
}

/* ドットCanvas */
#dotCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}


/*animation1のキーフレーム設定（開閉ブロックのアニメーションに使用）
---------------------------------------------------------------------------*/
@keyframes animation1 {
	0% {left: -200px;}
	100% {left: 0px;}
}


/*画像にマウスが重なったら半透明になる
---------------------------------------------------------------------------*/
.over-b{
    display: inline-block;
    background: #000;
}
.over-b img{
    display: block;
}
.over-b:hover img{
    opacity: 0.7;
}
/*section要素*/
section {
	padding: 2vw 5vw;	/*ボックス内の余白。上下、左右への順番。*/
}

/* ハンバーガーメニュー */
#hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
  position: absolute;
  right: 20px;
  top: 20px;
}

/* PC表示のときのナビ中央寄せ */
@media screen and (min-width: 769px) {
  #mainNav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  #mainNav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #mainNav ul li a {
    color: #E3EEB2; /* 薄い黄色 */
  }
}

/* ナビゲーション初期状態 */
#mainNav {
  display: flex;
  gap: 1rem;
}

#mainNav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

#mainNav li a {
  text-decoration: none;
  color: #332D56;
}


/* モバイル用 */
@media screen and (max-width: 768px) {
  #hamburger {
    display: block;
  }

  #mainNav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  #mainNav ul {
    flex-direction: column;
    gap: 2rem;
  }

#mainNav ul li a {
  color: #332D56;
  text-decoration: none;
}

  #mainNav.show {
    display: flex;
  }
}
#hamburger {
  font-size: 30px;
  color: #E3EEB2;
  cursor: pointer;
  z-index: 1001;
}

/* 開いた時のハンバーガーの色と記号変更 */
#hamburger.active {
  color: #332D56;
  content: "×";
}

/* ロード画面 */
#loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #fff;
  top: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

#loading img {
  width: 100px; 
}
/*PAGE TOP（↑）設定
---------------------------------------------------------------------------*/
.pagetop-show {display: block;}

/*ボタンの設定*/
.pagetop a {
	display: block;text-decoration: none;text-align: center;z-index: 99;
	animation: opa1 0.2s 0.2s both;	/*一瞬ボタンが出ちゃうのを隠す為の応急措置*/
	position: fixed;	/*スクロールに追従しない(固定で表示)為の設定*/
	right: 20px;		/*右からの配置場所指定*/
	bottom: 20px;		/*下からの配置場所指定*/
	color: #fff;		/*文字色*/
	font-size: 1.5rem;	/*文字サイズ*/
	background: rgba(0,0,0,0.2);	/*背景色。0,0,0は黒の事で0.2は色が20%出た状態。*/
	width: 60px;		/*幅*/
	line-height: 60px;	/*高さ*/
	border-radius: 50%;	/*円形にする*/
}
