@charset "UTF-8";
    
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
    }
        
body {
    font-family: 'Avenir','Helvetica Neue','Helvetica','Arial','Hiragino Sans','ヒラギノ角ゴシック',YuGothic,'Yu Gothic','メイリオ', Meiryo,'ＭＳ Ｐゴシック','MS PGothic';
    margin: 0;
    text-align: center;
    font-size: 12px;
    line-height:1.6em;
    position: relative;
    }

html {
  scroll-behavior: smooth;
}

#header {
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100; /* ベースレイヤー */
    overflow: hidden; /* はみ出し防止（必要なら） */
}

.header_graybar {
    position: absolute;
    top: 0;
    left: 0;
    height: 35px;
    width: 100%;
    background-color: rgb(36, 45, 64);
    z-index: 100;
}

.header_bg { /* 左上の青いバー */
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 80px;
    background-image: url(g03_image/g03_header.png);
    background-position: top left;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 150;
}

.header_rogo { /* 見上げるロゴ */
    position: absolute;
    left: 5px;
    top: 11px;
    z-index: 200;
}

/* PCサイズでのメニューボタン */
.header_menu {
    position: fixed;
    right: 30px;
    top: 41px;
    z-index: 250;
}

.header_btn {
  position: relative;
  display: inline-block;
  font-size: 10pt;
  font-weight: bold;
  padding: 0.6em 1em 1em 1em ;
  margin: 0.2em;
  text-decoration: none;
  color: #262c46d3;  
  background: #ffffff;
  border-radius: 10em 10em 0 0;
}

.header_btn:hover {
  color: #204dc9d3; 
}

.header_btn:before {
  position: absolute;
  content: '';
  width: 100%;
  height: 4px;
  top:75%;
  left: 0;
  border-radius: 3px;
  background:rgb(66, 83, 121);
  transition: 0.2s;
}

.header_btn:hover:before {
  top: -webkit-calc(85% - 3px);
  top: calc(85% - 3px);
}

/* PCサイズではメニュー表示、ボタン非表示 */
.hamburger {
  display: none;
}


#footer {
    background: rgb(36, 45, 64);
    bottom: 0;
    height: 40px; /* フッターの高さ */
    position: fixed;
    width: 100%;
    color: white;
    text-align:center;
    font-size: 8px;
    padding: auto;
    z-index: 100;

}

h1 { /* コンテンツ部 */
  background: #334058;/*背景色*/
  padding: 0.3em;/*文字まわり（上下左右）の余白*/
  color: #ccc;
}

h2 { /* ゲームタイトル部 */
  position: relative; 
  font-weight: normal;
  line-height: 1.6em;
  padding: 1em 0;
  color: #252f41;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0; 
  bottom: 0;
  height: 6px;
  background: linear-gradient(to left, rgb(93, 104, 124), transparent);
}

.h2-text {
  display: block; 
  margin-right: 300px;
  font-size: 22px;
  text-align: center;
}

h3 { /* ゲームコメント部、左右に線 */
  position: relative;
  display: inline-block;
  padding: 0 55px;
  font-weight: normal;
  color: #3e587a;
}

h3:before, h3:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 1px;
  background-color: #6291ce;
}

h3:before {
  left:0;
}
h3:after {
  right: 0;
}

h4 { /* キャラクター名、左から右へ消える下線 */
  position: relative;
  text-align: left;
  font-size: 16px;
  font-weight: normal;
  line-height:1.6em;
  padding: 0.25em 0;
}

h4:after {
  content: "";
  display: block;
  height: 4px;
  background: -webkit-linear-gradient(to right, rgb(93, 104, 124), transparent);
  background: linear-gradient(to right, rgb(93, 104, 124), transparent);
}

h5 { /* ガイドライン、中央から左右へ消える下線 */
  position: relative;
  text-align: center;
  font-size: 16px;
  font-weight: normal;
  line-height:1.6em;
  padding: 0.25em 0;
}

h5:after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(to right, transparent, rgb(71, 103, 150), transparent);
}

/* コンテンツ全体 */
#content {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  height: calc(100vh - 140px);
  background-image: url(g03_image/g03_bg.jpg);
  background-position: right bottom;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  z-index: 10;
  opacity: 1;/* 表示制御 */
  pointer-events: auto;
  color: #252f41;
}

.dl_btn { /* ダウンロードボタン */
  display: inline-block;
  padding: 0.3em 1em;
  text-decoration: none;
  color: #ffffff;
  border: solid 2px #435374;
  background: #435374;
  border-radius: 3px;
  transition: .4s;
}

.dl_btn:hover {
  background: #ffffff;
  color: #435374;
}

/* 1行ずつ出る文字 */
#text-container {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: 100px;
  overflow: hidden;
  background-color: #ffffff;
  color: #435c7c;
  font-size: 16px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#text-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.line {
  position: absolute;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.line.show {
  opacity: 1;
}

/* 一気に出る文字 */
#block-container {
  position: relative;
  margin-top: 20px;
  font-size: 12px;
  color: #372f5e;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  min-height: 100px;
  z-index: 15;
}

#block-container.visible {
  opacity: 1;
  pointer-events: auto;
}

#block-container p {
  margin: 8px 0;
  animation: fadeIn 1s forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* 最後に出す残りのコンテンツ */
