body, html {
  margin: 0;
  padding: 0;
   font-family: 'Zen Old Mincho', serif;
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 2rem;
}
h1{
  font-size: 38px;
}
h2{
  font-size: 30px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
h3{
  font-size: 24px;
  margin: 0;
  letter-spacing: 0.1em;
}
h4{
  font-size: 20px;
}
p{
  font-size: 16px;
  color: #f0f0f0;
}
@media screen and (max-width: 840px) {
  body, html {
  font-size: 16px;
  line-height: 2rem;
}
h1{
  font-size: 36px;
}
h2{
  font-size: 28px;
}
h3{
  font-size: 22px;
  margin: 0;
  letter-spacing: 0.2em;
}
h4{
  font-size: 18px;
}
p{
  font-size: 16px;
  color: #f0f0f0;
}
}
@media screen and (max-width: 767px) {
h2{
  font-size: 26px;
}
}
/* Header */
header {
  height: 98vh;
  /* background: #2E0324 url('../img/backimg.png') center/cover no-repeat;*/
  position: relative;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#headline {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: flex-start;
}

/* テキスト共通スタイル */
h1, #headline p {
  font-weight: normal;
  background-color: #f0f0f0;
  color: #222;
  padding: 0.2em 0.2em 0.2em 0.5em;
  margin: 0;
  opacity: 0;
  transform: scale(0.95); /* ← 初期状態：少し小さめ */
  animation: fadeInScale 1.6s ease-out forwards;
}

h1 {
  letter-spacing: 0.3em;
  animation-delay: 0.2s;
  font-size: 30px;
}
#headline p {
  animation-delay: 1.2s;
  line-height: 1.6;
  letter-spacing: 0.1em;
  font-size: 18px;
  padding-left: 1em;
}
@media screen and (max-width: 767px) {
  h1 {
    font-size: 25px;
  }
  #headline p {
    font-size: 90%;
  }
}
/* アニメーション定義 */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95); /* 小さい状態から */
  }
  to {
    opacity: 1;
    transform: scale(1);     /* 元のサイズに */
  }
}
/* background スタイル */
.section {
  min-height: 100vh;
  
}
.color-violet {
  background-color: #2E0324;
  color: #f0f0f0;
}
.color-white {
  background-color: #f0f0f0;
  color: #333;
}
/* 共通スタイル */
.section-content{
  width: 80%;
  margin: 0 auto;
}
/* ベーススタイル */
.hamburger-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
}

.menu-toggle span {
  background-color: #fff;
  height: 3px;
  width: 100%;
  display: block;
  transition: 0.3s ease;
}

/* ハンバーガーメニュー */
.el_humburger {
  position: fixed;
  top: 45px;
  right: 60px;
  width: 46px;
  height: 25px;
  padding-top: 1px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding-top: 0px;
  z-index: 20;
  cursor: pointer;
  pointer-events: auto;
  color: #000;
}
 
@media screen and (max-width: 767px) {
  .el_humburger {
    display: block;
    right: 0;
    top: 20px;
    padding-top: 0;
    width: 70px;
    height: 70px;}
    #factory .el_humburger {
      display: none; } }
 
.el_humburger_wrapper {
  margin-bottom: 5px;
  width: 42px;
  display: inline-block; }
 
@media screen and (max-width: 767px) {
  .el_humburger_wrapper {
    margin-bottom: 5px;
    width: 30px; } }
 
.el_humburger_text {
  font-size: 12px;
  letter-spacing: 0.1em;
  }
 
.js_humburgerOpen .el_humburger_text.el_humburger_text__menu {
  display: none; }
 
.el_humburger_text.el_humburger_text__close {
  display: none; }
 
.js_humburgerOpen .el_humburger_text.el_humburger_text__close {
  display: block; }
 
@media screen and (max-width: 767px) {
  .el_humburger_text {
    font-size: 10px;
    padding-top: 2px; } }
 
