/* =========================================================
   report.v6.css
   一般社団法人 会計事務所連携協議会：レポート用スタイル
   ---------------------------------------------------------

   ========================================================= */

/* ===== レイアウト基礎 ===== */
main.reportMain {
    max-width: 800px;
}

.report {
  /*max-width: 900px;*/
  margin: 0 auto;
  line-height: 1.9;
}

.report > section {
    padding: 0 1rem;
    border-right: 1px solid #e7f1eb;
    border-left: 1px solid #e7f1eb;
}

.report > section a {
    font-weight: bold;
    color: inherit;
}

.report > section p.imgPar {
text-align: center;
font-size: 90%;
font-weight: bold;
}

.report > section p.imgPar img {
    padding-top: 0.8rem;
    max-width: 100%;
}

.report > section table {
    min-width: 300px;
    margin: 1rem auto;
    border-spacing: 0;
    border-left: 1px solid #abcab6;
    border-top: 1px solid #abcab6;
}

.report > section table caption {
    font-size: 90%;
    font-weight: bold;
    text-align: center;
}

.report > section table th,.report > section table td {
    padding: 0.4rem 0.4rem 0.2rem 0.4rem;
    border-right: 1px solid #abcab6;
    border-bottom: 1px solid #abcab6;

}

.report > section table th {
    background-color: #c5dbcd;
}


.report .notice {
    background-color: #e7f1eb;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    border-top: 1px dashed #7eaa8f;
    padding: 1rem;
    font-size: 90%;
}

.report .notice dt,.report .notice dd {
    margin: 0;
    margin-bottom: 0.8rem;
}

.report .notice dt {
    padding-right: 1rem;
    width: 5rem;
    text-align: right;
}

.report .notice dd {
    width: calc(100% - 6.5rem);
}


.report__meta {
  color: #555;
  font-size: .95em;
}
.report h2 {
  margin-top: 2.2em;
  padding-left: .6em;
}
.report h3 {
    margin-top: 1.6em;
    border-bottom: solid 3px #c5dbcd;
}


h3:after {
  border-bottom: solid 3px #5b8c6e;
}


.report h4 { margin-top: 1.2em; }

/* ===== 目次（共通） ===== */
.report__toc {
  margin: 1.6rem auto;
  padding: 0;
  border: 1px solid #abcab6;
  max-width: 80%;
    box-shadow: 0.1em 0.1em 0.8em 0px rgba(91,140,110,0.4);
}
.report__toc ol {
  padding: 0;
  margin: 0.6rem 2rem;
}
.report__toc--global li.is-current > a {
  font-weight: 700;
  text-decoration: none;
}

/* ===== アコーディオン（2ページ目以降） ===== */
.report__toc-accordion {
  background: #fff;
  padding: 0;
}
.report__toc-accordion > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  padding: 0.4em 2rem;
  background-color: #32493b;
  color: #fff;
}
.report__toc-accordion > summary::-webkit-details-marker { display: none; }
.report__toc-caret {
  display: inline-block;
  width: .6em;
  height: .6em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: auto;
  transition: transform .2s ease;
}
.report__toc-accordion[open] .report__toc-caret {
  transform: rotate(45deg);
}

/* ===== ページャ ===== */
footer.report__footer {
    background-color: inherit;
    border-top: 1px solid #3b5a46;
    border-bottom: 1px solid #3b5a46;
    padding: 0;
    margin: 1rem 0;
}

footer.report__footer a {
    color: #3b5a46 !important;
}

