
body {
  /* font-family: 游明朝, serif; */
  font-family: "Garamond", "EB Garamond", "Georgia", "Times New Roman", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  margin: 0;
  padding: 0;
  line-height: 30px;
}

/* main {
  display: block;
  margin-bottom: 80px;
} */
  
.site-title {
  position: fixed;
  top: 25px;
  left: 40px;
  padding: 0;
  margin: 0;
  width: 200px;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.4;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}
.site-title a:hover {
  text-decoration: underline; /* 必要なら */
  text-decoration-thickness: 1px;
  text-underline-offset: 3px; 
}

#sidebar {
  position: fixed;
  top: 110px;
  left: 40px;
  width: 200px;       /* サイドバーの幅を調整 */
  height: calc(100vh - 32px);       /* 画面の高さに合わせる */
  overflow-y: auto;    /* 中身が多い場合にスクロール */
  /* padding: 10px; */
}

#sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#sidebar ul li {
  margin-bottom: 10px;
}

#sidebar ul li a {
  text-decoration: none;
  color: inherit;
  display: inline;       /* ← inline → block に変更 */
}

#sidebar ul li a:hover {
  text-decoration: underline;  /* ホバー時にアンダーライン表示 */
  text-decoration-thickness: 1px;
  text-underline-offset: 3px; 
}

/* デスクトップではハンバーガー非表示 */
.menu-toggle {
  display: none;
}

/* デフォルトでメニューは非表示（モバイル） */
@media (max-width: 1024px) {

  .site-title {
    position: fixed;
    top: 30px;
    left: 20px;
    z-index: 2001;
    font-size: 16px;
    margin: 0;
    padding: 0;
  }

  /* ハンバーガーアイコン */
  .menu-toggle {
    display: block;
    position: fixed;        /* ← fixed にして画面に追従 */
    top: 20px;
    right: 10px !important;            /* 右に余白を持たせる */
    z-index: 2001;          /* サイドバーより前に表示 */
    font-size: 28px;

    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* iOS Safari / Chrome 対応 */
    tap-highlight-color: rgba(0, 0, 0, 0);         /* その他一部Android対応 */
    color: black !important;                      /* タップ時に青くならないよう強制 */
    background: none;
    border: none;
    cursor: pointer;
    border: red;    
  }

  
  .menu-toggle:focus {
    outline: none;
    background-color: transparent;
  }

  /* サイドバー全体をフルスクリーンに */
  #sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    padding: 130px 16px 30px; /* 上部に余白を追加（アイコンがあるので） */
    box-sizing: border-box;
  }

  /* 表示時に表示される */
  #sidebar.active {
    display: block;
  }

  /* メニューの見た目 */
  #sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #sidebar ul li {
    margin-bottom: 5px;
  }

  #sidebar ul li a {
    font-size: 16px;
    text-decoration: none;
    color: #000;
    padding: 8px 10px;
    display: block;
  }  
}





#content {
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  /* max-width: 1200px;    */
  /* box-sizing: border-box; */
  font-size: 16px;
}

/* ========= PC表示時（1025px以上） ========= */
@media (min-width: 1025px) {
  #content,
  .entry-title.page-heading,
  .page-body,
  .post-body-inner {
    /* width: 80%; */
    max-width: 60vw;
    /* margin: 0 auto;
    padding: 0; */
    box-sizing: border-box;
  }

  

  .works-grid {
    max-width: 60vw;
  }

  .post-text,
  .post-data {
    max-width: 100%; /* 60%内で収める */
    width: 100%;
  }
  
  #content,
  .page-body,
  .front-latest-work,
  .entry-title.page-heading {
    padding: 0;
  }

}



@media (max-width: 1024px) {
  
  #content {
    width: 100%;
    margin: 0 auto;
    margin-top: 0px;
    padding: 0 10px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .entry-title.page-heading { /*固定ページのタイトル高さ・タイトル下のマージン調整*/
    padding-top: 140px;
    margin-bottom: 30px;
    padding-right: 10px;
    padding-left: 10px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    border: red ;
  }

  /* ② front-latest-work に左右固定余白 */
  .front-latest-work {
    padding: 0 px;          /* ← 左右10pxの固定余白 */
    box-sizing: border-box;
    width: 100%;
  }

  /* ③ 画像は余白内で最大限広がる */
  .front-latest-work img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .page-body {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .post-body-inner {
    width: 100%;
    padding: 0 ;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .post-text,
  .post-data {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 30px;
    box-sizing: border-box;
  }

}

.entry-title {
  margin-top: 0;
  /* font-size: 1.4em;   */
  font-weight: normal; /* 太さ（必要なら normal や bold） */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px; 
  font-size: 16px;
}

.page-heading {
  /* max-width: 1200px; */
  margin: 0 auto;
  text-align: left; 
  margin-bottom: 55px;
}



.page-body {
  /* max-width: 1200px;        */
  margin: 0 auto;/* 中央揃え */
  text-align: left;        /* 左寄せにしたいなら */
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0px;
}

.work-item {
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
}

@media (max-width: 1024px) {
  .works-grid {
    margin-top: 20px;
    grid-template-columns: 1fr;  /* ← 1列にする */
    gap: 10px;
    padding: 0px;               /* 必要に応じて余白調整 */
  }

  .work-item {
    width: 100%;                 /* 念のため広がるように */
  }
}


.image-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-title {
  margin-top: 3px;
  font-size: 13px;
  line-height: 20px;
}

.front-latest-work {
  /* border: 2px solid blue; */
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}


.front-latest-work img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  width: 100%;   /* ← これを追加！ */
  height: auto;
}

  /* サムネイル画像は中央揃え */
.post-image {
  text-align: left;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .post-image,
  .front-latest-work {
    padding-top: 140px;
  }
}

.post-image img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

.post-body-inner {
  width: auto;
  /* max-width: 1024px !important; */
  margin: 0 auto;
  text-align: left;
  /* box-sizing: border-box; */
}

/* テキストとデータ */
.post-text,
.post-data {
  max-width: 680px; 
  width: 100%;
  margin-bottom: 30px;
  font-size: 16px;
}

@media (max-width: 1024px) {
  .post-text,
  .post-data {
    width: 100%;               /* 幅を100%にして */
    padding: 0px;           /* 左右に10pxの余白 */
    margin-bottom: 30px;       /* 下だけマージン */
    box-sizing: border-box;    /* paddingを含めて幅を管理 */
  }
}



.post-gallery{
  margin-top: 45px;
}

/* ギャラリー画像 */
.post-gallery img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 10px 0;
}



.wp-block-table {
  margin-top: 0;
  width: 100%;
  border-collapse: collapse;
}

.wp-block-table td, 
.wp-block-table th {
  border: none;
  padding: 2px 0px;
  vertical-align: top;
}

.wp-block-table td:first-child {
  /* font-weight: bold; */
  white-space: nowrap;
  width: 100px; /* ← 年号用幅（適宜調整） */
}


.post-title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px; 
}

.photo-credit {
  font-size: 12px;
  margin-top: 5px;
  text-align: right;
}

.site-footer {
  position: fixed;
  bottom: 2vh;  /* 画面の高さの5% */
  right: 3vw;   /* 画面の幅の5% */
}





#content {
  padding-bottom: 100px; /* ← これが必要！ */
}