@charset "UTF-8";

/* body領域 */

body{
	color: #333333;
	font-family:"メイリオ","Hiragino Sans",sans-serif;
	margin:0;
	padding:0;
  background: linear-gradient(to right, #dfe6e2 0%, #fdfffa 30%, #fdfffa 70%, #dfe6e2 100% );
}

.back-to-top.fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.50);
  color: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease;
  opacity: 0.6;
}

.back-to-top.fixed:hover {
  opacity: 1;
}

  
/* header領域 */

.header-in{
	background:linear-gradient(to top,#F5F7FA,#1B3A2F);
	box-shadow:0px 0px 5px 3px #aaaaaa;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#header-logo{
	margin-left:30px;
	margin-top:20px;
	margin-bottom:15px;
	box-shadow:0px 0px 5px 3px #aaaaaa;
}

#request-button,
#inquiry-button {
  margin-top:5px;
  margin-left:10px;
}

#header-logo2{
	margin-right:30px;
  box-shadow:0px 0px 5px 3px #aaaaaa;
}

.header-in > div:last-child {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu{
  display: flex;
  justify-content: space-evenly;
  padding: 0;
  margin: 20px 0 5px 10px;
  font-weight: 800;
  list-style: none;
}

.nav-menu > li{
  flex: 1;
  text-align: center;
  border-right: 1px solid #000000;
  position: relative;
}

nav li:last-child {
  border-right: none;
}

nav a {
  text-decoration: none;
  color: #000000;
  position: relative;
  display: block;
  padding: 8px 0;
}

nav a:hover {
  color: #ffffff;
  background-color: #0b3d91;
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #cccccc;
  min-width: 200px;
  display: none;
  z-index: 100;
  white-space: nowrap;
}

.nav-menu > li:hover > .sub-menu {
  display: block;
}

.nav-menu > li:last-child > .sub-menu {
  left: auto;
  right: 0;
}

.sub-menu li a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333333;
  font-size: 14px;
}

.sub-menu li a:hover {
  background: #0b3d91;
  color: #ffffff;
}

