@charset "utf-8";

:root {
    /* green */
    --color-primary: #88b04b;
    /* blown */
    --color-secondary: #996633;
  }




/* standard */
body,html{
    font-family: "Shippori Mincho B1";
}



/* header */
header{
    height: auto;
    background: var(--color-primary);
    margin-bottom: 100px;
}

header p{
    color: white;
    text-align: center;
    font-size: 12px;
    line-height:12px;
    padding: 5px;
    
}

header a{
    color: white;
}

/* header end */

/* navigation */

.top{
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: auto;
}

.top img{
    width:20%;
}

p.title{
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 20px;
    line-height: 2;
}

.top nav ul{
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 24px;
}

.top nav ul li{
    border-left: solid 1px gray;
}

.top nav ul li a::before{
    content: "●";
    color: var(--color-primary);
    font-size: small;
    padding-bottom: 10px;
}

.top nav ul li a{
    color: black;
    display: block;

    padding-right: 10px;
    padding-left: 10px;

}

.top nav ul li a:hover::before{
    color: #996633;
}

/* navigation end*/


/* main */

main{
    max-width: 1200px;
    margin: auto;
}

/* main end*/

/* top content */
.cloud{
    margin-top: 150px;
    margin-bottom: 150px;
    display: flex;
    justify-content: space-between;
}

