body {
    background-image: url("../imgs/bgimg/031a.jpg"); /* 相対パスを修正 */
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダー */
header {
    background-color: #f8f8f8;
    padding: 20px 0;
}

header .container {
    max-width: 1200px;
}

header .row {
    align-items: center;
}

header .navbar {
    justify-content: flex-end;
}

header .navbar-nav {
    display: flex;
}

header .navbar-nav .nav-item {
    margin-left: 20px;
}

header .navbar-nav .nav-link {
    color: #333;
    transition: color 0.3s ease;
}

header .navbar-nav .nav-link:hover {
    color: #007bff;
}

header img {
    max-width: 100%; /* 横幅100%に設定 */
    height: auto; /* 高さを自動調整 */
    transition: transform 0.3s ease;
}

header img:hover {
    transform: scale(1.1);
}

header p {
    margin-top: 10px;
    text-align: center;
}

.header-line {
    border-top: 3px solid #ccc;
    margin: 20px 0;
}

/* メインメニュー */
.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-menu ul {
    display: flex;
    padding: 10px;
    background-color: #f0f0f0;
    justify-content: flex-end;
    border-bottom: 2px solid #ccc;
}

.main-menu li {
    margin-left: 20px;
    border-right: 1px solid #ccc;
    padding-right: 20px;
}

.main-menu li:last-child {
    border-right: none;
}

.main-menu a {
    color: #333;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-menu a:hover {
    background-color: #ddd;
    color: #007bff;
}

/* サブメニュー */
.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    position: relative;
    top: -20px;
}

.sub-menu li {
    margin-left: 20px;
}

.sub-menu a {
    color: #fff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-menu a:hover {
    background-color: rgba(0, 0, 0, 0.7);
    color: #007bff;
}

/* メインコンテンツ */
main {
    padding: 20px;
    flex: 1;
}

section {
    padding: 50px 0;
    text-align: center;
}

.container {
    max-width: 960px;
}

.section-table {
    width: 65%;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.6);
}

.section-table td {
    padding: 30px;
}

.section-line {
    border-top: 2px solid #fff;
    width: 65%;
    margin: 20px auto;
}

.section-table p {
    font-weight: normal;
}



.target-cell {
  /* background-color: #06C; 背景色をライトグレーに設定 */
  color: #FFFFFF;
  font-size: 24px;
  padding: 5px 10px 5px 25px;
  text-align:left;
}



/* フッター */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* ロゴアニメーション */
.logo-animation {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo-animation:hover {
    transform: scale(1.1);
}

/*賛助会員 start*/
.membership-title,
.membership-download {
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.membership-title {
  font-weight: bold;
  background-color: transparent; /* 背景色を透明にする */
  box-shadow: none; /* 影を削除する */
  border-radius: 0; /* 角丸をなくす */
  padding: 0; /* パディングをなくす */
}

.membership-download {
  background-color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* アニメーションを追加 */
}

.membership-download:hover {
  transform: translateY(-5px); /* ホバー時に少し上に移動 */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* ホバー時に影を濃くする */
}
/*賛助会員 end*/

/*contact-info start*/
.contact-info {
  text-align: left;
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.8; /* 行間を広げる */
  letter-spacing: 0.1em; /* 字間を広げる */
}

.contact-info a {
  color: #007bff; /* リンクの色 */
  text-decoration: none; /* 下線をなくす */
}
/*contact-info end*/



/* Media Queries */
@media (max-width: 767px) { /* 767px以下の場合 */
    .container {
        max-width: 100%;
    }

    .section-table {
        width: 100%;
    }

    /* メニューを横並びにする */
    .main-menu { /* 追加 */
        padding: 8px 0; /* 上下のパディングを小さくする */
    }

.main-menu ul {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 350px; /* 例：500px に設定 */
}

    .main-menu li {
        margin: 0 5px;
        border-right: none;
        padding-right: 0;
		width: 20%; 
    }

    .main-menu a {
        font-size: 13px;
    }
	
	.main-menu li a {
        padding: 8px 16px; /* 例：上下8px、左右16pxに設定 */
    }

    .sub-menu {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
       /* position: relative;*/
        /*top: 20px;*/
		margin-top: 20px; /* 追加 */
    }
	
	    .sub-menu ul {
        display: flex; /* Flexboxレイアウトを適用 */
        flex-wrap: wrap; /* 必要に応じて改行を許可 */
        justify-content: center; /* 要素を中央寄せにする */
        gap: 10px; /* 要素間の間隔を10pxに設定 */
    }

    .sub-menu li {
        margin: 0 2px;
    }

    .main-menu li a i { /* 追加 */
       display: none;  /* display: none; */
    }
	
	.sub-menu a {
		padding: 0 5px;
		font-size: 12px;
    }
	
	iframe {
    	width: 100%; /* 幅を100%に設定 */
    }

/*携帯用 賛助会員 start*/
  .membership-title,
  .membership-download {
    padding: 15px;
    margin: 15px auto;
  }
/*携帯用 賛助会員 end*/

/*携帯用 contact-info start*/
  .contact-info {
    padding: 15px;
    margin: 15px auto;
    font-size: 0.9em; /* フォントサイズを小さくする */
  }
/*携帯用 contact-info end*/

}

/* 768px以上の場合 */
@media (min-width: 768px) {
    .main-menu ul {
        justify-content: flex-end; /* PCでは右寄せ */
    }
}

/* About ページ用スタイル */
.contact-title {
    text-align: left;
    font-weight: bold;
    margin-left: 50px;
}

/* tableのスタイル */
.section-table {
    display: grid; /* gridレイアウトを使用 */
    grid-template-columns: 1fr; /* 1列 */
}

.section-table tr {
    display: contents; /* tr要素をgridアイテムにしない */
}

.section-table td:first-child {
    background-color: navy; /* 背景色を紺色に */
    color: white; /* 文字色を白に */
    padding: 10px; /* パディングを追加 */
    text-align: left; /* 文字を左寄せに */
    font-weight: bold; /* 文字を太字に */
    font-size: 1.2em; /* 文字サイズを少し大きく */
    padding-left: 20px; /* 左側に余白を追加 */
}

.section-table td:not(:first-child) {
    padding: 20px; /* 他のセルにパディングを追加 */
}