@charset 'UTF-8';

/*********************************************
/*
/* サイトマップ（sitemap.html）用CSS
/* ヒーロー部分は office.css を共用
/*
/********************************************/

:root {
  --sm-blue: #2b68ad;      /* サイト共通の見出し色（.blocktitle） */
  --sm-orange: #ff8c00;    /* トップページ見出しの英字（darkorange） */
  --sm-icon: #4b4b4b;      /* トップページのナビアイコン色 */
  --sm-line: #e3e6ea;
  --sm-bg: #f6f8fb;
}

.sitemap-block {
  padding-bottom: 40px;
}

.inner-block p.sm-lead {
  margin: 10px 0 30px;
  line-height: 1.9;
  letter-spacing: 0.1rem;
}

/* サイト共通の「.inner-block li」の余白を打ち消す */
.sitemap-block .sm-jump li,
.sitemap-block .sm-children li {
  padding: 0;
}

/* ===== 分類へのジャンプ（トップページの5分類） ===== */
.sm-jump ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.sm-jump li {
  flex: 0 0 calc((100% - 40px) / 5);
}

@media screen and (max-width: 767px) {
  .sm-jump li {
    flex-basis: calc((100% - 20px) / 3);
  }
}

.sm-jump a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 84px;
  padding: 12px 6px;
  color: #333;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  background-color: #fff;
  transition: background-color 0.2s, border-color 0.2s;
}

.sm-jump a:hover,
.sm-jump a:focus {
  color: var(--sm-blue);
  text-decoration: none;
  border-color: var(--sm-blue);
  background-color: var(--sm-bg);
}

.sm-jump img {
  display: block;
  width: 48px;
  height: auto;
}

.sm-jump .fa {
  display: block;
  font-size: 22px;
  line-height: 27px;
  color: var(--sm-icon);
}

/* ===== 分類ごとのセクション ===== */
.sm-section {
  margin-top: 50px;
  scroll-margin-top: 80px; /* 固定ヘッダーに隠れないように */
}

.sm-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.1rem;
  border-bottom: 2px solid var(--sm-blue);
}

.sm-heading img {
  width: 56px;
  height: auto;
}

.sm-heading .fa {
  width: 56px;
  font-size: 28px;
  text-align: center;
  color: var(--sm-icon);
}

.sm-heading-en {
  color: var(--sm-orange);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15rem;
}

.sm-group {
  margin: 28px 0 12px;
  padding-left: 10px;
  color: var(--sm-blue);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  border-left: 4px solid var(--sm-blue);
}

/* ===== ページ一覧 ===== */
.sm-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (min-width: 768px) {
  .sm-list {
    grid-template-columns: 1fr 1fr;
  }
}

.sitemap-block .sm-item {
  padding: 12px 14px;
  border: 1px solid var(--sm-line);
  border-radius: 8px;
  background-color: #fff;
}

.sm-item > a {
  position: relative;
  display: block;
  padding-left: 16px;
  color: #333;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.05rem;
}

.sm-item > a::before {
  content: "\f105"; /* Font Awesome angle-right */
  font-family: "FontAwesome";
  position: absolute;
  top: 0;
  left: 2px;
  color: var(--sm-blue);
}

.sm-item a:hover,
.sm-item a:focus {
  color: var(--sm-blue);
}

.sm-item .fa-external-link {
  margin-left: 4px;
  font-size: 85%;
  color: #999;
}

/* 子ページ（開閉式） */
.sm-children {
  margin-top: 8px;
  padding-left: 16px;
}

.sm-children summary {
  display: inline-block;
  padding: 2px 10px;
  color: var(--sm-blue);
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
  border: 1px solid var(--sm-line);
  border-radius: 999px;
  background-color: var(--sm-bg);
  cursor: pointer;
  list-style: none;
}

.sm-children summary::-webkit-details-marker {
  display: none;
}

.sm-children summary::before {
  content: "\f067"; /* plus */
  font-family: "FontAwesome";
  margin-right: 6px;
  font-size: 1rem;
}

.sm-children[open] summary::before {
  content: "\f068"; /* minus */
}

.sm-children summary:hover,
.sm-children summary:focus-visible {
  border-color: var(--sm-blue);
}

.sm-children ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.sm-children li {
  border-top: 1px dashed var(--sm-line);
}

.sm-children li a {
  display: block;
  padding: 6px 0;
  color: #555;
  font-size: 1.3rem;
  line-height: 1.6;
}

@media screen and (max-width: 767px) {
  .sm-heading {
    font-size: 1.9rem;
  }

  .sm-heading img,
  .sm-heading .fa {
    width: 44px;
  }

  .sm-section {
    margin-top: 40px;
  }
}
