@charset "utf-8";
*{
margin: 0;
padding: 0;
box-sizing: border-box; 
}
@font-face {
  font-family:"Nikumaru";
  src: url('font/07にくまるフォント.otf') format('opentype');

}
@font-face{
  font-family:"lightnovel";
src: url('font/LightNovelPOPv2.otf') format('opentype');
}
body {
  font-family:'Noto Sans JP',"Helvetica Neue", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  color: #4c4c4c;
  background-color:#ffffff;
  overflow-x: hidden;
}

header {
  position:fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 4px solid #7c7c7c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

header .title{
  display:block;
font-family: "Nikumaru";
font-size: 1.5rem;
margin-top:0.5rem;
text-decoration: none;
padding:3%;
color:#555;
}

.footer-logo a{
  display:block;
font-family: "Nikumaru";
font-size: 1.5rem;
margin-top:0.5rem;
text-decoration: none;
padding:3%;
color:rgb(255, 255, 255);
}

.fade-in {
  opacity: 0;  
  transition: opacity 1.5s ease-in-out; 
}

.fade-in.show {
  opacity: 1; 
}

 /* ファーストビュー*/
 .midashiwrap{
  display:flex;
 }
 .midashibox{
  position: relative;}

  .midashi h1 {
    font-size:clamp(22px,1vw,26px);
    line-height: 1.5;
  }
  .midashi p {
    font-size: 1rem;
    line-height: 2;
    padding-top:1rem;
    font-weight: 800;
  }

  /* スクロールテキスト */
.scroll-wrapper {
    position: absolute;
    left: 10%;
    bottom: 150px;
    display: flex;
    align-items: flex-start;
    gap: 8px; /* 線とSCROLLの間隔 */
  }
  
  .line-and-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .line {
    width: 1px;
    height: 60px;
    background-color: #4D4D4D;
  }
  
  .arrow {
    font-size: 0.8rem;
    color: #4D4D4D;
  }
  
  .label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    color: #4D4D4D;
  }


   /* ニュース */
.news {
  width:90%;
  margin: 0 auto;
  margin-top:7%;
    background-color: #ffffff;
    color:#4D4D4D;
}
.news h3 {
    font-size:1.5rem;
    font-weight: bold;
}
.subtitle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1rem;
}
.news-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1rem;

}
.news-title{
  display:block;
  width:100%;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02rem;
  text-align: left;
    color: #4D4D4D;
  text-decoration: none;
    font-weight: 800;
    line-height: 1.5;
}
.news-box {
  width: 90%;
  margin-top:10%;
  margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-thumbnail {
    width: 100%;
    margin-bottom: 10px;
    margin-top:5%;
 
}
.news-datebox {
    font-size: 0.5rem;
    color: hsl(0, 0%, 53%);
    margin-bottom: 10px;
}
.btn_box{
  width: 120px;
  margin: 0 auto;
}
 /* ボタン */
.more_btn {
  display: block;
  margin:0 auto;
  margin-top:20px;
  text-align: center;
  text-decoration: none;
  line-height: 2.5rem;
  outline: none;
  color: #4D4D4D;
  background:rgba(255,0,0,0.0);
  position: relative;
  border: 1px solid #4D4D4D;
  transition: color 0.5s ease;
}
.more_btn:hover {
  color: #fff;
}
.more_btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.more_btn::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background:  #4D4D4D;
  transform: scaleX(0);
  transform-origin: right;
  transition: all 0.5s ease;
  transition-property: transform;
}

.text {
    position: relative;
  top:2px;}

  /* 事業内容 */
  .boxwrap2{
    width:68%;
    margin: 0 auto;
  }
  .boxwrap2 a{
    text-decoration: none;
  }
  .cardtext{
    width:40%;
  margin: 0 auto;
  }
.cardmi {
  background: #fff;  
  padding: 20px 0 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color:#4d4d4d;
}
.cardmi:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.cardmi h3 {
  color: #464646;
  font-size: 20px;
  margin-bottom: 10px;
}
.cardmi p {
  margin: 5px 0;
}

 .cardimg{
    margin: 0 auto;
  }
  .cardmi img
  {display:block;
    width:350px;
    height:250px;
    margin: 0 auto;
  }

