@charset "UTF-8";
* {
  margin: 0px;
  padding: 0px;
}

html {
    scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Futura", Helvetica, sans-serif;
  color: #333;
}

/* Navbar & Navmenu color */
:root {
  --background-navbar: rgba(55, 55, 55, 0.98);
}

.header {
  background: var(--background-navbar);
  position: fixed;
  width: 100%;
  height: 52px;
  z-index: 30;
}

/* Nav items */
.menu {
  list-style: none;
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  margin-top: 52px;
  padding: 0 0 10px 0;
  clear: both;
  background: var(--background-navbar);
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
  transform: scale(1, 0);
  transform-origin: top;
}

/* Hamburger menu button */
.menu-btn:checked ~ .menu {
  transform: scale(1, 1);
  transform-origin: top;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

/* Hamburger menbu text */
.menu a {
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 16px;
  text-transform: capitalize;
  color: #ddd;
  opacity: 0;
  transition: 0.5s;
}

.menu li {
  border-top: 1px solid rgb(75, 75, 75);
  padding: 15px 0;
  margin: 0 54px;
  opacity: 0;
  transition: 0.5s;
}

.menu-btn:checked ~ .menu a,
.menu-btn:checked ~ .menu li {
  opacity: 1;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
}

.menu-btn {
  display: none;
}

.menu-icon {
  display: inline-block;
  position: relative;
  cursor: pointer;
  padding: 24px 14px;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.navicon {
  background: #ddd;
  display: block;
  height: 3px;
  width: 26px;
  position: relative;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before,
.navicon:after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  background: #ddd;
  transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}

.navicon:before {
  top: 9px;
}

.navicon:after {
  bottom: 9px;
}

/* Hamburger Menu Animation Start */
.menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
  top: 0;
}
.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  bottom: 0;
}

.menu-btn:checked ~ .menu-icon .navicon {
  background: rgba(0, 0, 0, 0);
  transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
}
/* Hamburger Menu Animation End */

/* Navbar Container */
.navtext-container {
  width: 100%;
  height: 52px;
  position: absolute;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main */
.page-title {
  padding-top: 100px;
  padding-bottom: 3%;
}
.page-title p {
  text-align: center;
  font-size: 30px;
  font-weight: bolder;
}
.container {
  display: grid;
  width: 900px;
  height: 500px;
  grid-template-columns: 450px 450px;
  grid-template-rows: 300px 300px;
  gap: 15px;
  margin: 0 auto;
}
.age_heading {
  text-align: center;
  padding: 20px;
}
.showa {
  background-color: #ba4c13;
  height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.heisei {
  background-color: #28417e;
  height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.reiwa {
  background-color: #bf0a43;
  height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.mirai {
  background-color: #04a1e9;
  height: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
}
.text1 {
  width: 400px;
  padding-top: 20px;
  text-align: justify;
  line-height: 1.5em;
  color: #fcfcfc;
}
.text2 {
  width: 400px;
  padding-bottom: 20px;
  text-align: justify;
  line-height: 1.5em;
  color: #fcfcfc;
}
.h1-title-l{
  margin-top: 5px;
  color: #fcfcfc;
}

.h1-title-r{
  color: #fcfcfc;
  margin-bottom: 20px;
}




/* 以下モバイル */
@media screen and (max-width: 575px) {
  .container {
    display: block;
    width: 80vw;
    height: 100%;
  }

  .text1 {
    width: 80vw;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: justify;
    border-bottom: #333 solid 1px;
  }
  .text2 {
    width: 80vw;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: justify;
  }
}

/*----------------------------
scroll_left ｜左から出現
----------------------------*/
.scroll_left {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(-30px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}
.scroll_left.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}

/*----------------------------
scroll_right ｜右から出現
----------------------------*/
.scroll_right {
  -webkit-transition: 0.8s ease-in-out;
  -moz-transition: 0.8s ease-in-out;
  -o-transition: 0.8s ease-in-out;
  transition: 0.8s ease-in-out;
  transform: translateX(30px);
  opacity: 0;
  filter: alpha(opacity=0);
  -moz-opacity: 0;
}
.scroll_right.on {
  opacity: 1.0;
  filter: alpha(opacity=100);
  -moz-opacity: 1.0;
  transform: translateX(0);
}

/*------------------------------------
ここからページトップに戻るボタン(共通)
-------------------------------------*/

.pagetop {
    height: 50px;
    width: 50px;
    position: fixed;
    right: 20px;
    bottom: 30px;
    background: #c0c0c0;
    border: solid 2px #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.pagetop_arrow {
    height: 10px;
    width: 10px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: translateY(20%) rotate(-45deg);
}

@media (hover: hover) and (pointer: fine) {
    .pagetop:hover, .pagetop:hover .pagetop_arrow {
        border-color: #808080;
    }
}

/*------------------------------------
ページトップに戻るボタンここまで(共通)
-------------------------------------*/

/*------------------------------------
ここからフッター(PC・タブレット・スマホ共通)
-------------------------------------*/

footer {
 color: #fcfcfc;
 background: var(--background-navbar);
 text-align: center;
 padding: 30px;
}

footer .copyright {
 margin: 0;
 text-align: center;
}


