@charset "utf-8";
/* CSS Document */

/*sm　共通*/
#top_introduction,
#top_news{
padding: 50px 0;
}

#top_kyujin{
padding: 50px 0 100px;
}

#top_news h3,
#top_kyujin h3,
#top_menu h3{
position: absolute;
z-index: 1;
padding: 15px 10px;
box-shadow: 2px 2px 2px 0px rgba(30,30,30,0.2);
background-color: rgba(255,255,255,1.0);
font-size: 2.0rem;
}

#top_news h3,
#top_kyujin h3{
top: 0;
left: 5%;
}

#top_menu h3{
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
}


/*md　共通*/
@media screen and (min-width: 768px) {
#top_introduction,
#top_news{
padding: 100px 0;
}

#top_news h3,
#top_kyujin h3,
#top_menu h3{
padding: 20px 15px;
font-size: 2.4rem;
}

#top_news h3,
#top_kyujin h3{
left: 7%;
}
}


/*lg　共通*/
@media screen and (min-width: 1024px) {
#top_kyujin{
padding: 100px 0 150px;
}

#top_news h3,
#top_kyujin h3{
left: 10%;
}
}


/*sm　top_hero*/
#top_hero{
position: relative;
}

#top_hero .img_box {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
}

#top_hero .img_box > div {
position: absolute;
inset: 0;
background-position: center center;
background-size: cover;
background-repeat: no-repeat;
opacity: 0;
/* 1周16秒（4枚×4秒） */
animation-name: slideFadeCycle;
animation-duration: 16s;
animation-iteration-count: infinite;
animation-timing-function: linear;
will-change: opacity, transform;
}

/* 1枚目（0〜4秒） */
#top_hero .img_box > div:nth-of-type(1) {
background-image: url("../img/img_top01-osaka.jpg");
animation-delay: 0s;
}

/* 2枚目（4〜8秒） */
#top_hero .img_box > div:nth-of-type(2) {
background-image: url("../img/img_top02-shiga.jpg");
animation-delay: 4s;
}

/* 3枚目（8〜12秒） */
#top_hero .img_box > div:nth-of-type(3) {
background-image: url("../img/img_top03-kyoto.jpg");
animation-delay: 8s;
}

/* 4枚目（12〜16秒） */
#top_hero .img_box > div:nth-of-type(4) {
background-image: url("../img/img_top04-nara.jpg");
animation-delay: 12s;
}

@keyframes slideFadeCycle {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; transform: scale(1.03); }
  25%  { opacity: 1; transform: scale(1.06); }
  30%  { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.20); }
}

#top_hero img{
position: absolute;
z-index: 2;
}

.eachTextAnime span{opacity: 0;}
.eachTextAnime.appeartext span{ animation:text_anime_on 1s ease-out forwards; }
@keyframes text_anime_on {
  0% {opacity:0;}
  100% {opacity:1;}
}

#top_hero img{
bottom: 20px;
left: 5%;
width: 50%;
}


/*md　hero*/
@media screen and (min-width: 768px) {
#top_hero .img_box{
height: 500px;
}

#top_hero .img_box > div{
height: 500px;
}

#top_hero img{
bottom: 30px;
width: 50%;
}
}


/*lg　hero*/
@media screen and (min-width: 1024px) {
#top_hero .img_box{
height: 640px;
}

#top_hero .img_box > div{
height: 640px;
}

#top_hero img{
bottom: 40px;
width: 40%;
max-width: 500px;
}
}


/* sm top_introduction */
#top_introduction{
position: relative;
background: url("../img/bg_copy-sm.jpg") center center/cover no-repeat;
}

#top_introduction h2{
margin-bottom: 30px;
font-size: 2.0rem;
}


/* md introduction */
@media screen and (min-width: 768px) {
#top_introduction{
position: relative;
background: url("../img/bg_copy-mdlg.jpg") center center/cover no-repeat;
text-align: center;
}

#top_introduction h2{
margin-bottom: 50px;
font-size: 2.4rem;
}
}


/* sm top_news */
#top_news{
position: relative;
}

#top_news ul{
margin-left: 20%;
width: 80%;
}

#top_news .news_date-category{
display: flex;
margin-bottom: 5px;
}

#top_news .news_date-category span{
margin-left: 10px;
padding: 5px 10px 3px;
border-radius: 20px;
font-size: 1.2rem;
}

#top_news .news_title{
margin-bottom: 30px;
line-height: 1.5;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 任意の行数を指定 */
}

#top_news li a:link,
#top_news li a:visited {
color: rgba(34,51,68,1.0);
}

#top_news .link_list{
padding-right: 30px;
text-align: right;
}