.report__pager {
  margin: 0;
  padding: 0 1em;
}
.report__pager__list {
  display: inline-flex;
  gap: 0;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
.report__pager__nav {
  display: flex;
  justify-content: center;
  margin-top: 0;
  align-items: center;
}
.report__pager__list a,.post-page-numbers.current {
  display: inline-block;
  padding: .25em .55em;
  border-radius: 0;
  text-decoration: none;
    border-top: 0.3em solid #fff;
    border-bottom: 0.3em solid #fff;
    text-align: center;
}

.post-page-numbers.current {
    border-top: 0.3em solid #3b5a46;
    border-bottom: 0.3em solid #3b5a46;
    color: #3b5a46;
}

.report__pager__list a:hover { background: #f7f7f7; }

/* ===== アクセシビリティ ===== */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
@media print { .report__pager, .report__toc { display: none; } }



/* =========================================================
   本文の附番（h2〜h4）
   ========================================================= */
.report { counter-reset: section; }
.report h2 { counter-reset: subsection; }
.report h3 { counter-reset: subsubsection; }

/* h2 → 1., 2., 3. */
.report h2::before {
  counter-increment: section;
  content: counter(section) ". ";
  font-weight: 700;
  margin-right: .1em;
}
/* h3 → 1-1., 1-2. */
.report h3::before {
  counter-increment: subsection;
  content: counter(section) "-" counter(subsection) ". ";
  font-weight: 700;
  margin-right: .2em;
}
/* h4 → 1-1-1. */
.report h4::before {
  counter-increment: subsubsection;
  content: counter(section) "-" counter(subsection) "-" counter(subsubsection) ". ";
  font-weight: 600;
  margin-right: .3em;
  color: #666;
}

/* =========================================================
   目次の附番（h2/h3）
   ========================================================= */
.report__toc ol {
  list-style: none;
  counter-reset: toc1;
}

.report__toc ol a,.is-current a {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: block;
}

.report__toc ol a:hover,.is-current a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.report__toc ol a:after,.is-current a::after {
    content: "";
  display: inline-block;
  position: absolute;
  top:0;
  bottom:0;
  width: .5em;
  height: .5em;
  border-right: 2px solid #abcab6;
  border-bottom: 2px solid #7eaa8f;
  transform: rotate(-45deg);
  margin: auto 0;
  transition: transform .2s ease;
}

.report__toc ol a:hover:after,.is-current a:hover:after {
  transform: rotate(-60deg);
}


.report__toc .toc-level--1 > li {
  counter-increment: toc1;
    margin-bottom: 0.22rem;
}
.report__toc .toc-level--1 > li::before {
  content: counter(toc1) ". ";
  color: #666;
  margin-right: .4em;
}

/* h3階層（1-1.など） */
.report__toc .toc-level--2 {
  list-style: none;
  counter-reset: toc2;
  padding-left: 1.2em;
  margin: 0.3rem 0 0 0;
  border-top: 1px solid #c5dbcd;
}
.report__toc .toc-level--2 > li {
  counter-increment: toc2;
}
.report__toc .toc-level--2 > li::before {
  content: counter(toc1) "-" counter(toc2) ". ";
  color: #888;
  margin-right: .4em;
}


/* 現在地の色調整 */
.report__toc--global li.is-current::before {
  color: #111;
}

/* ===== 自動附番を無効化（本文の h2/h3/h4） ===== */
.report { counter-reset: none !important; }
.report h2, .report h3 { counter-reset: none !important; }
.report h2::before,
.report h3::before,
.report h4::before {
  content: none !important;
  counter-increment: none !important;
}

/* ===== 附番を完全停止（本文＋目次ともに） ===== */

/* 本文見出しのカウンターをリセット・非表示 */
.report,
.report h2,
.report h3,
.report h4 {
  counter-reset: none !important;
}
.report h2::before,
.report h3::before,
.report h4::before {
  content: none !important;
  counter-increment: none !important;
}

/* 目次側（TOC）のカウンターもリセット・非表示 */

.report__toc ol,
.report__toc .toc-level--1 > li,
.report__toc .toc-level--2 > li {
  counter-reset: none !important;
  counter-increment: none !important;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.report__toc li::before {
  content: none !important;
}



.report__toc .toc-level--1 > li:last-of-type {
    border-bottom: 0 none;
}

.report__toc .toc-level--2 > li {
    border-top: 1px solid #c5dbcd;
}

.report__toc .toc-level--2 > li:nth-of-type(1) {
    border-top: 0 none;
}

.report {
    letter-spacing: 0.2em;
    font-feature-settings:"palt";
}

header.report__header {
    display: block;
    border-bottom: 1px dashed #3b5a46;
}


a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.3em;
  background: url("https://j-tax.or.jp/wp/wp-content/images/ico/ico_target-blank_black.svg") no-repeat center;
  background-size: contain;
  opacity: 1;
}
a[target="_blank"]:hover::after {
  opacity: 1;
}

@media screen and (max-width: 767px) {
    .report > section {
        padding: 0;
    }
    .report__toc {
      max-width: 100%;

  }
  .report .notice {
      padding-left: 0;
      padding-right: 0;
  }
  
  a {word-break: break-all}
  
  .report__toc ol a:after, .is-current a::after {
      right: 0;
  }
}