.butitle {
  font-size:1.5rem;
  font-weight: bold;
    margin-bottom: 5px;
}

.busubtitle {
  font-size: 11px;
  letter-spacing: 0.1rem;
  font-weight: bold;
  line-height: 1.8;
}

  /* ABOUT*/

.container2 {
    margin: 0 auto;
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
  }
  

  .about-box {
    padding: 40px 20px;
    text-align: center;
  }
  
  .about-box h3 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #333;
  }
  
  
  .description {
    font-size: 14px;
    margin-top: 1rem;
    color: #666;
  }


  
  /* お問い合わせボタン*/

  .contact {
    display: inline-block;
    width: 100%;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
    position: relative;
  }
  
  .contact span {
margin-left: 5%;
    font-size: 16px;
    color: #ffffff;
  }
  
  .contact-button:hover {
    background-color: #333;
  }
  .contact{
    border: solid 1px rgb(255, 255, 255);
  }
  
  .contact-:hover {
    background-color: #333;
  }
  
  /* フッター */
  footer {
    background-color: #333;
    padding: 20px;
    color:#fff;
    font-weight: bold;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    text-align: center;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
}
.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a{
  color:#ddd;
  font-size:25px;
margin-right:10px;

}


.social-icons i:hover {
  transition: 1s;
  -webkit-transform: rotateY(360deg);
  transform: rotateY(360deg);}
.contact-button {
  margin-top:3%;
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFF;
    color: rgb(76, 76, 76);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}
.footer-bottom {
    margin-top: 20px;
    font-size: 0.8em;
}


  
  /* メニューボタン */
.menu-btn {
  font-size: 30px;
  color: #4D4D4D;
  background: none;
  border: none;
  cursor: pointer;
  margin-right:3%;
}

/* メニューのオーバーレイ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #2c3e50;
  display: none; /* 初期状態では非表示 */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* メニューが表示スタイル */
.menu-overlay.active {
  display: flex;
}

/* メニュー項目 */
.menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.menu ul li {
  margin: 20px 0;
}

.menu ul li a {
      
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}


@media (max-width: 480px) {
  header{
    height:60px;
  }
  .pc-nav {
    display: none !important;
  }
  .pctopimg{
     display: none !important;
  }
	.scroll-wrapper{
    display:none;
  }
  .midashi p {
    font-size:clamp(14px,1vw,20px);
   
  }

  .midashiwrap{ 
    display:block;
    width: 100%;
    min-height: clamp(600px, 90vh, 800px);
    margin: 0 auto;
    overflow: hidden;
    padding-top: 40px;
   }
  
  .midashibox {
    height:50vh;
    position: relative;
    overflow: hidden;
  }
  .midashi{
    width:85%;
  margin: 0 auto;
  
  }
  .sptopimg{
    display:block;
      max-width: 100%;
      height: auto;
      margin: 0 auto;
  
    }

  .news-item:last-child {
     
  }

  .more_button{
    padding: 8px 20px;
  }
  .boxwrap2 {
    width:90%;
    margin: 0 auto;
    margin-top:10%;
    display: grid;
    flex-direction: column;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom:10%;
  }
  #illustbox{
    display: flex;
    flex-direction: column;
  }
#illustboxtext{
  order: 2; 
}
#illustboxim{ 
  order: 1; 
}
  .cardmi img
  {display:block;
    width:100%;
    margin: 0 auto;
  }
  .cardmi h3{
  margin-top:3%;
  font-size:16px;
  }
  .cardmi{
    width:100%;
    margin:0 auto;
  font-size:12px;
  position: relative;
  opacity: 0;
  transform: translateX(0); /* 初期状態 */
  transition: transform 1s ease, opacity 1s ease;
  margin-top:50px;
  }
  .cardmi img
  {display:block;

  margin: 0 auto;
  padding-bottom:2%;
  }

  .cardtext{
    width:75%;
  margin: 0 auto;
  }
  .cardmi h3{
    margin-top:3%;
    font-size:clamp(18px,1vw,20px);
  }
  
  /* スクロール前の初期位置 */
  .cardmi.left{
    transform: translateX(-30px); 
  }
  .cardmi.right{
    transform: translateX(30px); 
  }

  /* スクロール後のアニメーション */
  .cardmi.visible {
    opacity: 1;
    transform: translateX(0); /* 初期位置に戻る */
  }
  
  /* 最終的な左右交互の配置 */