/* md top_news */
@media screen and (min-width:768px) {
#top_news ul{
margin-left: 15%;
width: 85%;
}
}


/* lg top_news */
@media screen and (min-width: 1024px) {
#top_news ul{
margin-left: 10%;
width: 90%;
}

#top_news ul li a{
display: flex;
flex-wrap: nowrap;
align-items: flex-start; /* 日付とタイトルの上端を揃える */
justify-content: space-between;
margin-bottom: 30px;
}

#top_news .news_date-category{
width: 170px;
margin-bottom: 0;
}

#top_news .news_title{
width: calc(100% - 170px);
margin-bottom: 0;
}
}


/* sm top_kyujin */
#top_kyujin{
position: relative;
}

#top_kyujin .slick-track{
display: flex;
align-items: stretch;
}

#top_kyujin .slick-slide{
height: auto !important;
box-sizing: border-box;
}

#top_kyujin #slider li{
margin: 0 auto;
max-width: 280px;
border-bottom: solid 2px rgba(241,201,76,1.0);
border-right: solid 2px rgba(241,201,76,1.0);
font-size: 1.4rem;
line-height: 1.5;
}

#top_kyujin #slider li a{
display: block;
}

#top_kyujin #slider li a .kyujin_frame{
padding: 20px 20px 10px 20px;
}

#top_kyujin h4{
margin: 0 5% 30px 20%;
font-size: 2.0rem;
font-weight: bold;
line-height: 1.5;
}

#top_kyujin .koyo_ul{
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: flex-start;
}

#top_kyujin .koyo_ul li{
margin: 0 10px 0 0 !important;
background: rgba(241,201,76,1.0);
color: rgba(255,255,255,1.0);
padding: 5px 15px 2px;
border-radius: 20px;
}

#top_kyujin .data{
margin-top: 5px;
}

#top_kyujin h5{
margin: 15px 0 10px;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
font-weight: bold;
}

#top_kyujin dl dd{
margin-bottom: 10px;
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; /* 任意の行数を指定 */
}

#top_kyujin dt{
font-weight: bold;
}

#top_kyujin .link_list{
display: inline-block;
position: absolute;
right: 5%;
bottom: 50px;
border-radius: 20px;
border: 1px solid rgba(255,255,255,1.0);
box-sizing: border-box;
}

#top_kyujin .link_list a{
padding: 5px 30px 7px 12px;
}

/* md top_kyujin */
@media screen and (min-width:360px) {
#top_kyujin #slider li{
max-width: 300px;
}
}

/* md top_kyujin */
@media screen and (min-width:375px) {
#top_kyujin #slider li{
max-width: 315px;
}
}

/* md top_kyujin */
@media screen and (min-width:390px) {
#top_kyujin #slider li{
max-width: 325px;
}
}

/* md top_kyujin */
@media screen and (min-width:411px) {
#top_kyujin #slider li{
max-width: 350px;
}
}

/* md top_kyujin */
@media screen and (min-width:768px) {
#top_kyujin #slider li {
max-width: 320px;
margin-right: 20px;
}
  
#top_kyujin ul li{
font-size: 1.6rem;/*文字サイズ戻す*/
}

#top_kyujin .link_list{
right: 10%;
bottom: 50px;
}
}


/* lg top_kyujin */
@media screen and (min-width: 1024px) {
#top_kyujin h4{
margin: 0 0 30px 20%;
font-size: 3.2rem;
}

#top_kyujin #slider li {
transition: 0.3s;
}
  
#top_kyujin #slider li:hover{
transform: scale(0.99);
}
}


/* sm top_menu */
#top_menu li div{
position: relative;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}

#top_menu .top_facility div{
background-image: url("../img/bg_facility.jpg");
}

#top_menu .top_company div{
background-image: url("../img/bg_company.jpg");
}

#top_menu .top_facility a,
#top_menu .top_company a{
display: block;
padding: 130px 0;
}

#top_menu .link_list{
position: absolute;
right: 10%;
bottom: 20px;
}


/* md top_menu */
@media screen and (min-width: 768px) {
#top_menu ul{
display: flex;
}

#top_menu ul li{
width: 50%;
}

#top_menu .top_facility a,
#top_menu .top_company a{
padding: 150px 0;
}

#top_menu .link_list{
right: 7%;
}
}


/* lg top_menu */
@media screen and (min-width: 1024px) {
/* オーバーレイ（初期は透明） */
#top_menu li div:after{
content: "";
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0);
transition: 0.3s;
z-index: 0;
}

#top_menu li div:hover:after{ 
background: rgba(255, 255, 255, 0.5);
}

#top_menu .top_facility a,
#top_menu .top_company a{
position: relative;
z-index: 1;
}
}