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

img{
	max-width:100%;
	height: auto;/*高さ自動*/
}
a{
    display:block;
    color: #333;
    text-decoration-line: none;
}
a:hover{
    color: #ff0000;
    text-decoration: underline;
}
a img:hover {
	opacity: 0.9;
}
.blueback{
	background-color: #0000ff;
	color: #fff;
	padding: 1rem;
}
.underline{
	border-bottom: 3px solid #0000ff;
	padding-bottom: 0.5rem;
}
.center{
	text-align: center;
}

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

.head h1{
	 
    padding: 1rem 0;
}
.telbox{
	margin-left: auto;
	font-size: 2.4rem;
	padding: 1rem 0 0 0;
}
.menu{
	background-color: #0000ff;
}
nav ul{
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin-bottom: 0;
}
nav li{
    flex: 1 0 auto;
	margin-bottom: 0;
}
nav li a{
    text-decoration: none;
    text-align: center;
	color: #fff;
}
nav a:hover{
    background-color: #00aaff;    
	color: #fff;
    text-decoration-line: none;
}
nav a{
    padding: 2rem 1rem;
	display: block;
}

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

#navi{
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head{
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox{
	margin-left: 0;
	text-align: center;
}
.head #open,#close{
    position: absolute;
    top: 20px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}

nav li{
	padding-top: 0;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0;
}
/* スマホ時は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;
}
}




/*メイン画像
-------------------------------------*/
.mainimg img {
	width: 100vw;
}

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

/*新着情報
-------------------------------------*/
.news h2{
    background-color: #0000ff;
	color: #fff;
	padding: 1rem;
}
.news li{
    list-style-type: none;
	border-bottom: 1px solid #ccc;
	padding: 0.5rem 0;
}

/*フッター
-------------------------------------*/
footer{
    background-color: #0000ff;
    padding: 5rem 0;
	color: #fff;
}
footer h5{
    border-bottom: 2px solid #fff;
}

/*コピーライト
-------------------------------------*/
.copyright{
    text-align: center;
    padding: 1rem 0;
    background-color: #fff;
}
.copyright a{
    color: #000;
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop{
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a{
    display: block;
    background: #0000ff;
    color: #fff;
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover{
    background: #00aaff;
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb{
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li{
    list-style-type: none;
}
.breadcrumb li a{
    display: inline-block;
    color: #959fa5;
}



/* ==========================================
   ドロップダウンメニューの追加スタイル
========================================== */

/* 親要素（li）の基準位置設定 */
#navi ul li.dropdown{
  position: relative;
}

/* 矢印マークのスタイリング */
#navi ul li a .arrow{
  font-size: 0.7em;
  margin-left: 3px;
  display: inline-block;
  vertical-align: middle;
}

/* 子メニュー（ul）の初期状態（非表示・位置固定） */
#navi ul li .dropdown-menu{
  display: none;
  position: absolute;
  top: 100%; /* 親要素の真下に配置 */
  left: 0;
  width: 250px; /* 子メニューの横幅 */
  background: #0000ff; /* 背景色（元のメニュー色に合わせて調整してください） */
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* 子メニューの中の要素（li, a）の調整 */
#navi ul li .dropdown-menu li{
  width: 100%;
  border-bottom: 1px solid #ffffff; /* 項目間の区切り線 */
}

#navi ul li .dropdown-menu li:last-child{
  border-bottom: none;
}

#navi ul li .dropdown-menu li a{
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left; /* 左寄せに変更 */
  display: block;
}

/* 子メニューホバー時の背景色 */
#navi ul li .dropdown-menu li a:hover{
  background: #48b8ff; 
}

/* 【重要】マウスホバー時に子メニューを表示 */
#navi ul li.dropdown:hover .dropdown-menu{
  display: block;
}