.news{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

/* recruit banner */
.recruit_banner{
    width:45%;
    margin-right: 2.5%;
    display: flex;
    border: 3px solid black;
}

.recruit_banner img{
    width: 50%;
}

.recruit_banner .recruit_txt{
    width: 50%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recruit_banner .recruit_txt h3{
    font-size: 10px;
    margin: 5px auto;
}

.recruit_banner .recruit_txt h3 span{
    font-style: italic;
}

.recruit_banner .recruit_txt p{
    font-size: 16px;
    margin: 5px auto;
}

.recruit_banner .recruit_txt p:nth-of-type(2){
    font-size: 12px;
}  
/* recruit banner end */

/* empty room banner */
.empty_room_banner{
    width:45%;
    margin-left: 2.5%;
    border: 3px solid var(--color-primary);
    text-align: center;
    position: relative;
}

.empty_room_banner h2{
    color: white;
    background: var(--color-primary);
    font-size: 16px;
    line-height: 30px;
}

.empty_room_banner .empty_txt{
    width: 100%;
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.empty_room_banner .empty_txt p{
    font-size: 16px;
    line-height: 30px;
}
/* empty room banner end */
/* top content area */


/* philosophy area */

.philosophy{
    margin-top: 100px;
    display: flex;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px auto;
}


.philosophy h1 img{
    height: 24px;
    line-height: 24px;
}

.philosophy h1{
    font-size: 24px;
    line-height: 24px;
    margin: 30px auto;
}

.philosophy_txt{
    width: 45%;
}

.philosophy_txt h3 img{
    margin: 30px auto;
    width: 100%;
} 

img.philosophy_img{
    height: 80%;
}

.philosophy_txt p{
    line-height: 1.5;
}
/* philosophy area end*/

/* day service area*/

.dayservice h2 img{
    height: 24px;
    margin: auto 30px;
}

.dayservice h2{
    font-size: 24px;
    text-align: center;
    margin-top: 100px;
}

/* rule of grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2カラムの設定 */
    gap: 20px; /* グリッド間の間隔 */
    width: 100%;
  }
  
  .grid-item {
    /* background-color: #f0f0f0;  */
    /* 背景色 */
    padding: 20px; /* パディング */
  }
  
  .full-width {
    grid-column: 1 / -1; /* 1カラム全幅にする設定 */
  }
  
.grid_flex{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* rule of grid end */

/* 1 */
.first_grid{
    position: relative;
}

.first_grid img{
    width: 40%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

.date_area p:nth-of-type(1){
    font-size: 24px;
    font-weight: bold;
    letter-spacing: .5em;
    margin-top: 15px;
    margin-bottom: 15px;
}
.date_area p:nth-of-type(2){
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
}

.date_area p:nth-of-type(3){
    line-height: 1.5em;
}

/* 2 */
.second_grid{
    align-items: end;
}

.second_grid img{
    width: 15%;
    margin: 20px;
}

.date_ex_txt p:nth-of-type(1){
    font-weight: bold;
    margin: 15px auto;
}

.date_ex_txt p:nth-of-type(2){
    line-height: 1.5em;
}

/* 3 */
.third_grid{
    position: relative;
    margin: 40px;
}

.third_grid img:nth-of-type(1){
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
}

.third_grid img:nth-of-type(2){
    width: 80%;
}

.third_grid_txt{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 4 */
.date_area p:nth-of-type(4){
   text-align: center;
   margin-top: 30px;
}

img.forth_grid{
    width:auto;
    height: 100%;
}

/* 5 */
.fifth_grid{
    width: 70%;
    margin: auto;
}

/* 6 */
.sixth_grid img{
    width: 100%;

}


/* admission */

.conditions{
    width: 70%;
    display: flex;
    justify-content: center;
    margin: 50px auto;
    align-items: start;
}

.conditions p{
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 20px;
    font-weight: bold;
}

.conditions ol{
    margin: 0 50px;
}

.conditions ol li{
    margin: .5em;
}

.conditions img{
    width: 20%;
}

p.admission_img {
    text-align: center;
}

p.admission_img img{
    width: 40%;
}


/* admission cost */
.cost{
    width: 70%;
    display: flex;
    margin: 50px auto;
    justify-content: center;
}

.cost_ex{
    width: 40%;
    margin: 5%;
}

.cost_ex h4{
    font-size: 20px;
    display: inline-block;
}

.cost_ex h4 span{
    background-color: #9966337b;
    border-radius: 7px;
}

.cost_ex h4::after{
    content: "";
    display: block;
    height: 20px;
    width: 100%;
    background-image: url(../img/cost_line.png);
    background-repeat: no-repeat;
    background-size: contain;
    margin: 10px auto 20px;
}

.cost_ex p:nth-of-type(1){
    font-size: 16px;
    line-height: 1.8em;
}

.cost_ex p:nth-of-type(1) span{
    font-weight: bold;
}

.cost_ex p:nth-of-type(2){
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.5em;
}

img.grouphome_philosophy_img{
    width: 40%;
}

/* group home schedule */

.day_schedule{
    margin-top: 100px;
}

.day_schedule_ttl{
    position: relative;
    text-align: center;
}

.day_schedule_ttl img{
    position: absolute;
    top: 0;
    left: 20%;
    width: 200px;
}

.grouphome_container {
    display: grid;
    grid-template-columns: 1fr 3fr; /* 左側:右側 = 1:3 の比率 */
    gap: 20px; /* カラム間のギャップ */
    margin-top: 100px;
  }
  
  .grouphome_column_left, .grouphome_column_right {
    /* background-color: #f0f0f0; */
     /* 背景色 */
    padding: 20px; /* パディング */
    /* 必要に応じて追加のスタイルを定義 */
  }
  
  .grouphome_column_left{
    text-align: center;
  }

  .group_schedule_txt_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* カラムの比率を維持 */
  }
  
  .group_schedule_txt_table td {
    border-bottom: 2px solid var(--color-primary); /* 各行にグリーンの下線 */
    text-align: left;
    padding: 8px;
  }

  .group_schedule_txt_table tbody tr{
    font-size: 20px; /* 文字の基本サイズ */
    line-height: 1.2; /* 文字の行の高さ。これはfont-sizeの1.2倍になります。 */
    height: calc(1.3em + 40px); /* line-heightに基づいて高さを設定し、さらに30pxを追加 */
  }
  
  .group_schedule_txt_col1, .group_schedule_txt_col2 {
    width: 25%; /* 最初の2カラムはそれぞれ全体の25%を占める */
  }
  
  .group_schedule_txt_col3 {
    width: 50%; /* 3番目のカラムは全体の50%を占める */
  }

  
.conditions img#conditions_img{
    width: 35%;
}

/* day service area end*/

/* short stay area */
img.shortstay_philosophy_img{
    width: auto;
}

h3.short_day{
    margin: 20px auto;
}

ul.short_stay_li {
    list-style-type: none;
    line-height: 1.5em;
}

p.short_point{
    font-size: 12px;
}

.short_area{
    margin-top: 50px;
}
/* short stay area end*/


/* building area */
.building_img img{
    padding: 1px;
}
/* building area end */

.map{
    width: 50%;
}

.map_text{
    width: 50%;
}

.map_text h3{
    position: relative;
    font-size: 24px;
    line-height: 24px;
    margin-bottom: 50px;
}

.map_text h3::before{
    content: url(../img/house_illustration.png);
}

.map_text h3 img {
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 60%;
}

.table-container {
    display: table;
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.row {
    display: table-row;
}
.cell {
    display: table-cell;
    padding: 10px;
    border: 5px solid white;
    vertical-align: middle;
}
.label {
    background-color: #A8754A;
    color: white;
    text-align: center;
    font-weight: bold;
    width: 120px; 
    border-radius: 15px;

}
.value {
    background-color: white;
    color: black;
    text-align: left;
    padding-left: 10px;
}

.contact-info {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
}
.contact-info .title {
    font-size: 18px;
    margin-bottom: 10px;
}
.contact-info .phone-number {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}
.contact-info .phone-number .icon {
    vertical-align: middle;
    margin-right: 10px;
}
.contact-info .details {
    font-size: 16px;
    margin-top: 10px;
}

.foot_line {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.foot_line img {
    width: 65%;
    margin: 30px auto;
}

footer{
    margin-top: 100px;
    padding-bottom: 100px;
    background-image: url(../img/footer.png);
    background-position: center;
    background-size: cover;
}


/* recruit  page */

.r-top{
    text-align: center;
    margin-bottom:100px;
}

.r-top img{
    width: 20%;
}

.r-sec{
    max-width: 1080px;
    margin: 0 auto;
}

p.r-top_img{
    width: 100%;
    margin-bottom: 100px;
}

.r-top_img img{
    width: 100%;
}

.rec_left h3{
    font-size: 24px;
    margin: 0 auto 24px;
}

.rec_left p{
    line-height: 1.5rem;
    margin: 0 auto 24px;
}

.recruit_sec{
    display: flex;
}

.rec_left{
    width: 60%;
}

.rec_right{
    width: 40%;
}

.boshu{
    border:1px solid #996633;
    border-radius: 20px;
    position: relative;
    width: 80%;
    height: 200px;
}

.boshu p:nth-child(1){
    position: absolute;
    background-color: #996633;
    color: white;
    padding: 5px;
    top: -10px;
    left: -10px;
    border-radius: 10px;
}

.boshu table{
    margin: 30px;
}

.boshu table tr{
    line-height: 30px;
}

.boshu table td{
  width: 30%;
}

.boshu p:last-child{
    margin: 30px 0 0 30px;
}

.contact{
    background-color: #88b04b;
    border-radius: 10px;
}


.contact_dev{
    display: flex;
    justify-content: space-evenly;
}

.contact h3{
    font-size: 24px;
    padding: 20px;
}

.contact{
    background-color: #88b04b;
    color:white;
    margin: 100px auto;
    border-radius: 20px;
    height: 180px;
}

.contact a{
    color: white;
    font-size: 24px;
    letter-spacing: .2em;
    margin-top: 20px;
}

.contact a img{
    height: 24px;
    padding-right: 10px;
}

.hamburger-icon,
.hamburger-menu
{
    display: none;
}

@media screen and (max-width: 1024px){

.top {
    width: 90%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

p.title {
    margin: 80px;
}

.top nav ul {
    font-size: 20px;
}

.cloud {
    margin-bottom: 0;
}

.top_content{
    width: 90%;
    margin: auto;
}

.empty_room_banner,
.recruit_banner
{
    margin-left: 0;
}

.recruit_banner {
    width: 50%;
}

.philosophy{
    width: 90%;
    margin: 100px auto;
}
.philosophy_txt {
    width: 50%;
}

img.philosophy_img {
    width: 45%;
    height: auto;
    object-fit: contain;
}

.dayservice{
    width: 90%;
    margin: 100px auto;

}

.dayservice img{
    object-fit: contain;
}

img.forth_grid {
    width: auto;
    height: 63%;
}

.sixth_grid img {
    width: 60%;
}

img.buil{
    width: 45%;
}

.building_img {
    width: 45%;
    margin: auto;
}

.building_img img{
    width: 45%;
}

.foot_line img {
    width: 50%;
    margin: 50px auto;
}

.label {
    width: 80px;
}
.foot_line{
    margin-bottom: 50px;
}

.r-top_img img {
    width: 90%;
}

p.r-top_img {
    width: 100%;
    margin-bottom: 100px;
    text-align: center;
}

.recruit_sec {
    display: flex;
    width: 90%;
    margin: auto;
}

.rec_right {
    width: 30%;
}

.rec_right img{
    width: 100%;
    object-fit: contain;
}
.rec_left {
    width: 70%;
}

.contact {
    width: 90%;
}

}

@media screen and (max-width: 450px){

    header p {
        font-size: 10px;
    }

    .top img {
        width: 50%;
    }

    .top nav {
        width: 90%;
        margin: auto;
        display: none;
    }

    .hamburger-menu {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100%;
        background-color: #333;
        color: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .hamburger-menu.open {
        transform: translateX(0);
    }
    
    .hamburger-icon {
        display: block;
        position: fixed;
        top: 50px;
        right: 15px;
        font-size: 30px;
        cursor: pointer;
        z-index: 1000;
    }
    
    .menu-content {
        padding: 60px 20px;
    }
    
    .menu-content ul {
        list-style-type: none;
        padding: 0;
    }
    
    .menu-content ul li {
        margin: 20px 0;
    }
    
    .menu-content ul li a {
        color: white;
        text-decoration: none;
    }

    .cloud {
        width: 90%;
        margin: auto;
    }

    
    .cloud img{
        width: 45%;
    }

    .news {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .recruit_banner {
        width: 100%;
        margin: 0 0 50px 0;
        height: 185px;
    }

    .empty_room_banner {
        width: 100%;
        height: 185px;
    }

    .recruit_banner img {
        width: 50%;
        object-fit: cover;
    }

    .philosophy_txt {
        width: 100%;
    }
    img.philosophy_img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .grid-container {
        display: block;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        width: 100%;
    }

    .dayservice h2 {
        font-size: 24px;
        text-align: center;
        margin-top: 100px;
        margin-bottom: 100px;
    }
    
    .grid_flex {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        flex-direction: column;
        width: 90%;
    }

    .grid-item{
        width: 100%;
    }
    

/* kokokara */
img.forth_grid {
    width: 50%;
    /* height: 63%; */
}

.grid-item {
    /* background-color: #f0f0f0; */
    padding: 0px;
}

.first_grid img {
    width: 35%;
    position: absolute;
    top: 0;
    right: 30px;
    bottom: 0;
    left: auto;
    margin: auto;
}

.sunny{
    width: 50%;
}

.second_grid img {
    width: 35%;
    margin: 20px;
}

.second_grid {
    position: relative;
}

.second_grid img:nth-of-type(1) {
    position: absolute;
    left: 0;
    bottom: 90px;
}

.third_grid img:nth-of-type(2) {
    width: 50%;
}
.third_grid img:nth-of-type(1) {
    position: absolute;
    top: 0;
    left: auto;
    width: 30%;
    right: 30px;
}

.date_area p:nth-of-type(4) img{
    width: 50%;
}

img.forth_grid {
    width: 100%;
    height: auto;
}

.fifth_grid img{
    width: 50%;
    margin: 20px auto ;
}

.date_ex_txt{
    margin: 20px auto;
}

.sixth_grid img {
    width: 100%;
    margin: 50px auto;
}

.first_grid img {
    width: 50%;
    position: absolute;
    top: 80px;
    right: 0px;
    bottom: 0;
    left: auto;
    margin: auto;
}

.sunny2{
    width: 30%;
}

.conditions ol {
    margin:auto;
    margin-left: 2%;
    padding: 10px;
    width: 90%;
    font-size: 15px;
}

.conditions {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 50px auto;
    align-items: start;
}

.conditions img {
    display: none;
}

.conditions p {
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 20px;
    font-weight: bold;
    width: 8%;
}

p.admission_img img {
    width: 80%;
}

.cost {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 50px auto;
    justify-content: center;
}

.cost_ex {
    width: 100%;
    margin: 20px auto;
}

.cost_ex p:nth-of-type(2) {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.5em;
}
.cost_ex h4::after {
    margin: 10px auto 0px;
}

.day_schedule_ttl img {
    position: absolute;
    top: -50px;
    left: 5%;
    width: 120px;
}


.grouphome_column_left img{
    width: 100%;
    height: auto;
}

.grouphome_column_right {
    width: 100%;
}


.group_schedule_txt_table tbody tr {
    font-size: 12px;
    line-height: 1.2;
    height: calc(1.3em + 40px);
}

.grouphome_column_left, .grouphome_column_right {
    /* background-color: #f0f0f0; */
    padding: 0px;
}

.group_schedule_txt_table td {
    border-bottom: 2px solid var(--color-primary);
    text-align: left;
    padding: 5px;
}

.grouphome_container{
    width: 100%;
}

.grouphome_column_left {
    display: none;
}

.grouphome_container {
    display: flex;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-top: 100px;
}

.first_grid img {
    width: 50%;
    position: relative;
    top: 0px;
    right: 0px;
    bottom: 0;
    left: auto;
    margin: auto;
}
img.buil {
    width: 95%;
}
.philosophy_txt {
    width: 100%;
    margin: 50px auto;
}
.map {
    width: 100%;
    text-align: center;

}

body{
    overflow-x: hidden;
}

.r-top img {
    width: 35%;
}

.recruit_sec {
    display: flex;
    flex-direction: column-reverse;
    width: 90%;
    margin: auto;
}

.rec_right {
    margin-left: auto;
    width: 50%;
    margin-right: 0;
}

.rec_left {
    width: 100%;
}
.boshu {
    border: 1px solid #996633;
    border-radius: 20px;
    position: relative;
    width: 100%;
    height: 200px;
}
.contact h3 {
    font-size: 24px;
    padding: 20px;
    text-align: center;
}
.boshu p:last-child {
    margin: 30px;
}
.contact_dev {
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
}


}

.fade {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1.5s, transform 1s;
}.fade.active {
	opacity: 1;
	transform: translateY(0px);
}
html { scroll-behavior: smooth;}

.fixed-image1 {
    position: fixed;
    right: 0;
    top: 20%;
    transform: translateY(-50%);
    width: 50px; 
    height: auto;
    z-index: 998; 
}

.fixed-image2 {
    position: fixed;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    width: 50px; 
    height: auto;
    z-index: 998; 
}