@charset "UTF-8";
/* CSS変数の宣言 */
/* サブページで、テンプレートで対応しきれないスタイルをこちらに記入します。ASのみ書き込み可能 */

/* 「村井弦斎」画面 */
/* list-design3　外枠線なし表示　*/
.border-ng{
  border: 1px solid #fff !important;
}

@media (max-width: 960px) {
  .list-design3.column1 .item {
    display: block;
  }
  .list-design3 .item img{
    display: block;
    object-position:50% 0%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-height: 350px;
  }
}

/* 略年譜 */
.simple-timeline {
  padding-left: 20px;
  margin: 0.5rem;
}

.simple-timeline h4 {
  font-size: 1.5rem;
  line-height: 1.5;
  text-decoration: underline var(--accentColor);
}

.simple-timeline .entry {
  margin-top: 0.5rem;
}

/* PC/タブレット（広い画面）の横並び */
.simple-timeline .year {
  display: inline-block;
  width: 150px; /* 年号の固定幅 */
  font-weight: bold;
  color: #333;
}

.simple-timeline p {
  display: inline-block;
  margin: 0;
  line-height: 1.6;
  vertical-align: top;
  max-width: calc(100% - 160px); /* yearの幅 + 余白のぶんを差し引き */
}

/* --- ここから：スマホで上下にするレスポンシブ --- */
@media (max-width: 640px) {
  .simple-timeline {
    padding-left: 0; /* 余白を少し整理 */
  }

  .simple-timeline .entry {
    /* 行間を少しだけ広げる */
    margin-top: 0.75rem;
  }

  .simple-timeline .year,
  .simple-timeline p {
    display: block;    /* ブロックにして上下配置 */
    width: auto;       /* 固定幅を解除 */
    max-width: none;   /* 右カラムの最大幅制限を解除 */
  }

  .simple-timeline .year {
    /* 年を上に、少し強調 */
    margin-bottom: 0.1rem;
    white-space: normal; /* 漢字+西暦が長くても折り返し可 */
  }
}

.simple-timeline .entry.entry--image-row .image-cell {
  /* display: block; は削除 */
  display: inline-block;                 /* ← 右カラムに残す */
  vertical-align: top;                   /* 既存と揃える */
  width: calc(100% - 160px);             /* 右カラムの幅を明示（余白ぶん含む） */
  max-width: calc(100% - 160px);         /* 念のため上限も合わせる */
  box-sizing: border-box;
}

.simple-timeline .entry.entry--image-row img {
  display: block;
  max-width: 350px;
  height: auto;
  border-radius: 4px;
}

.simple-timeline .entry.entry--image-row .caption {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.25rem;
  margin-left:1rem;
}

/* スマホ時、画像行の見た目を調整 */
@media (max-width: 640px) {
  .simple-timeline .entry.entry--image-row .image-cell {
    margin-top: 0.1rem;
  }
}

/* 印刷（1列で読みやすく） */
@media print {
  .simple-timeline {
    padding-left: 0;
    margin: 0;
  }
  .simple-timeline .entry {
    break-inside: avoid;
  }
  .simple-timeline .year,
  .simple-timeline p {
    display: block;
    width: auto;
    max-width: none;
  }
}

/*「関連資料一覧」のリンク*/
p.outer-link {
  padding: 0 6%;
  text-align: right;
  margin-top: 20px;
}

p.outer-link a {
  display: inline-block;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  line-height: 1;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  min-height: 48px;
  color: #000;
  border: 1px solid #84919e;
  border-radius: 24px;
  background-color: #fff;
  text-decoration: underline;
}

p.outer-link a::after {
  content: "≫";
}

p.outer-link a:hover,
p.outer-link a:active {
  opacity: 0.8;
  transition: 0.5s;
  background-color: #c8c8cb;
}

@media (max-width: 575px) {
  p.outer-link {
    text-align: center;
  }
}