@media screen and (max-width: 767px) {
  .el_humburger_text svg path {
    -webkit-transition: all 200ms cubic-bezier(0.16, 0.52, 0.25, 1);
    -o-transition: all 200ms cubic-bezier(0.16, 0.52, 0.25, 1);
    transition: all 200ms cubic-bezier(0.16, 0.52, 0.25, 1);
    fill: #000; } }
 
@media screen and (max-width: 767px) {
  .js_humburgerOpen .el_humburger_text svg path {
    fill: #000; } }
 
.el_humburger span.el_humburger_bar {
  display: block;
  width: 100%;
  margin: 0 auto 9px;
  height: 1px;
  background: #46C389; 
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out; }
 
.el_humburger span.el_humburger_bar:last-child {
  margin-bottom: 0; }
 
.js_humburgerOpen .el_humburger span.el_humburger_bar {
  background: #46C389; }
 
@media screen and (max-width: 767px) {
  .el_humburger span.el_humburger_bar {
    left: 0;
    top: 0;
    background: #46C389;} }
 
.js_humburgerOpen .el_humburger span.el_humburger_bar.top {
  -webkit-transform: translateY(9px) rotate(-30deg);
  -ms-transform: translateY(9px) rotate(-30deg);
  transform: translateY(9px) rotate(-30deg); }
 
.js_humburgerOpen .el_humburger span.el_humburger_bar.middle {
  opacity: 0; }
 
.js_humburgerOpen .el_humburger span.el_humburger_bar.bottom {
  -webkit-transform: translateY(-11px) rotate(30deg);
  -ms-transform: translateY(-11px) rotate(30deg);
  transform: translateY(-11px) rotate(30deg); }
 
.el_humburgerButton.el_humburgerButton__close {
  top: 2%;
  right: 2%; }
 
.el_humburgerButton__close span.el_humburger_bar {
  display: block;
  width: 35px;
  margin: 0 auto;
  height: 4px;
  background: #000; }
 
.el_humburgerButton__close span.el_humburger_bar.top {
  -webkit-transform: translateY(5px) rotate(-30deg);
  -ms-transform: translateY(5px) rotate(-30deg);
  transform: translateY(5px) rotate(-30deg); }
 
.el_humburgerButton__close span.el_humburger_bar.bottom {
  -webkit-transform: translateY(-6px) rotate(30deg);
  -ms-transform: translateY(-6px) rotate(30deg);
  transform: translateY(-6px) rotate(30deg); }
 
.navi {
  position: fixed;
  right: 0;
  /*height: 100%;*/
  height: 100vh;
  background-color: rgba(255, 255, 255, 1);
  width: 350px;
  z-index: 3;
  padding-top: 100px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 600ms ease-out;
  -o-transition: all 600ms ease-out;
  transition: all 600ms ease-out;
  transform:translateZ(0) translateX(100%);
  overflow: auto; }
  .js_humburgerOpen .navi {
    right: 0;
    transform:translateZ(0) translateX(0); }
    @media screen and (max-width: 767px) {
     /* .navi {
        padding: 100px 5% 0; }*/
      .js_humburgerOpen .navi {
        width: 100%;} }

.navi_inner{
    padding-top: 10%;
}
@media screen and (max-width: 767px) {
  .navi_inner{
    text-align: center;
    padding-top: 0;
  }
}
.navi_item {
  margin-bottom: 28px;
  white-space: nowrap;
  color: #222;
  margin-left: 90px; }
  .navi_item.op_innerLink {
    cursor: pointer; }
  @media screen and (max-width: 767px) {
    .navi_item {
      margin-left: 0;
      font-size: 18px; } }

.navi_item a{
  color: #222;
  text-underline-offset: 0.5em;
  text-decoration-thickness: 1px;
}
.navi_item a:hover{
  color: #2E0324;
}
/* プロジェクトのはじまり */
main#content{
    margin-top: 2%;
  }
#section-beginning {
  /*height: 100vh;*/
  height: 60vh;
  min-height: 60vh;
  background-color: rgba(255, 255, 255, 0); /* 初期は透明 */
  position: relative;
  transition: background-color 0.6s ease-in-out; 
  z-index: 1;
}
#section-beginning .section-content {
  position: relative;
  height: 100%;
  /*background-image: url(../img/bgimg_hand.png);
  background-repeat: no-repeat;
  background-size: 35%;
  background-position-x: 90%;
  background-position-y: 10px;*/
}

#section-beginning p{
  color: #222;
}
#section-beginning .center-text {
  position: absolute;
  /*top: 50%;*/
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 90%;
  text-align: left;
}

#section-beginning .bottom-right {
  position: absolute;
    width: 70%;
    bottom: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: right;
  font-size: 1rem;
}

#section-beginning .bottom-right a {
  text-decoration: underline;
  cursor: pointer;
  color: #2E0324;
}
@media screen and (max-width: 1024px) and (min-width: 768px) {
  #section-beginning .section-content {
    height: 100%;
    background-size: 40%;
    background-position-y: 10%;
    width: 100%;
  }
}
@media screen and (max-width: 767px) {
  #section-beginning .section-content {
    background-size: 65%;
    /*padding-top: 50%;*/
    padding-top: 0;
  }
  #section-beginning .center-text {
    width: 100%;
    top: 40%;
    max-width: 100%;
  }
  #section-beginning .bottom-right {
    width: 100%;
    /*bottom: 25%;*/
    bottom: 15%;
  }
}
@media screen and (max-width: 480px) {
  #section-beginning .bottom-right {
    bottom: 8%;
  }
}

