* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@media screen and (min-width: 767px) { /*ウィンドウ幅が767px以上の場合に適用*/
#menu-bg {background-color: #00FFFF; /*青色*/}}

@media screen and (max-width: 479px) { /*ウィンドウ幅が最大479pxまでの場合に適用*/
#menu-bg {background-color: #00FF00; /*緑色*/}}

@media screen and (max-width: 767px) { /*ウィンドウ幅が最大767pxまでの場合に適用*/
#menu-bg {background-color: #FF0000; /*赤色*/}}

/*@font-face{
    font-family: "WebSubsetFont";
    src:
        url("./img/WebSubsetFont.woff2") format('woff2');
}*/



body{
    background-color: #ffffff;
    width: 100%;

}
header{
    position: relative;
    background-color: white;
    height: 65px;
    margin-top: 0;
}

h1{
    position: absolute;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 35px;
    left: 70px;
    margin-top: 10px;
    color: #000000;
}

header img{
    object-fit: cover;
    max-width: 70px;
    max-height: 70px;
    padding-left:10px;
    padding-top: 5px;
    padding-bottom: 10px;
    padding-right: 3px;
}
/*ここまではOK*/

.menu-btn {
    position: fixed;
    right: 10px;
    display: flex;
    height: 60px;
    width: 60px;
    justify-content: center;
    align-items: center;
    z-index: 90;
    background-color: white;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #000000;
    position: absolute;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(255, 255, 255, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

#menu-btn-check {
    display: none;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    background-color: white;
}
.menu-content ul {
    padding: 5% 0 0 0;
}
.menu-content ul li {
    border-bottom: solid 1px #000000;
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 1vw;
    box-sizing: border-box;
    color:#000000;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
.menu-content ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #000000;
    border-right: solid 2px #000000;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}
.menu-content {
    width: 100%;
    height: 20%;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color: white;
    transition: all 0.5s;/*アニメーション設定*/
}

#menu-btn-check:checked ~ .menu-content {
    left: 0;/*メニューを画面内へ*/
}

nav ul{
display: table;
margin: 0 auto;
padding: 0 ;
width: 80%;
text-align: center;
}
nav li{
display: table-cell;
min-width: 50px;
}
nav a{
display: block;
width: 100%;
text-decoration: none;
color: #555;
padding-bottom: 5px;
}
nav li.current{
border-bottom: 3px solid #2e3092;
}
nav li:hover{
color: #2e3092;
border-bottom: 3px solid #2e3092;
}

/*ここまでナビゲーションバーデザイン----------------------*/


main{
    background-color: #ffffff;
    background-image: radial-gradient(circle, #ffd494 2px, transparent 2px);
    background-position: 0 0;
    background-size: 6px 6px;
}

.mainsub{
    background-image: radial-gradient(circle, #f5f5f5 2.5px, transparent 2.5px);
    background-position: 0 0;
    background-size: 10px 10px;
}

.maintop{
    position: relative;
    padding-bottom: 10%;
    padding-top: 5%;
}

h2{
    text-align: left;
    font-size: 3vw;
    position: absolute;
    margin: 5% 0 0 4%;
    line-height: 1.5;
}

.akiprofont{
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 8vw;
    text-shadow: 15px 8px 5px rgb(152, 196, 201);
}

.fa-envelope{
    background-color: #ffd494;
    max-width:18vw;
    text-align: center;
    margin: 10% 0 5% 20%;
}
.envelope{
    float: left;
    object-fit: cover;
    max-width: 18%;
    padding: 6% 0 0 10%;
    scale: 1.7;
}


.fa-envelope a{
    display: block;
    text-decoration: none;
    color: white;
    font-size: 0.8em;
    border: 0.2em outset #ffd494;
} 


.boxfortop{
    background-color: #ffd494;
    width: 55%;
    border-radius: 400px;
    margin-left: 37%;
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    text-align: center;
    font-size: 3vw;
    padding-top: 50px;
    padding-bottom: 30%;
    box-shadow: 15px 15px 0px 0 rgb(152, 196, 201);


}
    


.photo{
    position: absolute;
    display: block;
    object-fit: cover;
    max-width: 40%;
    margin-left: 11%;
    margin-top: 45px;


}
.balloon1 {
    position: absolute;
    display: block;
    max-width: 8%;
    max-height: 8em;
    margin: 0 0 0 52%;
    padding: 20px;
    background: #ffffff;
    writing-mode: vertical-rl;
    border: 4px dotted #ffd494;

}

.balloon1-1{
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 2vw;
}

.balloon2 {
    display: block;
    max-width: 5%;
    max-height: 10em;
    margin: 1% 0 0 46%;
    padding: 10px;
    background: #ffffff;
    position: absolute;
    writing-mode: vertical-rl;
    border: 4px dotted #ffd494;

}

.balloon2-1{
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 1.3vw;
}

.balloon3 {
    display: block;
    max-width: 5%;
    max-height: 7em;
    margin: 1% 0 0 41%;
    padding: 10px;
    background: #ffffff;
    position: absolute;
    writing-mode: vertical-rl;
    border: 4px dotted #ffd494;

}

.balloon3-1{
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 1.3vw;
}

.balloon4 {
    display: block;
    max-width: 8%;
    max-height: 9em;
    margin: 2% 0 0 8.4%;
    padding: 10px;
    background: #ffffff;
    position: absolute;
    writing-mode: vertical-rl;
    border: 4px dotted #ffd494;

}

.balloon4-1{
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 2vw;
}

.balloon5 {
    display: block;
    max-width: 8%;
    max-height: 8em;
    margin: 13% 0 0 4.2%;
    padding: 10px;
    background: #ffffff;
    position: absolute;
    writing-mode: vertical-rl;
    border: 4px dotted #ffd494;
}

.balloon5-1{
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 2vw;
}

/*-----------ここまでがメイン画デザイン----------------*/----------------*/





.space{
    max-width: 100%;
}

h3{
    background-color: rgb(255, 255, 255, 0.7);
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    text-align: center;
    font-size: 3vw;
    padding: 12% 0 0 0;

}

.intro{
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
    text-align: center;
    font-size: 1.5vw;
    padding: 5% 0 0 0;
    margin: 0 20% 0 20%;
    line-height: 2.5;
    max-width: 100%;
    max-height: 20%;

}

.hukidashileft{
    object-fit: cover;
    max-width: 7%;
    margin: 5% 0 0 12%;
    float: left;


}

.hukidashiright{
    object-fit: cover;
    max-width: 7%;
    margin:5% 12% 0 0;
    float: right;
}
.bar{
    max-width: 100%;
    margin-top: 10%;
}

/*------------ここまで「アキプロとは」ページ-----------*/
/*-------------------------ここからサービス一覧ページ-----------*/
.secondtitle{
    padding: 12% 0 0 0;
}

.list-grid1 {
    margin: 5% 20% 10% 20%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 45% 45%;
    grid-template-rows: 22% 22%;
    column-gap: 10%;
    row-gap: 5%;
}

.list-up{
    background-color: #ffd494;
    box-shadow: 2px 5px 5px rgba(0, 0, 0, 0.1);
    padding: 8% 10% 20% 10%;
    border-radius: 45%;
    max-width: 100%;
    max-height: 100%;
    font-size: 1.8vw;
    text-align: center;
    color: white;
    font-weight: bold;
}

.list-up img {
    object-fit: cover;
    max-width: 60%;
}

.mizuho{
    margin: 3% 0 0 5%;
    padding: 3% 0 5% 0;
    border-radius: 1%;
    max-width: 90%;
    background-color: rgba(216, 216, 216, 0.7);
}

@keyframes infinity-scroll-left {
from {
  transform: translateX(0);
}
  to {
  transform: translateX(-100%);
}
}
.scroll-infinity__wrap {
  display: flex;
  overflow: hidden;
}
.scroll-infinity__list {
  display: flex;
  list-style: none;
  padding: 0
}
.scroll-infinity__list--left {
  animation: infinity-scroll-left 80s infinite linear 0.5s both;
}

.scroll-infinity__item {
  width: calc(100vw / 3);
}
.scroll-infinity__item>img {
  width: 100%;
}

@keyframes infinity-scroll-right {
from {
  transform: translateX(-65%);
}
  to {
  transform: translateX(0%);
}
}
.scroll-infinity__list--right{
  animation :infinity-scroll-right 80s infinite linear 0.5s both;
}
.scroll-infinity__wrap:hover .scroll-infinity__list--left{
  animation-play-state: paused;
}

.scroll-infinity__wrap:hover .scroll-infinity__list--right{
  animation-play-state: paused;
}

/*-------------ここから施工事例-----------------*/


.examplebefore{
    max-width: 70%;
    background-color: white;
    margin: 2% 0 0 15%;
    padding: 3% 0 0 0;
    box-shadow: 3px 2px 5px gray;
}

.exampleafter{
    max-width: 70%;
    background-color: white;
    margin: 2% 0 0 15%;
    padding: 3% 0 0 0;
    box-shadow: 3px 2px 5px gray;
}
.examplebefore img,.exampleafter img{
    object-fit: cover;
    max-width: 90%;
}

.contactspace{
    text-align: center;
    color: darkslategray;
    font-size: 2vw;
    font-weight: bold;
    margin-top: 5%;

}

.secondenvelope{
    background-color: #ffd494;
    max-width:20%;
    margin: 3% 0 0 40%;
}

.secondenvelope a{
    display: block;
    color: white;
    text-decoration: none;
    text-align: center;
    font-size: 2.5vw;
    border: 0.2em outset #ffd494;
    font-weight: bold;
    padding: 3% 0 3% 0;
    max-width: 100%;
    max-height: 20%;
}



.thelastenvelope{
    float: left;
    object-fit: cover;
    max-width: 30%;
    padding: 5% 0 0 10%;
}

.call{
    max-width: 50vw;
    text-align: center;
    margin: 2% auto;
    max-height: 20%;
}

.call img{
    max-width: 15%;
    float: left;
    margin: 4% 0 0 8%;
}

.call a{
    display: block;
    text-decoration: none;
    color: darkslategray;
    font-size: 4vw;
    padding: 5% 20% 10% 10% ;

}

.call a:hover{
    opacity: 0.6;
}

footer{
    background-color: #ffffff;
    max-height: 70%;
    margin-top: 5%;
}

footer a {
    text-decoration: none;
    color: #000000;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4vw;
    text-align: center;
}

footer img{
    max-width: 4%;
    float: left;
    margin-left: 40%;
    margin-top: 0.8%;
    margin-right: 1%;
}

footer div{
    margin-bottom: 5%;
    margin-top: 5%;
    text-align: center;
}



/*
{
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}
  日本語用のフォント
  
   font-family: "Italiana", sans-serif;
    font-weight: 400;
    font-style: normal;
    

   /*font-family: "Poiret One", sans-serif;
  font-weight: 400;
  font-style: normal;



トップ「アキプロ」用フォント
.rampart-one-regular {
  font-family: "Rampart One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

    */


/*--------------ここからお問合せフォーム------------------------*/

/* フォームのタイトル */

/* フォーム全体のスタイル */
.formspace{
    padding: 5% 0 5% 0;
}

form {
    background-color: white;
    padding: 5%;
    max-width: 70%;
    margin: auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    font-family: "Alumni Sans Pinstripe", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.form {
    margin-top: 2%;
    font-size: 3vw;
    color: #333;
    text-align: center;
}

.call p{
    font-size: 2vw;
    margin: 10% 0 0 0;
    text-align: center;
}

.callimg{
    max-width: 10% !important;
    margin-top: 6% !important;
}

.call2{
    max-width: 60%;
}


/* ラベルのスタイル */
.label {
    display: block;
    color: #555;
    font-size: 2vw;
    margin-top: 3%;
}

/* 入力欄のスタイル */
input, textarea {
    width:57vw; /* box-sizingが適用されるので、paddingやborder込みで100%に収まる */
    padding: 1% 2% 1% 2%;
    margin-top: 1%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    text-align: left;
}

/* テキストエリアの高さを調整 */
textarea {
    resize: vertical;
    height: 120px;
}

/* 送信ボタンのスタイル */
button {
    background-color: #ffd494;
    color: white;
    border: none;
    padding: 2%;
    width: 100%;
    margin-top: 10%;
    border-radius: 2%;
    font-size: 2em;
    cursor: pointer;
}

/* ホバー時のボタンスタイル */
button:hover {
    background-color: #ffbc58;
}