
 li{
    list-style: none;
}
a{
    text-decoration: none;
}
@font-face{
    font-family: 'forhistryfonts';
    src: url('../fonts/jb007_ackaisyo/font_ackaisyo/ackaisyo.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
/* * {
    outline:1px solid red;
} */


/* logo-ping */
.logo{
    display: block;
    width: 200px;
    height: auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* nav　設定 */
.navbar{

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fafafa;
}
.nav-limks{
    display: flex;
    gap: 20px;  
}

 .nav-links a{
    text-decoration: none;
    color: #f07d42;
    font-weight: 500;
    padding: 5px 10px;
    transition: 0.3s;

    margin-right: 20px;
 }
 .nav-limks a:last-child{
    margin-right: 0;
 }
 .nav-links a:hover{
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
 }

 /* 言語ボタン */
 .lang-btn{
    background: white;
    color: #f07d42;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
 }
 .lang-btn:hover{
    background:#ffe3d4;
 }

 body{
    margin: 0;
    font-family: sans-serif;
 }


 /* サイドバー　メイン */
 
.sidebar{
    width: 50vw;
    background: #fff;
    top: 150px;
    padding: 20px;
    position: absolute;
    z-index: 5000;
}

/* 画面幅が1000px以下になったら非表示にする */
@media (max-width: 1000px) {
  .sidebar {
    display: none !important;
  }
}

.link-position{
  border-bottom: 1.5px dashed #444;
  width: 16vw;
}
.link-position p{
  text-align: left;
  margin: auto auto 5px auto;
  font-family: sans-serif;   
  font-size: small;
  margin-left: 20px;
}
.sidebar a{
  display: block;
  margin-bottom: 10px;
  color: #333;
  text-decoration: none;
}
.side-link{
  max-width: 80%;
  width: 25vw;
  text-align: justify;
  text-align-last: justify;
}
.sidebar{
    background: transparent;
}
.side-title{
  font-size: 3.5vw;
  font-weight: 1000;
  color: #f07d42;
  margin-top: 50px;
  margin-left: 100px;
}



/*グリッド形式の歴史紹介*/
/* グリッド全体のコンテナ */
.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #333;  
  border-left: 1px solid #333; 
  background-color: #F6F4F0;   
  color: #333;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

/* 各マスの共通設定 */
.grid-item {
  border-right: 1px solid #333;  
  border-bottom: 1px solid #333; 
  min-height: 300px; 
  position: relative;
}

/* テキストボックスのデザイン */
.text-box {
  padding: 40px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.year {
  display: block;
  font-family: sans-serif; 
  font-size: 0.9rem;
  margin-bottom: 15px;
  opacity: 0.7;
}

.text-box h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: normal;
}

.text-box p {
  font-size: 0.95rem;
  line-height: 2.0; 
  text-align: justify;
}

/* 画像ボックスのデザイン */
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

/* 歴史ブロック内でテキストと画像をまとめて表示する場合の画像調整 */
.history-img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* 2マスまたがる画像コンテナ */
.wide-img-container {
  position: relative;
  overflow: hidden;
}

.wide-img-container .decolation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 横に2マスまたがる設定 */
.wide-img {
  grid-column: span 1;
}
.wide-img-container {
  grid-column: span 2;
  position: relative;
}
.wwide-img {
  grid-column: span 2;
}
.wide-text-container{
  grid-column: span 2;
}

/* タイトルエリアの特別設定 */
.title-area {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; 
}

/* レスポンシブ対応（スマホでは1列に） */
@media (max-width: 768px) {
  .history-grid {
    grid-template-columns: 1fr;
  }
  .wide-img {
    grid-column: span 1;
  }
}