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

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --border-color: #ccc;
    --white-color: #fff;
}
body{
font: 14px/2.0 "メイリオ","Meiryo",arial,"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Osaka,"ＭＳ Ｐゴシック","MS PGothic",Sans-Serif;
color:#333;
-webkit-text-size-adjust: none;
background:#F8F7F6 url(../img/top_b_01.png) repeat-x;
}
img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: var(--link-color);
    text-decoration-line: none;
}
a:hover { 
    color: var(--linkhover-color);
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid var(--base-color);
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}

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

.head h1 { 
    padding: 0;
}
.snsbox {
	margin-left: auto;
	font-size: 1.5rem;
	padding: 0.5rem 0 0 0;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
	margin-bottom: 0.5rem;
}
nav li {
    display: block;
    flex: 0 0 20%;
}
nav li a {
    text-decoration: none;
    text-align: center;
}
nav a:hover {
    text-decoration: underline;
}
nav a {
    padding: 1rem;
}

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

#navi {
    display: block !important;
}
.mainimg img {
    width: 100vw;
    text-align: center ;
}
}

@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: 28px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
    background: #D0E2FA;
}

nav li {
	padding-top: 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 0;
}
.mainimg img {
    width: 100vw;
    text-align: center ;
}
/* スマホ時は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 {
    max-width: 1160px;
    text-align: center ;
}

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

/*キャッチタイトル
-------------------------------------*/
h2.catch {
	text-align: center;
	color: var(--link-color);
	font-size: 2.3rem;
	margin-bottom: 3rem;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--white-color);
    padding: 3rem 0;
}
footer h5 {
    border-bottom: 1px solid var(--border-color);
    font-size: 1.7rem;
}

/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--white-color);
}
.copyright a {
    color: var(--base-color);
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}
#pagetop a {
    display: block;
    background: var(--link-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}
#pagetop a:hover {
    background: var(--linkhover-color:);
}
/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}
    
/*枠
-----------------------------------*/   
.box27 {
    position: relative;
    margin: 2em 0;
    padding: 0.5em 1em;
    border: solid 2px #62c1ce;
    background: #fff;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -37px;
    left: -2px;
    padding: 0 9px;
    height: 35px;
    line-height: 37px;
    font-size: 20px;
    background: #62c1ce;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
}
.box27 p {
    margin: 0; 
    padding: 0;
}

.text01 {
    font-size: 1.4rem;
    color: #02A44F;
    font-weight: bold;
}
.text02 {
    font-size: 1.4rem;
    color: #3A81FA;
    font-weight: bold;
}
/*グリッド4列
-----------------------------------*/  
.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 2.0rem;
    position: relative;
}
.grid-container {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 1行に4つの等幅の列を作成 */
}

.grid-item {
  padding: 5px;
  border: 2px solid #62c1ce;
  background: #D0E2FA;
  text-align: center;
    margin-left: 2%;
}
.grid-item:first-child {
  margin-left: 0;
}
@media (max-width: 768px) {
    .grid-item {
  margin-top: 10px;
  margin-left: 0;
}
  .grid-container {
    margin: 10px 0;
    grid-template-columns: repeat(1, 1fr);
  }
}
/*画像左寄せ
-----------------------------------*/ 
.container2 {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 2.0rem;
}
.left-item {
  display: flex; /* 子要素を横並びにします */
  align-items: center; /* 画像とテキストを縦方向に中央揃えにします */
  max-width: 1200px;
  border: 2px solid #62c1ce;
  background: #D0E2FA;
}
.image-wrapper {
  /* 画像の幅を指定 */
  width: 160px;
  height: 160px;
  margin-right: 10px; /* 画像とテキストの間隔 */
}

.text-wrapper {
  flex: 1; /* 残りの幅をテキストが使用します */
}

/* 画像サイズを親要素に合わせて調整する場合 */
.image-wrapper img {
  max-width: 100%;
  height: auto;
}

/*画像枠
-----------------------------------*/ 
img.topics{
    border: 1px solid #666;
}