.hamburger {
  display: none;
  width: 30px;
  cursor: pointer;
  margin: 10px;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #000000;
  margin: 6px 0;
  transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* footer領域 */

footer{
	text-align:center;
	font-weight: bold;
/*	background-image: url(../img/footer_image2.png);
	background-size: cover; */
	background:linear-gradient(to top,#1B3A2F,#cccccc);
	box-shadow:0 -5px 10px 0 #aaaaaa;
	color: #ffffff;
	padding-top:30px;
	padding-bottom:10px;
	margin-top: 50px;
  margin-bottom: 0;
}

.term-box{
	display: flex;
	justify-content: center;
	gap: 20px;
  margin-bottom: 50px;
}

.footer-box{
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 100px;
}

.big-text {
  font-size: 1.5em;
  font-weight: bold;
}

.sns-logo {
  margin: 0 20px;
}

.copyright{
  font-size: 10px;
  margin-top:20px;
}


/* article領域 */

.pankuzu li {
  display:inline;
  margin-right:5px;
  font-size:80%;
}

h1{
	font-size:240%;
}

h2 {
  background: linear-gradient(to left, #f3f3e4d7, #1B3A2F);
  color: #ffffff;
  padding: 0.6em 1em;
  font-size: 130%;
  letter-spacing: 0.05em;
  border-radius: 4px;
  box-shadow: 3px 3px 6px #aaaaaa;
  margin-top: 20px; 
}

h3 {
  font-size: 120%;
  border-left: 10px solid #1B3A2F;
  padding:7px 0px 5px 10px; 
  margin: 25px auto 10px;
  background: linear-gradient(to left, #F5F7FA, #cbd1b7);
  box-shadow: 3px 3px 6px #aaaaaa;
  color: #1B3A2F;
  max-width: 1200px;
  width: 92%;
}

h4 {
  font-size: 110%;
  border-left: 10px solid #1B3A2F;
  border-bottom:1px solid #1B3A2F;
  padding:0px 0px 0px 10px; 
  margin: 30px auto 10px;
  color: #1B3A2F;
  max-width: 1055px;
  width: 88%;
}

h5 {
  font-size: 100%;
  border-bottom:1px solid #1B3A2F;
  margin: 30px auto 10px;
  color: #1B3A2F;
  max-width: 1055px;
  width: 88%;
}

p {
	font-size:100%;
	line-height:1.8;
}

article{
	position:relative;
	clear:both;
	width:100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 15px; 
}

.top-visual {
  position: relative;
  width: 100%;
}

.top-visual img {
  width: 100%;
  filter: brightness(70%);
  height: auto;
  display: block;
}

.top-visual h1 {
  position: absolute;
  top: 38%;
  left: 12%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 2.5rem;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.body-text{
  max-width: 1200px;
  margin-top: 50px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.body-text .h2-title:first-of-type h2 {
  margin-top: 40px;
}

.mamomon-hero {
  background: linear-gradient(90deg, #e8f1f8, #f7fbff);
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 40px 30px;
}
 
.mamomon-hero h1 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 350%;
  font-weight: 800;  
  letter-spacing: 0.05em; 
  color: #0114a4;
  background: #eef3f8;
  padding: 0px 20px; 
  text-shadow:
    3px 3px 0px #ffffff,
    5px 5px 5px rgba(0,0,0,0.15);
  display: inline-block;
  margin-bottom: 30px;
}

.sub1 {
  font-size: 120%;
  font-weight:bold;
  text-align: center;
  margin-top: 15px;
}

.sub2 {
  font-size: 110%;
  text-align: center;
}

.hero-images {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.hero-images .char {
  width: 180px;
  height: 230px;
  position: relative;
  transform-origin: 50% 100%;
}

.hero-images .char img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


@keyframes fade1 {
  0%   { opacity: 0.2; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; } 
  100% { opacity: 0; } 
}

@keyframes fade2 {
  0%   { opacity: 0; }
  30%  { opacity: 0; }
  40%  { opacity: 1; }
  65%  { opacity: 1; }
  75%  { opacity: 0; }
  100% { opacity: 0; } 
}

@keyframes fade3 {
  0%   { opacity: 0; }
  65%  { opacity: 0; }
  75%  { opacity: 1; }
  95%  { opacity: 1; } 
  100% { opacity: 0.5; } 
}


/* ▼ 揺れアニメーション */
@keyframes floatTilt {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-6px) rotate(2deg); }
  50%  { transform: translateY(-10px) rotate(-3deg); }
  75%  { transform: translateY(-6px) rotate(1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}


/* ▼ 1キャラ目（りく） */

.hero-images .char:nth-child(1) .img1 {
  animation: fade1 12s linear infinite;
}

.hero-images .char:nth-child(1) .img2 {
  animation: fade2 12s linear infinite;
}
.hero-images .char:nth-child(1) .img3 {
  animation: fade3 12s linear infinite;
}

.hero-images .char:nth-child(1) {
  animation: floatTilt 4s ease-in-out infinite;
}


/* ▼ 2キャラ目（かい） */

.hero-images .char:nth-child(2) .img1 {
  animation: fade1 12s linear infinite;
}

.hero-images .char:nth-child(2) .img2 {
  animation: fade2 12s linear infinite;
}

.hero-images .char:nth-child(2) .img3 {
  animation: fade3 12s linear infinite;
}

.hero-images .char:nth-child(2) {
  animation: floatTilt 4s ease-in-out infinite;
}


/* ▼ 3キャラ目（くう） */

.hero-images .char:nth-child(3) .img1 {
  animation: fade1 12s linear infinite;
}

.hero-images .char:nth-child(3) .img2 {
  animation: fade2 12s linear infinite;
}

.hero-images .char:nth-child(3) .img3 {
  animation: fade3 12s linear infinite;
}

.hero-images .char:nth-child(3) {
  animation: floatTilt 4s ease-in-out infinite;
}




.mamomon-list {
  display: flex;
  gap: 24px;
  margin: 40px 0;
}

.mamomon-card {
  flex: 1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 1px solid #e5e5e5;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.mamomon-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mamomon-card.riku { background: #e2f0e2; }
.mamomon-card.kai  { background: #e1ecf7; }
.mamomon-card.kuu  { background: #ececec; }

.mamomon-card img {
/*  width: 140px; */
  height: 150px;
  object-fit: contain;
  margin-bottom: 12px;
}

.mamomon-card h2 {
  color: #003366;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.mamomon-card .trait {
  font-weight: bold;
  color: #555555;
  margin-bottom: 8px;
}

.profile-details {
  text-align: left;
  margin: 12px 10px;
}

.profile-details summary {
  cursor: pointer;
  font-weight: bold;
  color: #003366;
  padding: 6px 0;
}

.profile-details p {
  margin-top: 8px;
  line-height: 1.6;
  color: #444444;
}

.tochimamo-kensui {
  display: flex;
  justify-content: center;
/*  align-items: center; */
  gap: 20px;
  margin: 40px auto;
  max-width: 900px;
}

.kensui-text {
  width: 400px;
}

.text-main {
  font-size: 120%;
  font-weight: bold;
}





/* 1070px以下の場合 */
@media(max-width:1070px){

nav ul{
	font-size:85%;
}

}




/* 768px以下の場合 */
@media screen and (max-width: 768px) {

p{
	font-size:90%;
/*	line-height:1.8;*/
}

img {
  max-width: 100%;
  height: auto;
}

.header-in {
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
}

#header-logo {
  width: 97%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#header-logo2 {
  display: none;
  /*  width: 10%;
    height: auto;
    padding: 0; */
  }

.nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #0b3d91;
  margin: 0;
  padding: 0;
}

.nav-menu.active {
  display: flex;
}

.nav-menu > li {
  border-right: none;
  border-bottom: 1px solid #ffffff;
}

.nav-menu > li > a {
  color: #ffffff;
  padding: 14px;
  text-align: left;
} 

.nav-menu > li.has-sub > a {
  position: relative;
  padding-right: 32px;
}

.nav-menu > li.has-sub > a::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 12px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

/* ▼ sub-menu が開いたときに回転 */
.nav-menu > li.has-sub > a.open::after {
  transform: translateY(-50%) rotate(180deg);
}

.sub-menu {
  position: static;
  display: none;
  background: #003b7a;
  border: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sub-menu.active {
  display: block;
}

.sub-menu li a {
  padding-left: 28px;
  color: #ffffff;
}

.hamburger {
  display: block;
  margin-left: 10px;
}

.top-visual img {
  height: 100px;
}

.top-visual h1 {
  font-size: 1.5rem;
  left: 5%;
}

#top-image {
  animation: none;
  transform: none;
}

.footer-box {
  flex-direction: column;
  gap: 20px;
}

.term-box {
  flex-direction: column;
  gap: 0px;
}

.pankuzu {
  margin-left: -25px;
}

.mamomon-hero {
  display: flex;
  flex-direction: row;
  justify-content: center;
/*  align-items: flex-start;*/
  align-items: center;
  gap: 20px;
  padding: 20px 10px 40px 10px;
}

.hero-text {
  text-align: center;
  max-width: 350px;
}

.hero-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-images .char {
  width: 165px;
  height: 210px;
  position: relative;
}

.hero-images .char img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-images img {
  margin: 0px;
}

.mamomon-list {
  flex-direction: column;
}

}



/* 450px以下の場合 */
@media screen and (max-width: 450px) {

.mamomon-hero h1 {
  writing-mode: vertical-rl; 
  text-orientation: upright;   
  white-space: nowrap; 
  font-size: 280%;
  padding: 20px auto;
  margin-right: 20px ;
}

.hero-images .char {
  width: 130px;
  height: 180px;
  position: relative;
}

.hero-images .char img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tochimamo-kensui {
  flex-direction: column; 
  align-items: center;  
  text-align: center; 
  gap: 20px;    
}

.kensui-text {
  width: 100%;        
  max-width: 500px;       
}

.kensui-image img {
  width: 80%;   
  height: auto;
}

}



/* 370px以下の場合 */
@media screen and (max-width: 370px) {

.hero-images .char {
  width: 100px;
  height: 150px;
  position: relative;
}

.hero-images .char img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

}
