
a:hover {
  text-decoration: inherit;
  color: inherit;
}

.up-d_note-list, .up-d_note-detail{
  font-family: "Yu Mincho", "YuMincho", serif;
}

@media screen and (max-width: 768px){
  body.pc #header, body.pc #contents, body.pc #footer, #wasara, #navigation {
    min-width: 768px;
    max-width: 100%;
  }
  
  body.pc #header #nav-lang {
    min-width: 768px !important;
  }
}

@media screen and (max-width: 468px){
  body.pc, body.pc #header, body.pc #contents, body.pc #footer, #wasara, #navigation {
    min-width: 273px;
    max-width: 100%;
    width: 100%  !important;
  }
  
  body.pc #header #nav-lang {
    min-width: 273px !important;
  }
  
  body.sp, body.sp #header, body.sp #contents, body.sp #footer {
    width: 100%;
  }
}

/* note一覧 */
.up-d_note-list > div[data-collection-list-content] {
  display: contents;
}

.up-d_note-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(238px,1fr));
  justify-content: center;
  margin: 40px 40px 0px 40px;
}

@media screen and (min-width: 1280px) {
  .up-d_note-list {
      grid-template-columns: repeat(4, minmax(0px,271px));
  }
}

.up-d_note > a {
  display: block;
}

.up-d_note > a > img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.up-d_note-title {
  margin-top: 0.25rem;
  font-weight: bold;
  font-size: 0.75rem;
}

.up-d_note-published-date {
  margin-top: 0.75rem;
  font-size: 0.75rem;
}

@media screen and (max-width: 468px){
  .up-d_note-title {
    margin: 0.25rem 0.75rem 0rem 0.75rem;
  }
  .up-d_note-published-date {
    margin: 0.75rem 0.75rem 0rem 0.75rem;
  }
}



/* note詳細 */
.up-d_note-detail {
  max-width: 620px;
  margin: 40px auto 0 auto;
}

@media screen and (max-width:468px){
  .up-d_note-detail {
    padding: 0px 20px 0 20px;
  }
}

.up-d_note-detail > img {
  display: block;
  width: 100%;
  /* margin: 0 auto 72px auto; */
  margin: 0 auto 0 auto;
}

.up-d_note-detail-title {
  font-size: 32px;
  font-weight: bold;
  margin-top: 72px;
  margin-bottom: 18px;
  line-height: 1.5;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
}

.up-d_note-detail-published-date {
  font-size: 1rem;
  margin-bottom: 18px;
}

.up-d_note-detail-content {
  margin-bottom: 4rem;
}

.up-d_note-detail-content > img {
  margin: 1rem 0 1rem 0;
}

.up-d_note-detail-content > div {
  font-size: 1rem;
  margin: 1rem 0 1rem 0;
  line-height: 1.8;
}

.up-d_note-detail-content > div > div {
  font-size: 18px;
  margin: 36px 0 36px 0;
  line-height: 1.5;
}

.up-d_note-detail-content > div > h2 {
  font-size: 28px;
  font-weight: 700 !important;
  font-feature-settings: "palt" 1;
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 54px 0 -18px 0;
}

.up-d_note-detail-content > div > h3 {
  font-size: 20px;
  font-weight: 700 !important;
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 36px 0 -18px 0;
}

.up-d_note-detail-content > div > ul {
  font-size: 16px;
  line-height: 1.5;
  list-style-type: none;
  margin: 36px 0 36px 0;
  padding-left: 24px; 
}

.up-d_note-detail-content > div > ul > li {
  font-size: 18px;
  line-height: 36px;
  list-style-type: disc !important;
  list-style-position: outside;
  margin: 9px 0 9px 0;
}

.up-d_note-detail-content > div > ul > li > div {
  font-size: 18px;
  line-height: 36px;
  margin: 9px 0 9px 0;
}

.up-d_figure > a {
  display: table;
  margin: 0 auto;
}

.up-d_figcaption {
  font-size: 14px;
  text-align: center;
  line-height: 1.5;
}

.up-d_figcaption > a {
  display: block;
  margin-top: 16px;
  text-align: right;
  text-decoration-line: underline;
}

.up-d_note-detail-back {
  text-align: center;
}

.up-d_note-detail-blockquote {
  font-size: 16px;
  padding: 25px 36px;
  background-color: rgb(245,248,250);
}

/* note詳細 画像拡大モーダル */
.up-d_note-detail-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:999;
}

.up-d_note-detail-modal-overlay{
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.up-d_note-detail-modal-content{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:40px;
  box-sizing:border-box;
}

.up-d_note-detail-modal-content img{
  display:block;
  max-width:90vw;
  max-height:90vh;
  width:auto;
  height:auto;
  object-fit:contain;
  box-shadow:0 15px 60px rgba(0,0,0,0.18);
  border-radius:6px;
}


/* note詳細 レスポンシブ */
@media screen and (max-width: 468px){
  .up-d_note-detail {
    margin: 20px 0 0 0;
  }
  
  .up-d_note-detail > img {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
    
  .up-d_note-detail-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .up-d_note-detail-published-date {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .up-d_note-detail-content {
    font-size: 1rem;
  }
}

/* ページネーション */
.up-d_note-pagenation {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  font-family: 'Rotis Serif Std Regular', 'ヒラギノ明朝 ProN W3', 'HiraMinProN-W3', 'HG明朝E', 'ＭＳ Ｐ明朝', 'MS PMincho', 'MS 明朝', serif;
}

.up-d_note-pagenation-list {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.up-d_note-pagenation-item {
  display: inline-flex;
}

.up-d_note-pagenation-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* 現在のページ */
.up-d_note-pagination-now a {
  border-color: #333;
  border: 1px solid #ddd;
  cursor: default;
  pointer-events: none;
}

/* バナー */
.up-d_note-casanet_banner {
  opacity: 1;
  transition: opacity 0.4s ease;
  width: 300px; 
}

.up-d_note-casanet_banner.is-hidden {
  opacity: 0;
}

@media screen and (max-width: 468px){
  .up-d_note-casanet_banner {
    width: 280px; 
  }
}


