/*サイト警告文=========================================*/
#age-warning {
  position: fixed;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
 
#age-warning.hidden {
  display: none;
}
 
#age-check-overlay {
  font-size: 18px;
  position: fixed;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

#age-check-overlay p {
  color: #ffffff;
  max-width: 500px;
  text-align: center;
}

#age-check-overlay h1 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 20px;
}

#age-check-overlay button {
  margin-top: 20px;
  padding: 12px 24px;
  font-size: 16px;
  background-color: #fff;
  color: #000;
  border: none;
  cursor: pointer;
}

#age-check-overlay:not(.active) {
  display: none;
} 
 
.button {
  margin-top: 40px;
}
 
.button a {
  font-size: 16px;
  display: inline-block;
  padding: 12px 24px;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

 /*上部に戻すボタン=========================================*/
#backToTop {
  font-size: 18px;
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-size: 18px;
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
 
#backToTop:hover {
  background-color: #222;
}

 /* フッター========================================= */
footer {
  font-size: 14px;
  margin-top: 80px;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #888;
  border-top: 1px solid #ccc;
}

.logo {
  height: 50px;
  display: block;
}

 /* ヘッダー========================================= */
 .nav {
  display: flex;
  align-items: center;
}
 
/* ヘッダーリンク文字 */
nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-size: 16px;
}

 /* 固定========================================= */

 body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #111;
  margin: 0;
  padding: 0;
}
 
header {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
 
 .content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 20px;
  margin: 0 auto;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.main {
  flex: 1;
  padding: 0 20px;
  text-align: center;
  margin: 0 auto;
}
 
 .main h1 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
 }
 
 .main h3 {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 8px;
 }
 
 .main p {
  margin-bottom: 16px;
  line-height: 1.6;
 }

 ul.event-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: left;
}

/* 本文コンテンツ */
body.case-page .article {
  text-align: left;
}

.container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
 
h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

 /* 事件名タイトル */
.main-jikenmei{
  text-align: left;
  border-bottom:1px solid #ddd;
  padding-bottom:6px;
  margin-bottom:14px;
}
 
p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* 本文項目見出し */
.case-midasi{
  font-size: 19px;
  text-align: left;
  line-height: 1.9;
  border-bottom:1px solid #ddd;
  padding-bottom:6px;
  margin-bottom:14px;
}

/* 本文テキスト */
.case-text{
  text-align: left;
  line-height: 1.9;
}

/* 本文内リンク、左寄せ */
.left{
text-align:left;
}

/* 本文写真（ニュース風の灰色ボックス）================================== */
.news-photo{
  background:#eee;
  border:1px solid #ccc;
  padding:12px;
  margin:40px auto;
  text-align:center;
}

/* 縦写真 */
.news-photo.tate{
  width:400px;
}

/* 横写真 */
.news-photo.yoko{
  width:600px;
}

.news-photo img{
  width:100%;
  height:auto;
}

 /* link========================================= */
 .link-box {
  border: 1px solid #ccc;
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 6px;
 }
 
 .link-box h2 {
  margin-top: 0;
  text-align: center;
 }
 
 .link-box a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  font-weight: bold;
  color: #0055aa;
 }

 /* 左右メニュー========================================= */
  .left-menu,
 .right-menu {
  width: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  margin-bottom: 60px;
  padding: 0 10px; 
  border-radius: 0;
  box-sizing: border-box;
 }

 .right-menu {
  width: 180px;
 }

 .left-menu {
  width: 200px;
 }

 /* 事件一覧ページ========================================= */

.list-main section{
  text-align:center;
}

.list-main .event-list{
  list-style:none;
  padding-left:0;
  margin:10px 0 30px 0;
}

.list-main .event-list li{
  text-align:center;
}

 /* 事件一覧ページの詰め調整 */
.list-main section{
  text-align: center;
  margin-bottom: 24px;
}

.list-main h2{
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.2;
}

.list-main .event-list{
  list-style: none;
  padding-left: 0;
  margin: 0 0 8px 0;
}

.list-main .event-list li{
  text-align: center;
  margin: 4px 0;
  line-height: 1.4;
}

.list-main .event-list a{
  display: inline-block;
  line-height: 1.4;
}

 /* 左メニュー設定========================================= */
 .index-menu {
  border: 1px solid #ccc;
  background-color: #fff;
  padding: 16px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.index-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-menu ul li {
  border: 1px solid #ccc;
  margin-bottom: 4px;
  background-color: #fff;
  padding: 0;
}

.index-menu ul li a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  text-decoration: underline;
  color: #0066cc;
  font-size: 15px; 
}

 .index-menu h3 {
  margin-bottom: 10px;
  font-size: px;
 }

 .left-menu,
.right-menu {
  width: 200px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 40px;
  padding: 0 10px;
  border-radius: 0;
  box-sizing: border-box;
}

 /* 次の記事========================================= */
 .post-navigation {
  text-align: center;
  margin: 40px 0;
  font-size: 14px;
 }
 
 .post-navigation a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
 }

/* スマホ対応 ========================================= */
@media (max-width: 800px){

/* 全体を縦並び */
.content-wrapper{
  flex-direction: column;
  gap: 20px;
  width:100%;
  overflow-x: hidden;
}

/* 左メニュー */
.left-menu{
  width:100%;
  margin-top:10px;
  margin-bottom:20px;
  order:2;
}

/* 本文 */
.main{
  width:100%;
  padding: 0 10px;
  order:1;
  box-sizing: border-box;
}

.news-photo{
  width:100%;
  max-width:100%;
  overflow:hidden;
}

.news-photo.tate,
.news-photo.yoko{
  width:100%;
}

.news-photo img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
}

header{
  flex-direction: column;
  align-items: flex-start;
}

nav a{
  margin-left: 0;
  margin-right: 10px;
}

p{
  font-size:14px;
  line-height:1.6;
}

}