.cardmi.left.visible {
    transform: translateX(-10px); 
  }
  
  .cardmi.right.visible {
    transform: translateX(10px); 
  }
  .contact-btn {
    width: 70%;
    padding: 10px;
    background-color: #444;
  }
.contact {
  padding: 40px 20px;
}
footer{
  text-align: left;
  color:#FFF;
}
.footer-nav{
  border-bottom: solid 1px #fff;
  padding:20px;
}
.footer-nav a{
display:block;
margin-top:12px;
text-align: left;
font-size:14px;
font-weight: bold;
}
.footer-container {
  display:block;
  justify-content: space-between;


}
.footer-social{
  margin-top:15px;
  padding:20px;
  font-size:18px;
  text-align: left;
  border-bottom: solid 1px #fff;
}
.footer-contact{
  margin-top:15px;
  text-align: left;
  padding:20px;
  border-bottom: solid 1px #fff;
}
.footer-contact h3{
  font-size:18px;
  margin-bottom:10px;
}
.footer-contact p{
  font-size:14px;
  font-weight: bold;
}

.footer-content {
  display:block;
  padding:20px;
  justify-content: space-between;
  width: 100%;
}

}

@media (min-width: 481px) and (max-width: 768px) 
{
  header{
    height:70px;
  }
  .pctopimg{
   display: none !important;
 }
  .pc-nav {
    display: none !important;
  }
  .midashiwrap{ 
    width:100%;
    min-height: clamp(400px, 90vh, 800px);
    display:block;
    overflow: hidden;
    margin-top:45px;
   }

  .midashibox {   height:50vh;
    position: relative;
    text-align: left;
    overflow: hidden;
    transform: translateY(0); /* 初期位置 */
    transition: transform 0.1s ease-out; 
  }
  .midashi{
    width:65%;
  margin: 0 auto;
  }

  .sptopimg {
      display:block;
      max-width: 75%;
      height: auto;
      margin: 0 auto;
    }
 .scroll-wrapper{
    display:none;
  }
 
  .news-item:last-child {
      
  }
.news{
  width:80%;
}
  .news-thumbnail {
    width: 100%;
    margin-bottom: 10px;
 
}
  .news-box {
    width: 75%;
    margin-top:50%;
    margin: 0 auto;
    margin-top:5%;
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .boxwrap2 {
    width:80%;
    margin: 0 auto;
    margin-top:5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        margin-bottom:10%;

  }
  .cardmi{
    width:90%;
    margin:0 auto;
  font-size:13px;
  position: relative;
  opacity: 0;
  transform: translateX(0); /* 初期状態 */
  transition: transform 1s ease, opacity 1s ease;
  margin-top:50px;
  }
  .cardmi img
  {display:block;
    width:90%;
    margin: 0 auto;
  }
  .cardtext{
    width:60%;
  margin: 0 auto;
  }
  .cardmi h3{
    margin-top:3%;
    font-size:16px;
  }
  

  .cardmi img
  {display:block;
width:100%;
height:auto;
  margin: 0 auto;
  padding-bottom:2%;
  }
  #illustbox{
    display: flex;
    flex-direction: column;
  }
#illustboxtext{
  order: 2; 
}
#illustboxim{ 
  order: 1; 
}


  /* スクロール前の初期位置 */
  .cardmi.left {
    transform: translateX(-30px); 
  }
  
  .cardmi.right {
    transform: translateX(30px); 
  }
  
  /* スクロール後のアニメーション */
  .cardmi.visible {
    opacity: 1;
    transform: translateX(0); /* 初期位置に戻る */
  }
  
  /* 最終的な左右交互の配置 */
  .cardmi.left.visible {
    transform: translateX(-20px); 
  }
  
  .cardmi.right.visible {
    transform: translateX(20px); 
  }
  .contact-btn {
    width: 50%;
    padding: 10px;
    background-color: #444;
  }