/* ポップアップスタイル */
#popup-overlay {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.popup-content {
  position: relative;
  width: 70%;
  height: 65vh;
  flex-wrap: nowrap;
  align-content: center;
  margin: 10% auto;
  background: url('../img/popup_bg.png') center/cover no-repeat;
  color: white;
  padding: 2rem;
  /*box-shadow: 0 0 20px rgba(0,0,0,0.4);*/
  opacity: 0;
  transform: translateY(30px);
  animation: popupFadeUp 0.6s ease-out forwards;
}


.popup-inner{
/*background-color: rgba(0, 0, 0, 0.5);*/
    padding: 5%;
}
.popup-content h3{
    border-bottom: 1px solid;
    display: inline-block;
    font-size: 15px;
    font-weight: 100;
}
.popup-content p {
  padding: 1rem 0;
  /*line-height: 2.5;*/
  font-weight: 100;
  
}
/* アニメーション定義 */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popupFadeUp {
  from {
    opacity: 0;
    transform: scale(0.8) ;
  }
  to {
    opacity: 1;
    transform: scale(1) ;
  }
}

#close-popup {
  position: absolute;
  width: 70px;
  height: 70px;
  top: 2rem;
  right: 1rem;
  cursor: pointer;
  color: white;
}
.close_bar{
    display: block;
    width: 50px;
    height: 1px;
    background: #46C389;
}
.close_bar.top{
  -webkit-transform: translateY(9px) rotate(-30deg);
  -ms-transform: translateY(9px) rotate(-30deg);
  transform: translateY(9px) rotate(-30deg); 
}
.close_bar.middle{
  -webkit-transform: translateY(8px) rotate(30deg);
  -ms-transform: translateY(8px) rotate(30deg);
  transform: translateY(8px) rotate(30deg); 
}
/* 活動内容 */
#Activity{
  padding-top: 5em;
  padding-bottom: 3em;
}
.section-content.h2room{
  padding-top: 2em;
  padding-bottom: 5em;
}
@media screen and (max-width: 840px) {
  .section-content.h2room{
    padding-bottom: 3em;
  }
}
.Activity{
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 10%;
}
@media screen and (max-width: 767px) {
  #Activity{
    padding-top: 0;
  }
  .section-content.h2room{
    padding-bottom: 0;
  }
  .Activity{
    padding-bottom: 0;
  }
  /*#Development{
    margin-top: 5em;
  }*/
}
.activity{
  width: 45%;
}
.activity h4{
  background-color: #f0f0f0;
  color: #222;
  display: inline-block;
  margin: 20px 0 10px;
  letter-spacing: 0.1em;
  padding: 0px 0.1em 0 0.2em;
  font-size: 22px;
  font-weight: 100;
}
.activity-img{
  display: block;
  text-align: center;
}
#Research .activity-img img{
  width: 80%;
}

#Implement{
  flex-direction: row-reverse;
}
#Implement .activity-img {
  text-align: left;}
