@charset "UTF-8";

body {
   width: auto;
   margin: 0;
   font-family: sans-serif;
   background-color: #e9f9f9;
}
/*会社沿革*/
.titleborder{
    border-bottom:5px double #333;
    width: 200px;
    margin:0;
    position: relative;
    top: 0;
    left: 130px;
    text-align: center;
}

#main{
    width: 200px;
    height: 50px;
    margin: 0;  
}

/*内容*/
.naiyo1{
    font-size: 20px;
    font-weight: 700;
    position: absolute;
    left: 25px;
    top:70px;
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-left: 20px; 
    white-space: nowrap;
}
.naiyo2{
    font-size: 20px;
    font-weight: 700;
    top:70px;
    text-align: left;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin-left: 20px;
    white-space: nowrap;
}

/*画像*/

.gazou1{ 
    width: 750px;
    height: 570px;
    background-color: #ccc;
    background-image: url(../images/CIMG5463.JPG);
    background-size: cover;
    position: absolute;
    left: 440px;
    top: -55px;
    z-index: -10;
    border-bottom-left-radius: 70% 101%;
    background-position: center;
    background-position-x: -50px; 
}

.gazou2{ 
    width: 650px;
    height: 600px;
    background-color: #ccc;
    background-image: url(../images/a.jpg);
    background-size: cover;
    position: absolute;
    left: -652px;
    top: 0;
    z-index: -10;
    border-top-right-radius: 72% 80%;
    background-position: center;
    background-position-x: -60px; 
}

/*内容の画面分割線*/
.owaku1{
    position: relative;
    top: -55px;
    left: 0;
    width: 635px;
    height: 626px;
    border-left: 30px solid;
    border-bottom: 1px solid;
    border-bottom-left-radius: 505px;
    border-color: #00E667;
}

.owaku6{
    position: relative;
    top: -55px;
    left: 412px;
    width: 820px;
    height: 570px;
    border-left: 33px solid;
    border-bottom: 1px solid;
    border-bottom-left-radius: 563px;
    border-color: #00E667;
}

.owaku2{
    position: absolute;
    top: 625px;
    left: 600px;
    width: 640px;
    height: 600px;
    border-right:30px solid #00E667;
    border-top: 1px solid #00E667;
    border-left: 1px solid rgba(255, 255, 255, 0);
    border-top-right-radius: 480px;  
    margin: 0;
}

.owaku4{
    position: relative;
    top: 0;
    left: -615px;
    width: 615px;
    height: 600px;
    border-right:30px solid #00E667;
    border-top: 1px solid #00E667;
    border-left: 1px solid rgba(255, 255, 255, 0);
    border-top-right-radius: 470px;  
    
}

.owaku3{
    position: absolute;
    top: 15px;
    left: -270px;
    height: 585px;
    border-left: 1px solid rgba(255, 255, 255, 0);
}

/*リンクボタン*/

.linkidou{
      position: absolute;
      top:0;
      left:1177px;
      width:80px;
      height:570px;    
}

.link{
       width:80px;
       height:570px;
       position:absolute;
       top:0;
       left:0;
       display: flex;
    flex-direction: column;
    justify-content: center; /* ボタンを中央揃え */
       align-items: center; /* 縦位置を調整 */
       gap: 0; 
}

.item {
    display: flex;
    flex-direction: column; /* ボタンの下にテキストを配置する場合 */
    align-items: center; /* 中央揃え */
}



.p4{
    display: flex; /* 縦並びにする */
    flex-direction: column; 
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 縦方向も中央揃え */
    gap: 0; /* テキストとアイコンの間隔を調整 */
    width: 80px;
    height: 190px;
    text-align: center;
    font-weight: bold;
    border-radius: 0;
    color: #fff;
    border: 1px solid #094;
    box-shadow: 5px 5px  #007032;
    transition: 0.5s ease-in-out;   
    background-color: #00E667;
    cursor: pointer;
    z-index: 10;
    
}

.p6, .p5{
    display: flex; /* 縦並びにする */
    flex-direction: row; 
    align-items: center; /* 縦方向も中央揃え */
    width: 80px;
    height: 190px;
    text-align: center;
    font-weight: bold;
    border-radius: 0;
    color: #fff;
    border: 1px solid #094;
    box-shadow: 5px 5px  #007032;
    transition: 0.5s ease-in-out;   
    background-color: #00E667;
    cursor: pointer;
    z-index: 10;   
    gap: 0; /* 2列の間隔 */
    justify-content: center;    
    text-decoration: none;
}

.kaiten{
    transform: rotate(90deg);

}

.char{
    transform: rotate(270deg);
    display: inline-block; 
    text-decoration: underline;
}

.p4:hover,.p5:hover,.p6:hover {
	width: 80px;
    height: 190px;
        max-width: 80px;
        box-shadow: none;
	    color: #fff;
        background-color: #094;   
        transform: translate(5px, 3px); /* 動きすぎないように微調整 */

}
* {
  box-sizing: border-box;
}