.contact {
  padding: 40px 20px;

}
footer{
  text-align: left;
  color:#FFF;
}
.footer-nav{
  border-bottom: solid 1px #fff;
  padding:20px;
}
.footer-nav a{
display:block;
margin-top:12px;
text-align: left;
font-size:14px;
font-weight: bold;
}
.footer-container {
  display:block;
  justify-content: space-between;


}
.footer-social{
  margin-top:15px;
  padding:20px;
  font-size:18px;
  text-align: left;
  border-bottom: solid 1px #fff;
}
.footer-contact{
  margin-top:15px;
  text-align: left;
  padding:20px;
  border-bottom: solid 1px #fff;
}
.footer-contact h3{
  font-size:18px;
  margin-bottom:10px;
}
.footer-contact p{
  font-size:14px;
  font-weight: bold;
}

.footer-content {
  display:block;
  padding:20px;
  justify-content: space-between;
  width: 100%;
}

}

@media (min-width: 769px) and (max-width: 1080px) 
{
  .pc-nav {
    display: none !important;
  }
  header{
    height:70px;
  }
  .midashiwrap{ 
    display:block;
    width:100%;
    min-height: clamp(600px, 90vh, 800px);
    margin-top:30px;
    overflow: hidden;
   }

  .midashibox {
    height:50vh;
    position:relative;
    text-align: left;
    overflow: hidden;
    transform: translateY(0); /* 初期位置 */
    transition: transform 0.1s ease-out; 
  }
.midashi{
  width:75%;
margin: 0 auto;

}
.sptopimg{
  display:none;
}
  .pctopimg{
    max-width: 90%;
    height: auto;
    margin: 0 auto;
display:block;
  }
  .midashi h1 {
    font-size:1.8rem;
    font-weight: bold;
    line-height: 1.5;
    font-family:"lightnovel";

  }
  .midashi p {
    font-size: 1rem;
    line-height: 2;
    padding-top:1rem;
    font-weight: 800;
  } 
  .scroll-wrapper{
    display:none;
  }

  .news{
    width:80%;
  }
  .news-item:last-child {
      
  }

  .news-thumbnail {
    width: 100%;
    margin-bottom: 10px;
 
}
  .news-box {
    width: 70%;
    margin: 0 auto;
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
  }
  .boxwrap2{
    width:85%;
    margin: 0 auto;
    margin-top:3%;
    margin-bottom:10%;
  }
  .cardtext{
    width:30%;
  margin: 0 auto;
  }
  .cardmi{
    width:90%;
    display:flex;
    margin: 0 auto;
    margin-top:5%;
    font-size:13px;
    position: relative;
    opacity: 0;
    transform: translateX(0); /* 初期状態 */
    transition: transform 1s ease, opacity 1s ease;
    
  }
  .cardmi h3{
    margin-top:3%;
    font-size:18px;
  }
 

  .cardmi img
  {display:block;
    width:380px;
  height:auto;
    margin: 0 auto;
  }
  
  
  /* スクロール前の初期位置 */
  .cardmi.left {
    transform: translateX(-50px); 
  }
  
  .cardmi.right {
    transform: translateX(50px); 
  }
  
  /* スクロール後のアニメーション */
  .cardmi.visible {
    opacity: 1;
    transform: translateX(0); /* 初期位置に戻る */
  }
  
  /* 最終的な左右交互の配置 */
  .cardmi.left.visible {
    transform: translateX(-20px); 
  }
  
  .cardmi.right.visible {
    transform: translateX(20px); 
  }
  .contact-btn {
    width: 50%;
    padding: 10px;
    background-color: #444;
  }
.contact {
  padding: 40px 20px;
}
.footer-container{
  margin: 0 auto;
}
.footer-nav{
width:400px;
margin: 0 auto;}

.footer-social
{  width:200px;
margin: 0 auto;
border-left:solid 1px #fff;
border-right:solid 1px #fff;
}
.footer-contact
{  width:350px;
margin: 0 auto;

}
.footer-contact p
{  font-size:14px;
}
.footer-content{
max-width:1200px;
margin: 0 auto;
display:flex;
}
.footer-logo{
width:500px;
margin: 0 auto;
text-align: center;
}
.footer-copy{
width:250px;
margin: 0 auto;
margin-top:2%;
text-align: right;
font-size:14px;

}
}


