@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #000;
    --linkhover-color: #999;
    --back-color: #f7f7f7;
    --border-color: #ccc;
    --white-color: #fff;
}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:inline;/*改行されない*/
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
a img {
    margin-bottom: 1rem;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}

/*ヘッダー
-------------------------------------*/
.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
    align-items: flex-end;
}

.head h1 { 
    padding: 1rem 0;
}
.telbox {
	margin-left: auto;
	font-size: 3.0rem;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin-bottom: 1rem;
}
nav li {
    display: block;
}
nav li a {
    text-decoration: none;
    text-align: center;
}
nav a {
    padding: 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.nav-background {
  background-color: rgba(144, 238, 144, 0.3); /* ヘッダー背景色 */
  width: 100%;
}

@media screen and (min-width: 769px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head {
	flex-direction: column;
    text-align: left;
    align-items: normal;/*PC打消し*/
}
.telbox {
	margin-left: 0;
	text-align: center;
	font-size: 2rem;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }
    
nav ul {
	flex-direction: column;
}

nav li {
	padding-top: 0;
    border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
nav a {
    font-size: 1.5rem;
    font-weight: bold;
  }
  
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/* top画像
============================================== */
.slider {
  position:relative;
  z-index: 1;/*↑z-indexの値をh1のz-indexの値よりも小さくして背景に回す*/
  margin-top: 0!important;
}
/*　背景画像設定　*/

.slider-item01 {
    background:url(../img/gaikan.JPG);
    background-position: 70% 30%!important;
}

@media screen and (max-width: 520px) {
.slider-item01 {
    background:url(../img/gaikan.JPG);
    background-position: 20% 50%!important;
}
}

.slider-item {
    width: 100%;/*各スライダー全体の横幅を画面の高さいっぱい（100%）にする*/
    height:100vh;/*各スライダー全体の縦幅を画面の高さ*/
    background-repeat: no-repeat;/*背景画像をリピートしない*/
    background-position: center;/*背景画像の位置を中央に*/
    background-size: cover;/*背景画像が.slider-item全体を覆い表示*/
}

/* top画像文字
============================================== */
.wrapper  .top {
    z-index: 2;
    position: absolute; /*下寄せ用*/
    bottom: 1rem;
    left: 70%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

.wrapper .card {
   background-color: transparent; /*透過*/
   color: white; /*白文字*/
   text-shadow: black 1px 1px 10px, black -1px 1px 10px,
                black 1px -1px 10px, black -1px -1px 10px; /*黒ぼかし重ね*/
   border: none; /*枠線消す*/
}

@media screen and (max-width: 520px) {
.wrapper  .top {
 left: 6rem;
 bottom: 2rem;
 transform: none;
 text-align: right;
}
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 5rem 0;
}

/*googlemap 非表示
-------------------------------------*/
.googlemap {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.googlemap iframe {
    width: 100%;
    height: calc(100% + 300px);
    margin-top: -150px;
}

/*お知らせ枠線
-------------------------------------*/
.border {
 border: 2px #000 solid;
}


/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: rgba(144,238,144,0.3); /*背景色指定*/
    
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background-color: var(--base-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background-color: var(--link-color);
}

/*右コンテンツ囲い
-------------------------------------*/
.box7{
    padding: 0.5em 0.5em;
    color: #474747;
    background: whitesmoke;/*背景色*/
    border-left: double 7px #90EE90;/*左線*/
    border-right: double 7px #90EE90;/*右線*/
    max-block-size: fit-content;/*要素がなくなったら枠表示しない*/
}

@media screen and (max-width: 520px) {
 .box7{
  margin: 1.5rem 0 1.5rem 0;/*隙間をあける*/
  }
}

.facility-section {
  padding: 40px 20px;
  background-color: #f8f8f8;
}
.facility-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  border-bottom: 2px solid #ccc;
  display: inline-block;
  padding-bottom: 10px;
}
.facility-block {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: center;
}
.facility-photo {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 3; /* ここで縦横比を統一（例：横4：縦3） */
  object-fit: cover; /* はみ出た部分をカットし、枠内にフィット */
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
}

.facility-photo-tate {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5; /* ここで縦横比を統一（例：横4：縦3） */
  object-fit: cover; /* はみ出た部分をカットし、枠内にフィット */
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
}

.facility-photos-column {
  display: flex;
  gap: 10px; /* 画像の間隔調整 */
  flex-direction: column; /* 必要に応じて折り返す */
}

.facility-photos-row img {
  flex: 1 1 45%; /* 幅を自動調整しつつ2枚並ぶように */
  max-width: 100%;
  height: auto;
}

.facility-text {
  flex: 1;
  min-width: 240px;
}
.facility-text h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
}
.facility-text p {
  font-size: 1em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .facility-block {
    flex-direction: column;
    text-align: center;
  }
  .facility-photo {
    margin: 0 0 20px 0;
  }
}

/*お知らせ埋め込み
-------------------------------------*/
.iframe-wrapper {
  width: 100%;
  height: 100rem; /* PC時の高さ */
  overflow: hidden;
  position: relative;
  border: 1px solid #ccc;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  transform-origin: top left;
}
/* モバイル対応 */
@media (max-width: 768px) {
  .iframe-wrapper {
    height: 70rem; /* 高さは好みに応じて調整 */
  }

  .iframe-wrapper iframe {
    transform: scale(0.75); /* ページ全体を75%縮小 */
    width: 133.33%;  /* scale(0.75)に合わせて拡大し直す */
    height: 133.33%;
  }
}
