@charset "UTF-8";

/* 全体 */
.kana-sitemap {
  padding: 32px 0 40px;
  color: #666;
/* font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN","Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif; */
}

.kana-sitemap__inner {
  max-width: 1200px; 
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.text01{
  margin-bottom: 32px;
}


.kana-toggle {
  margin: 0 0 32px;
}

.kana-toggle__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: #f5f5f5; 
  color: #666;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 6px;
}

.kana-toggle__button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: auto; 
}

.kana-toggle__button.is-open::after {
  transform: rotate(225deg) translateY(-1px);
}

.kana-toggle__content {
  margin-top: 18px;
}

.kana-toggle__content.is-hidden {
  display: none;
}

.kana-toggle__button:hover {
  background: #ececec;
}


/* タブ */
.kana-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
}

.kana-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  color: #666;
  text-decoration: none;
  border: 1px solid #666;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.kana-tabs a:hover {
  background: #666;
  color: #fff;
}

.kana-tabs a.is-active {
  background: #666;
  color: #fff;
  border-color: #666;
}

.kana-tabs a:active {
  transform: translateY(1px);
}

/* 各行ブロック */
.kana-block + .kana-block {
  margin-top: 38px;
}

.kana-block {
  scroll-margin-top: 48px;
}

.kana-heading {
  position: relative;
  margin: 0 0 26px;
  padding-left: 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #666;
}

.kana-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 32px;
  background: #666;
}

/* キーワード一覧 */
.kana-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kana-links li {
  min-width: 0;
}

.kana-links a {
  display: block;
color: #000; !important;
font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}

.kana-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* 矢印画像 */
.kana-links a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 2px;
  background: url("../keyword_index_images/external-link.png") no-repeat center / contain;
  vertical-align: middle; 
}

/* レスポンシブ */
@media screen and (max-width: 1024px) {
  .kana-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media screen and (max-width: 767px) {
  .kana-sitemap {
    padding: 24px 0 32px;
  }

  .kana-tabs {
    gap: 16px 20px;
    margin-bottom: 28px;
  }

  .kana-tabs a {
    font-size: 15px;
  }

  .kana-heading {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .kana-heading::before {
    height: 28px;
  }

  .kana-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
    column-gap: 12px;
    row-gap: 6px;
  }
  .kana-links li {
    margin-bottom: 2px; 
  }

  .kana-links a {
    font-size: 13px;
    line-height: 1.25;
  }
}