@media (min-width: 1081px) {

  header{
    height:100px;
  }
  .pc-nav ul{
    display:flex;
    list-style: none; }

.pc-nav li {
  margin: 0 30px;
}
.pc-nav a {
  text-decoration: none;
  color: #4D4D4D;
  font-size: 1rem;
  font-weight: bold;
  transition: color 0.3s;
}
.pc-nav a:hover {
  color: #909090;
}

  .menu {
    display: none;
  }
  .menu-btn {
    display: none;
  }

  .midashibox {
    text-align: left;
    width:100%;
    margin: 0 auto;
    overflow: hidden;
    transform: translateY(0); /* 初期位置 */
    transition: transform 0.1s ease-out; 
  }

  .midashiwrap{ 
    width:100%;
    min-height: clamp(800px, 80vh, 1000px);
  margin-top:clamp(10px, 5vw, 80px);
    overflow: hidden;
justify-content: space-between;
align-items: stretch;

  }
  .midashibox{
    flex: 0.6;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ← これで上下中央に！ */
    padding: 2rem 2rem 2rem 0;
    position: relative;
   }

   .sptopimg{
    display:none !important;
  }
    .pctopimg{
      max-width: 100%;
      height: auto;
      margin: 0 auto;
  display:block;
    }

.midashiimage{
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .midashi h1 {
    font-size:clamp(30px,3vw,40px);
font-family:"Sawarabi Gothic", "sans-serif;";
  }
  
  .midashi p {
    font-size:clamp(14px,1.2vw,20px);
    line-height: 2;
    padding-top:1rem;
    font-weight: 800;
  }
  .menu {
    gap: 30px;
}
.news{
  width:75%;
}

.news-box {
  margin-top:20px; 
   margin-bottom:50px;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.more_btn
{ padding: 8px 20px;}

.boxwrap2{
  width:75%;
  margin: 0 auto;
  margin-top:3%;

}
.cardmi{
  width:100%;
  display:flex;
  align-items: center; /* ←これが上下中央！ */
  gap: 2rem; 
margin: 0 auto;
  margin-top:3%;
  font-size:13px;
      position: relative;
    opacity: 0;
    transform: translateX(0); /* 初期状態 */
    transition: transform 1s ease, opacity 1s ease;
}
.cardmi h3{
  margin-top:3%;
  font-size:18px;
}
.cardimg2{
width:50%;
}
.cardmi img
{  width: 100%;
  height: auto;
  display: block;
}

  /* スクロール前の初期位置 */
  .cardmi.left {
    transform: translateY(20px); 
  }

  .cardmi.right {
    transform: translateY(20px); 
  }

  /* スクロール後のアニメーション */
  .cardmi.visible {
    opacity: 1;
    transform: translateY(0); 
  }
  .contact-btn {
    width: 20%;
    padding: 10px;
    background-color: #444;
  }
  .container2
  {
    margin-top:5%;
    padding-bottom:3%;
  }

  .contact{
    padding: 50px 20px;
  
  }
footer h3{
  font-size:20px;
}
 .footer-container{
    margin: 0 auto;
    padding-top:20px;
    padding-bottom:20px;
  }
.footer-nav{
  width:400px;
  margin: 0 auto;}

  .footer-nav a{margin-left:5%;

  }

.footer-social
{  width:300px;
  margin: 0 auto;
  border-left:solid 1px #fff;
  border-right:solid 1px #fff;
}
.footer-contact
{  width:300px;
  margin: 0 auto;

}
.footer-contact p
{  font-size:14px;
  margin-top:10px;
}
.footer-content{
  max-width:1200px;
  margin: 0 auto;
  display:flex;
}
.footer-logo{
  width:500px;
margin: 0 auto;
text-align: center;
}
.footer-copy{
  width:250px;
margin: 0 auto;
margin-top:2%;
text-align: right;
font-size:14px;
}

}