#Implement .activity-img img{
  width: 76%;
}
#Implement.Activity{
  justify-content: end;
}
@media screen and (max-width: 840px) {
  .Activity ,#Implement{
    flex-direction: column-reverse;
  }
  .activity{
    width: 100%;
  }
  #Research .activity-img img,#Implement .activity-img img{
    width: 60%;
  }
  #Implement .activity-img {
    text-align: center;
    padding-bottom: 4%;
  }
}
#Development{
  display: block;
  position: relative;
}
#Development.Activity{
  justify-content: center;
}
#Development .activity{
  width: 43%;
  padding-top: 50px;
  margin: auto;
}
#Development .activity-img {
  position: absolute;
    display: block;
    width: 100%;
    top: -5%;
    opacity: 0.6;
}
@media screen and (max-width: 840px) {
  #Development {
    display: flex;
  }
  #Development .Activity{
    margin-top: 10%;
  }
  #Development .activity{
    width: 100%;
    padding-top: 3%;
  }
  #Development .activity-img {
   position: static;
  }
  .Activity{
    padding-top: 10%;
    padding-bottom: 10%;
  }

}
/* 団体概要 */
#organization h2,#group h2{
  padding-bottom: 1em;
}
@media screen and (max-width: 840px) {
  #organization h2,#group h2{
    padding-bottom: 0em;
  }
}
@media screen and (max-width: 767px) {
#organization{
  padding-top: 0;
}
}
.org-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 3em;
}
.org-row:last-of-type{
  margin-bottom: 0;
}
.bordered {
  border-right: 1px solid #fff;
  padding-right: 1em;
  margin-right: 1em;
}
.org-label {
  display: inline-block;
  padding-right: 3em;
  font-weight: bold;
  white-space: nowrap;
}
.org-label.org-name {
  padding-right: 5em;
}
.org-content {
  width: calc(85% - 1em);
}
.org-content .font90{
  font-size: 90%;
}
.two-col {
  display: flex;
  justify-content: space-between;
  gap: 2em;
}
.two-col .col {
  width: 48%;
  display: flex;

}
.org-content ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0;
  font-size: 90%;
}
@media screen and (max-width: 840px) {
  .org-row{
    margin-bottom: 1em;
  }
  .bordered {
    border: none;
  }
  .org-content{
    border-top: 1px solid rgb(240, 240, 240, 0.5);
    width: 100%;
    padding-top: 5px;
  }
  .two-col .col {
    width: 100%;
    display: block;
  }
}
/* 参画企業紹介 */
.group-content{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.comp{
width: 22%;
}
.comp a{
  background-color: #fff;
  display: block;
  text-align: center;
  padding-top: 25px;
  padding-bottom: 25px;
}
.comp a img{
  vertical-align: middle;
}
.comp p{
  font-size: 90%;
  line-height: 1.6;
}
@media screen and (max-width: 900px) {
.comp{
  padding-bottom: 1.5em;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}
.comp:last-of-type{
  padding-bottom: 0;
}
.comp a{
  padding: 5px 10px;
}
.comp div{
  padding-left: 1.5em;
}
}
@media screen and (max-width: 767px) {
.comp{
  display: block;
}
.comp div{
  padding-left: 0;
}
}

/* お問い合わせ */
form {
  max-width: 600px;
  text-align: left;
}

form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5rem;
}

textarea {
  resize: vertical;
}

.required {
  color: red;
  font-size: 0.9rem;
}

button.btn {
  margin-top: 1.5rem;
  background-color: #37052b;;
  color: #f0f0f0;
  border: none;
  padding: 10px 20%;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

button.btn:hover {
  background-color: #4f0a3f;
}


@media screen and (max-width: 767px) {
  form {
    padding-bottom: 2em;
  }
}
/*フッター*/
footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li a {
  color: #f0f0f0;
  text-decoration: none;
}

.footer ul li a:hover {
  text-decoration: underline;
  text-underline-offset: 0.5em;
  text-decoration-thickness: 1px;
}

.flex {
  display: flex;
}

hr {
  height: 1px;
  border: 0;
  border-top: 0.5px solid #f0f0f0;
}

.footer {
  padding: 2rem 0;
  color: #f0f0f0;
  background: #2E0324;
}
.footer div{
  padding: 0 2rem;
}

.footer__navi {
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer__navi li {
  display: inline-block;
}

.footer__navi li:not(:last-child) {
  margin-right: 35px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer__logo span {
  display: inline-block;
  font-weight: normal;
    background-color: #f0f0f0;
    color: #222;
    padding: 0.2em 0.3em 0.2em 0.5em;
    text-decoration: none;
    font-size: 21px;
    letter-spacing: 0.2em;
}
.copyright {
    justify-content: flex-end;
    margin-bottom: 0;
    padding: 2rem 2rem 0;
  }
@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }
  .md-justify-between {
    justify-content: space-between;
  }
}
@media (max-width: 767px) {
.copyright {
    justify-content: flex-start;
  }
  .footer__navi li:not(:last-child) {
  margin-right: 16px;
}
}

/* reCAPTCHA表示設定 */
.grecaptcha-badge {
  visibility: hidden;
}
p.reCAPTCHA{
font-size: 12px; 
margin-top: 2em;
color: #222;
}