<style>
.callout-title {
  position: relative;
  padding: 1.2em 0.8em;
  background: #F2E4D6;
  color: #48392E;
}

.callout-title:after {
  position: absolute;
  content: '';
  top: 100%;
  left: 30px;
  border: 15px solid transparent;
  border-top: 15px solid #F2E4D6;
  width: 0;
  height: 0;
}

.first-title {
  position: relative;
  background-color: #fff;
  padding: 14px 12px;
  margin: 24px 0 12px;
  font-size: 20px;
  color: #594639;
  border-bottom: 4px solid #DDB487;
}

p.contentsindent {
  padding-left: 3em;
}

ul.indent {
  padding-left: 3em;
}

li.indent {
  padding-left: 3em;
}

.anchor-link {
  color: inherit;
  text-decoration: none;
}

/* ▼一番上のメニュータブ */
.g_menu { width:100%; display:block; margin:10px auto 0; }
.g_menu > ul { margin:0; padding:0; list-style:none; display:flex; justify-content:space-between; flex-wrap:wrap; background-color:#8A541A; }
.g_menu > ul > li { padding:0; margin:1px 0 0; width:33.3%; }
.g_menu > ul > li > a { width:100%; height:50px; text-align:center; background-color:#8A541A; margin:0; padding:0; color:white; display:block; text-decoration:none; line-height:50px; font-size:1.1em; border: 1px solid #fff; }
.g_menu > ul > li > a:hover { background-color:#D1A171; }
.g_menu > ul > li.no_br br { display:none; }

@media (max-width: 768px) {
  .g_menu > ul > li { width:100%; } 
  .g_menu > ul > li > a {
    height: auto;             
    line-height: 1.4;         
    padding: 10px 12px;      
    text-align: left;         
    white-space: normal;      
    overflow-wrap: anywhere;  
    word-break: break-word;   
  }
}


/* ▼新着情報一覧 */
.news-list{
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #CCC;
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.news-list .item > a{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;           
  padding: 16px 20px;
  border-bottom: 1px solid #EEE;
  background: #fff;
  color: #333;
  text-decoration: none;
}

.news-list .date{
  margin: 0;
  flex: 0 0 140px;      
  font-size: 16px;
  color: #444;
  white-space: nowrap;
}

.news-list .title{
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
  overflow-wrap: break-word;
}

.news-list .item > a:hover .title{ color: #0057ff; }

.news-list .item > a:focus-visible{
  outline: 3px solid #8cc5ff;
  outline-offset: 2px;
}

.news-list::-webkit-scrollbar{ width: 10px; }
.news-list::-webkit-scrollbar-track{ background: #f1f1f1; }
.news-list::-webkit-scrollbar-thumb{ background: #c9c9c9; }
.news-list::-webkit-scrollbar-thumb:hover{ background: #b3b3b3; }

.news-list{ scrollbar-width: thin; scrollbar-color: #c9c9c9 #f1f1f1; }

@media (max-width: 480px){
  .news-list .item > a{
    flex-wrap: wrap;
    gap: 8px 20px;       
  }
  .news-list .title{ margin-top: 4px; }
}

/*予算事業のテーブルです */
table {
    width: calc(100% - 5ch);
    border-collapse: collapse;
    font-size: 16px;
    margin-left: 3em;
    margin-right: 5ch;
}

table th {
    width: 29%;
    padding: 10px;
    text-align: left;
    background: #91602F;
    border-bottom: 2px solid #fff;
    position: relative;
    color: white;
}
table th::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #91602F;
    border-right: 0;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
}
table td {
    width: 71%;
    padding: 10px 10px 10px 20px;
    border-bottom: 2px solid #fff;
    background: #F9F2EB;
}

table tr:hover th {
    background-color: #D1A171;
}
table tr:hover td {
    background-color: #FCF9F6;
}

p.intable  { margin: 0 ;  font-size:16px; padding-left: 2em;}
ul.intable { margin: 0 ;  font-size:16px; }
li.intable { margin: 0 ; font-size:16px; }

/* --- モバイル（640px以下）: 行をカード化して縦積み --- */
@media (max-width: 640px) {
   table {
    width: 100%;
    margin: 0;
    font-size: 15px; 
    border-collapse: separate; 
    border-spacing: 0 12px;    
  }

  table tr {
    display: block;
    background: #FCF9F6;
    border: 1px solid #EEE0D4;
    border-radius: 10px;
    overflow: hidden;
  }

  table th,
  table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #fff; 
    padding: 12px 16px;
  }

  table th {
    background: #91602F;
    color: #fff;
    position: relative;
    font-weight: 700;
  }

  table th::after {
    display: none;
  }

  
  table td {
    background: #F9F2EB;
    padding-left: 16px; 
  }

  table tr > *:last-child {
    border-bottom: none;
  }

  table tr:hover th,
  table tr:focus-within th {
    background-color: #D1A171;
  }
  table tr:hover td,
  table tr:focus-within td {
    background-color: #FCF9F6;
  }

  p.intable  { margin: 0; font-size: 15px; padding-left: 1em; }
  ul.intable { margin: .25em 0 0 1.25em; font-size: 15px; }
  li.intable { margin: .25em 0; font-size: 15px; }
}

/*▼資材カテゴリ▼ */
.cards {
  max-width: 1120px;
  margin: 48px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 24px;
}
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ====== カード本体 ====== */
.card {
  background: #fffaf5;        
  border: 1px solid #C8A07A;  
  border-radius: 14px;
  padding: 16px 16px 18px 16px;
  display: grid;
  grid-template-rows: auto auto auto 1fr; 
  max-height: 240px;
}

/* ====== ヘッダ（アイコン＋タイトル） ====== */
.card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 20px;
  margin-bottom: 12px;
}
.card__icon {
  object-fit: contain;
  flex: 0 0 24px;
  padding-left: 20px;
}
.card .card__header .card__title {
  font-size: 18px;
  font-weight: 700;
  color: #502C2C;  
  margin: 0 ;          
}

/* ====== 仕切り線 ====== */
.card__divider {
  border: none;
  height: 1px;
  width: 100%;
  background-color: #C8A07A;  
  margin: 0 0 10px;
}

/* ====== 箇条書き ====== */
.card__list {
  margin: 0;
  padding-left: 0.9em;
  display: grid;
  gap: 6px;
  color: #000;            
}
.card__list li {
  color: inherit;
}

/* アクセシビリティ：キーボードフォーカス視認性 */
.card:focus-within {
  outline: 3px solid rgba(200, 160, 122, 0.45); 
  outline-offset: 2px;
  transition: outline-color .2s ease;
}

/*▼関連情報▼ */
:root{
  --rel-title-color: #502C2C;  
  --rel-text-color:  #3b2a1f;  
  --rel-border:      #E7D7C7;   
  --rel-bg:          #fff;      
  --rel-accent:      #C8A07A;  
}

.related-media-list{
  max-width: 1120px;
  margin: 20px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;  
  gap: 20px;
}

/* 各アイテム */
.related-media{
  display: grid;
  grid-template-columns: 64px 1px 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--rel-bg);
  border: 1px solid #C8A07A33; 
  border-radius: 12px;
  transition: 0.2s ease;
}

.related-media:hover{
  box-shadow: 0 6px 18px rgba(80,44,44,0.06);
  transform: translateY(-1px);
}

/* アイコン */
.related-media__icon{
  width: 52px;
  height: 52px;
  object-fit: contain;
  justify-self: center;
}

/* 仕切り線（PC時は縦） */
.related-media__divider{
  width: 1px;
  height: 80%;
  background: var(--rel-border);
}

/* 右側のテキスト */
.related-media__body{
  min-width: 0;
}

.related-media__title{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--rel-title-color);
  line-height: 1.35;
}

.related-media__desc{
  margin: 0;
  color: var(--rel-text-color);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 600px){
  .related-media{
    grid-template-columns: 48px 1fr;  
    grid-template-rows: auto auto;  
    gap: 8px 12px;
    align-items: start;
  }

  .related-media__icon{
    width: 40px;
    height: 40px;
    align-self: start;
  }

  .related-media__divider{
    width: 100%;       
    height: 1px;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .related-media__body{
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

/* ====== リンク対応（全体クリックにする場合） ====== */
a.related-media{
  text-decoration: none;
  color: inherit;
}

a.related-media:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--rel-accent) 60%, transparent);
  outline-offset: 3px;
  border-radius: 12px;
}
</style>