/* 初期設定
--------------------------------------------------*/
body {
    margin: 0;
    padding: 0;
    color: #333;
    background: #f4f7f4;
}
p {
 line-height: 1.7;
}
a:link {
    color:#36c;
}
a:visited {
    color: #609;
}
a:hover {
    color: #666;
}
img {
    border: 0;
}
section, article, aside, nav, header, main, footer {
    display: block;
}
/* スライドショー
--------------------------------------------------*/
.right-align {
  text-align: right;
  margin-top: -50px; /* ロゴと同じ高さに揃えたい場合、調整 */
}

.region img {
  max-width: 100%;
  height: auto;
}

.slider {
	width: 100vw;
	height: 50vh;
	overflow: hidden;
	position: relative;
	max-width: 100%;
}

.slider div {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	z-index: 10;
	opacity: 0;
	animation-name: slide-fade;
	animation-duration: 15s;
	animation-iteration-count: infinite;
}

@keyframes slide-fade {
	0%{
		opacity: 0;
	}
	20%{
		opacity: 1;
	}
	80%{
		opacity: 0;
	}
	100%{
		opacity: 0;
		z-index: 0;
	}
}
.slider div:first-of-type{
	background-image: url(kininaru.jpg);
}
.slider div:nth-of-type(2){
	background-image: url(office.jpg);
	animation-delay: 5s;
}
.slider div:last-of-type{
    background-image: url(laptop.jpg);
    animation-delay: 10s;
}

.overlay-img {
  position: absolute;
  bottom: 100px;   /* 下からの距離（調整可能） */
  left: 40px;    /* 右からの距離（調整可能） */
  width: 800px;   /* サイズ調整 */
  z-index: 30;    /* スライドより前面にする */
  pointer-events: none; /* クリック操作を通過させる */
}



/* モバイル用スタイル 
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .slider {
        width: 50vw;
        height: 40vh;
        overflow: hidden;
        position: relative;
        max-width: 50%;
 }
.slider div {
        position: absolute;
        top: 0;
        left: 0;
        width: 30%;
        height: 30%;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: 10;
        opacity: 0;
        animation-name: slide-fade;
        animation-duration: 15s;
        animation-iteration-count: infinite;
}

@keyframes slide-fade {
        0%{
                opacity: 0;
        }
        20%{
                opacity: 1;
        }
        80%{
                opacity: 0;
        }
        100%{
                opacity: 0;
                z-index: 0;
        }
}
.slider div:first-of-type{
        background-image: url(m.sora_mugi.png);
}
.slider div:nth-of-type(2){
        background-image: url(m.kodomotati.png);
        animation-delay: 5s;
}
.slider div:last-of-type{
        background-image: url(m.soudan.png);
        animation-delay: 10s;
}

/* ページの枠組み
--------------------------------------------------*/
#page {
    margin: 0 auto;
    width: 1000px;
}
main section {
    width: 470px;
}
section:first-child {
    float: left;
}
section:last-child {
    float: right;
}



/* ヘッダー
--------------------------------------------------*/
h1 {
    float: left;
    margin: 10px 0;
}
header > ul li {
    display: block;
    float: right;
    margin: 30px 0 0 20px;
    padding-left: 10px;
    background: url(marker-blue.png) no-repeat left;
    font-size: small;
}



/* ナビゲーション
--------------------------------------------------*/
nav {
    clear: both;
    margin-bottom: 8px;
}
nav ul, nav li {
    margin: 0;
    padding: 0;
}
nav li, nav a {
    display: block;
}
nav ul {
    border: 1px solid #ccc;
    overflow: hidden;
}
nav li {
    float: left;
    width: 132px;
    border-right: 1px solid #ccc;
}
nav li:nth-child(6) {
    width: 133px;
    border-right: none;
}
nav a {
    padding: 14px 0;
    border-left: 1px solid #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.0;
    font-size: small;
    font-weight: bold;
}
nav a:link, nav a:visited {
    color: #36c;
    background: url(images/li-bg.png) repeat-x bottom;
}
nav a:hover {
    color: #666;
    background: url(images/li-bg-hover.png) repeat-x bottom;
}

/* メインコンテンツ
--------------------------------------------------*/
h2 {
 font-size: medium;
}
p,li {
 font-size: small;
}
main ul {
 list-style-image: url(marker-red.png);
}



/* フッター
--------------------------------------------------*/
footer {
    clear: both;
    border-top: 1px solid #ccc;
    text-align: center ;
}



/* Difyチャットウィンドウのレスポンシブ対応
--------------------------------------------------*/
#dify-chatbot-bubble-window {
  width: 24rem !important;
  height: 40rem !important;
}

/*全画面表示にしたい場合のモバイル用*/
@media screen and (max-width: 768px) {
  #dify-chatbot-bubble-window {
    width: 100% !important;
    height: 100% !important;
    right: 0 !important;
    bottom: 0 !important;
    border-radius: 0 !important;
  }
}





