/* Home first view */
@font-face {
  font-family: "Kaiyaku Noto Sans JP";
  src: url("../fonts/kaiyaku-home-noto-sans-jp.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.kn-home-masthead {
  --kn-ink: #17343b;
  --kn-text: #32484f;
  --kn-link: #085b70;
  --kn-teal: #08586b;
  --kn-yellow: #ffec69;
  --kn-line: #d6e2e4;
  color: var(--kn-ink);
  font-family: "Kaiyaku Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.65;
}
.kn-home-shell {
  width: min(1100px, calc(100% - 72px));
  margin-inline: auto;
}
.kn-home-masthead {
  position: relative;
  background: var(--kn-teal);
  color: #fff;
  border-top: 4px solid #25b4cf;
}
.kn-home-masthead-inner { min-height: 64px; display: flex; align-items: center; }
.kn-home-masthead .kn-home-brand {
  color: var(--kn-yellow);
  text-decoration: none;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: 1.25;
}
.kn-home-desktop-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 16px);
  border-top: 1px solid #428698;
}
.kn-home-desktop-menu a, .kn-home-menu-list a {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.kn-home-desktop-menu a { padding-block: 13px 15px; }
.kn-home-desktop-menu a:hover, .kn-home-menu-list a:hover { text-decoration: underline; }
.kn-home-mobile-menu { display: none; }
.kn-home-masthead :focus-visible { outline: 3px solid var(--kn-yellow); outline-offset: 4px; }

@media (max-width: 920px) {
  .kn-home-desktop-menu { display: none; }
  .kn-home-masthead-inner { position: relative; justify-content: space-between; }
  .kn-home-mobile-menu { display: block; }
  .kn-home-mobile-menu summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
  }
  .kn-home-mobile-menu summary::-webkit-details-marker { display: none; }
  .kn-home-mobile-menu summary::before {
    content: "";
    width: 16px;
    height: 12px;
    border-block: 2px solid currentColor;
    box-shadow: inset 0 3px var(--kn-teal), inset 0 5px currentColor;
  }
  .kn-home-menu-list {
    position: absolute;
    z-index: 2;
    inset: 100% 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 16px 16px;
    background: var(--kn-teal);
    border-top: 1px solid #428698;
  }
  .kn-home-menu-list a { display: flex; align-items: center; min-height: 44px; }
}

.kn-home-masthead-inner { justify-content: space-between; }
.kn-home-actions { display: flex; align-items: center; gap: 20px; }
.kn-home-masthead .kn-home-search-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.kn-home-search-link:hover { text-decoration: underline; }
.kn-home-search-link::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 3px;
  box-sizing: border-box;
  border: 1.6px solid currentColor;
  border-radius: 100%;
}
.kn-home-search-link::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 9px;
  width: 6px;
  border-top: 1.6px solid currentColor;
  transform: rotate(45deg);
}
@media (max-width: 710px) {
  .kn-home-shell { width: calc(100% - 40px); }
  .kn-home-masthead-inner { min-height: 57px; }
  .kn-home-masthead .kn-home-brand { font-size: 26px; white-space: nowrap; }
}
@media (max-width: 350px) {
  .kn-home-actions { gap: 13px; }
}