#final-content {
  opacity: 0;
  margin-top: 0px;
  pointer-events: none;
  transition: opacity 1s ease;
}

#final-content.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ストーリーのバー */
.story-bar {
  width: 100%;
  height: 60px;
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 0px;
  box-sizing: border-box;
}

.story-image {
  height: 60px; /* バーの高さ */
  width: auto;
  flex-shrink: 0;
}

.story-text {
  margin-left: 20px;
  flex-grow: 1;
}

.chara-box { /* キャラクター紹介 */
  border: 1px solid #d4d4d4;  /* 点線の枠 */
  width: 80%;
  max-width: 600px;
  margin: 30px auto;     /* 中央に配置 */
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.7);
  box-sizing: border-box;
}

.chara-text {
  flex: 1;
  padding-right: 20px;
  margin-top: 0;
  font-size: 12px;
  color: #252f41;
}

.chara-text p {
  font-size: 12px;
  color: #252f41;
  line-height: 1.6;
}

.chara-image img {
  width: 140px;
  height: 210px;
  object-fit: cover;
  border-radius: 10%; /* 角丸 */
  border: 1px solid #c3c7cf;
}


ul, ol ,li {
    padding: 0;
    position: relative;
    list-style-type: none!important;/*ポチ消す*/
}

.game_sample { /* ゲーム画像 */
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.tope {
    border: solid 2px #032256;
}

.waku1 { /* 枠白、実線、ガイダンス部 */
    display: inline-block;
    font-size: 12px;
    line-height:1.6em;
    text-align: left;
    color: #2d223f;
    border: 1px solid #ffffff; 
    margin:0 auto;
    padding: 0em 3em;
    background-color: rgba(255,255,255,0.6);
    }

.waku2 { /* 枠：点線、内枠：白透明、余白：上下少し小さめ */
    display: inline-block;
    font-size: 12px;
    line-height:1.6em;
    text-align: left;
    color: #2f347a;
    border: 1px solid #ffffff; 
    margin:0 auto;
    padding: 0em 4em;
    background-color: rgba(255,255,255,0.6);
    }


.waku3 { /* 一般文字 */
    padding: auto;
    }




#info {
    position: relative;
    height: auto;

}
.backsuke {
    background-color: rgba(255,255,255,0.5);
}

.table1 { /* ゲームの仕様 */
    margin: 0 auto;
    background-color: rgba(255,255,255,0.7);
    border-collapse: collapse;
    line-height: 2;
}

.table1 td {
    border: 1px solid #c3c7cf;  
    padding: 4px 20px;
    color: #4d578d;
}

.table_m {
    font-weight: bold;
    color: #40417c;
}

.table2 { /* 連絡先 */
    margin: 0 auto;
    border-collapse: separate; 
    border-spacing: 10px; /* 横・縦の隙間を10pxずつ */
    font-size: 12px;
    line-height: 2;
}

.pt {
  color: #fff;
  background: #314163;
  padding: 5px 20px;
  border-radius: 5px;
  font-weight: bold;
 
}

.pt_e {
  text-align: left;
  padding-left: 30pt;
  border-bottom: solid 1px #c3c7cf;
  background-color: rgba(255,255,255,0.5);
  padding: 10px 30px 3px 30px;
}

@media screen and (max-width: 1000px){ /* PC用設定*/
.h2-text {
  display: block; 
  margin-right: 20px;
  font-size: 20px;
  text-align: right;
}
}

@media screen and (max-width: 640px){ /* PC用設定*/
  .header_menu {
    display: none; /* メニューを隠す */
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    padding-top: 60px;
  }

  .header_menu.show {   
    display: flex;      /* ボタンで開いたときに表示 */
  }

  .hamburger {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 20px;
  background: #fff;          /* 中を白く */
  border: 2px solid #252f41;    /* 枠線を付ける */
  border-radius: 8px;        /* 角を丸めたい場合 */
  padding: 8px 12px;         /* 内側余白 */
  cursor: pointer;
  z-index: 300;
  }

  .header_btn {
    font-size: 14pt;
    margin: 1em;
    border-radius: 0;
  }

  p {
        font-size: 90%;
        line-height:2em;
  }

  table {font-size: 90%;}

  #text-container {
    font-size: 14px;
  }

  .game_sample img {
    max-width: 100%;
    height: auto;
    display: block;
  }

.waku3 { /* 一般文字 */
    margin: 0 20px;
    }
  
  .story-bar {
  position: relative;
  width: 100%;
  height: 60px;
  background-color: #fff;
  overflow: hidden; /* はみ出し防止 */
}

/* 画像を背景扱いにする */
.story-image {
  position: absolute;   /* フローから外す */
  left: 0;
  top: 0;
  height: 100%;         /* バーの高さに合わせる */
  width: 100%;          /* 横幅いっぱいに広げる */
  object-fit: cover;    /* 背景のようにトリミング */
  z-index: 1;           /* 背面に配置 */
}

/* テキストを前面に重ねる */
.story-text {
  position: relative;
  z-index: 2;           /* 画像より前面 */
  text-align: center;   /* 中央寄せ */
}

.h2-text {
  margin: 0;
  font-size: 22px;  
}
}






