@import url("https://use.typekit.net/cbk3csa.css");

/* Common
-------------------------*/
:root {
  --bg: #ffffff;
  --fg: #525252;
  --main-color: #035f7a;
  --sub-color: #ac9866;
  --main-lighter-color: #d8ecea;
  --back-color: #f6f6f6;
  --line-color: #d9d9d9;
  --tab-color: #e6e6e6;
  --table-color: #389195;
  --table-lighter-color: #d8ecea;
  --table-total-color: #f0f0f0;
  --muted: #6b7280;
  --accent: #2563eb;
  --header-height: 96px;
  --header-sp-height: 56px;
}

html {
  font-size: 62.5%;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  color: var(--fg);
  font-size: 1.6rem;
  font-family:
    "Meiryo", "Verdana", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
    "Osaka", "ＭＳ Ｐゴシック", "sans-serif";
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  margin: 0;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

a {
  color: var(--main-color);
  font-weight: 500;
  text-decoration-line: underline;
  transition: all 0.4s ease;
}

a:hover {
  text-decoration: none;
}

p {
  margin: 0;
}

ul,
ol,
dl,
li,
dt,
dd {
  list-style: none;
  padding: 0;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1312px;
  padding: 0 16px;
  margin: 0 auto;
}

.en {
  font-family: "Poppins", sans-serif;
}

.mincho {
  font-family: "Noto Serif JP", serif;
}

::selection {
  background: var(--main-color);
  color: #fff;
}

/* Header
-------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  max-width: inherit;
  width: 100%;
  height: var(--header-height);
  padding: 0 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-logo a:hover {
  opacity: 0.7;
}

.header-logo p {
  color: var(--main-color);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid var(--main-color);
  padding: 6px 8px;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

/* navigation */

.nav-links {
  display: block;
  height: 100%;
}

.nav-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.nav-links-item {
  height: 100%;
}

.nav-links-item > a {
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  height: 100%;
  padding: 8px 0;
}

.nav-links-item > a span {
  padding: 0 8px;
}

.nav-links-item > a::before {
  content: "";
  position: absolute;
  left: calc(50% - 12px);
  bottom: 0px;
  z-index: -1;
  display: block;
  width: 1px;
  height: 1px;
  border-width: 0 12px 16px 12px;
  border-style: solid;
  border-color: transparent transparent var(--main-color) transparent;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-links-item.current > a,
.nav-links-item:has(.nav-submenu-item.current) > a,
.nav-links-item:hover > a,
.nav-links-item:focus-visible > a {
  color: var(--main-color);
}

.nav-links-item:hover > a span {
  background-color: #d7ecea;
}

.nav-links-item:hover > a::before,
.nav-links-item:focus-visible > a::before {
  opacity: 1;
}

.nav-links-item--has-children:focus-within > .nav-submenu-wrapper,
.nav-links-item--has-children:hover > .nav-submenu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* sub-navigation */

.nav-submenu-wrapper {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 8px 16px 16px;
  background: #fff;
  border-top: 6px solid var(--main-color);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.nav-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5等分 */
  gap: 0 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-submenu-item.wide {
  grid-column: span 2;
}

.nav-submenu-item a {
  display: block;
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 0 16px 8px;
}

.nav-submenu-item a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--main-color);
  border-right: 2px solid var(--main-color);
  transform: rotate(-45deg);
  margin-right: 16px;
}

.nav-submenu-item a:hover,
.nav-submenu-item.current a,
.nav-submenu-item a:focus-visible {
  color: var(--main-color);
}

.nav-submenu-item a:hover {
  background-color: #d7ecea;
}

/* header-icons */

.header-icons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 100%;
}

.header-icons__item {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--main-color);
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--main-color);
  background-color: #fff;
  transition: background-color 0.4s;
}

.header-icons__item.sp {
  display: none;
  border-color: #fff;
  background-color: transparent;
}

.header-icons__item .sp {
  display: none;
}

.header-icons__item.sp img {
  filter: brightness(0) invert(1);
}

.header-icons__item:hover {
  background-color: var(--main-lighter-color);
}

.header-search {
  position: absolute;
  right: -24px;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 100%;
  background-color: var(--main-color);
  padding: 0 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.header-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
  height: 40px;
  padding: 8px 12px;
  background-color: #fff;
}

.header-search form .search-icon-button {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search form .search-icon-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-search form #search-input {
  flex: 1;
  color: #000;
  font-size: 1.4rem;
  font-family: "Noto Sans JP", sans-serif;
  width: 100%;
  height: 100%;
  border: 0;
  background-color: transparent;
}

.header-search form #search-input::placeholder {
  color: rgba(0, 0, 0, 0.7);
}

.header-search form #search-input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
  background-color: transparent;
}

@media (min-width: 1025px) {
  .header-search form {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
  }
  .header-search form .search-icon-button img {
    filter: brightness(0) invert(1);
  }
  .header-search form #search-input {
    color: #fff;
  }
  .header-search form #search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }

  .header-search form #search-input:focus {
    outline: none;
    border: 0;
    box-shadow: none;
    background-color: transparent;
  }

  .header-search__button:hover .header-search,
  .header-search__button:focus-within .header-search,
  .header-search:hover,
  .header-search:focus-within {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* hamburger-menu */

.header-hamburger {
  display: none;
  margin-top: -12px;
}

.header-hamburger .hamburger {
  --hamburger-line-thickness: 1px;
  --hamburger-line-gap: 8px;
  --hamburger-line-translate: calc(
    var(--hamburger-line-gap) + var(--hamburger-line-thickness)
  );
  background: transparent;
  border: none;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--hamburger-line-gap);
  width: 64px;
  cursor: pointer;
}

.header-hamburger .hamburger-line {
  display: block;
  width: 32px;
  height: var(--hamburger-line-thickness);
  background: var(--main-color);
  border-radius: 999px;
  transform-origin: center;
  transition:
    transform 0.32s ease,
    opacity 0.24s ease,
    background-color 0.24s ease;
}

.header-hamburger p {
  color: var(--main-color);
  font-size: 1.2rem;
  text-align: center;
  font-weight: 500;
  line-height: 100%;
  text-transform: uppercase;
  width: 100%;
  margin: 0;
}

.header.is-open .header-hamburger .hamburger-line:nth-child(1) {
  transform: translateY(var(--hamburger-line-translate)) rotate(45deg);
}

.header.is-open .header-hamburger .hamburger-line:nth-child(2) {
  transform: scaleX(0);
  opacity: 0;
}

.header.is-open .header-hamburger .hamburger-line:nth-child(3) {
  transform: translateY(calc(-1 * var(--hamburger-line-translate)))
    rotate(-45deg);
}

@media (max-width: 1300px) {
  .header .container {
    position: relative;
    gap: 16px;
    padding: 0 4px 0 16px;
    height: var(--header-sp-height);
  }

  .header-logo img {
    max-width: 200px;
  }

  .header-logo p {
    display: none;
    font-size: 1rem;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 32px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background-color: var(--main-color);
    max-height: calc(100vh - var(--header-sp-height));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
    z-index: 10;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links-list {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-links-item {
    width: 100%;
    height: auto;
  }

  .nav-links-item > a {
    overflow: inherit;
    color: #fff;
    font-weight: 600;
    justify-content: space-between;
    width: 100%;
    height: auto;
    border-bottom: 1px solid #fff;
    padding: 12px 0;
  }

  .nav-links-item:hover > a span {
    background-color: transparent;
  }

  .nav-links-item > a::before {
    content: none;
  }

  .nav-links-item > a::after {
    content: none;
  }

  .nav-links-item.current > a,
  .nav-links-item:has(.nav-submenu-item.current) > a,
  .nav-links-item > a:hover,
  .nav-links-item > a:focus-visible {
    color: #fff;
  }

  .nav-links-item--has-children > a::after {
    content: "";
    display: inline-block;
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
    transition: transform 0.24s ease;
  }

  .nav-links-item--has-children.is-expanded > a::after {
    width: 16px;
    border-right: 0;
    border-bottom-color: #fff;
    transform: rotate(0deg);
    margin-top: -2px;
  }

  .nav-links-item--has-children > .nav-submenu-wrapper {
    position: static;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    overflow: hidden;
    transition:
      max-height 0.32s ease,
      opacity 0.28s ease,
      transform 0.32s ease;
  }

  .nav-links-item--has-children.is-expanded > .nav-submenu-wrapper {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 0;
  }

  .nav-submenu-wrapper {
    border-top: 0;
  }

  .nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
  }

  .nav-submenu-item a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    padding: 8px;
  }

  .nav-submenu-item a:hover,
  .nav-submenu-item a:focus-visible {
    color: #fff;
  }

  .nav-submenu-item.current a {
    color: #fff;
    font-weight: 600;
  }

  .nav-submenu-item a::before {
    content: none;
  }

  .header-icons {
    flex-wrap: wrap;
  }

  .header-icons__item {
    width: 100%;
    border-radius: 0;
  }

  .header-icons__item.pc,
  .header-icons__item .pc {
    display: none;
  }

  .header-icons__item.sp,
  .header-icons__item .sp {
    display: flex;
  }

  .header-fontsize {
    color: #fff;
  }

  .header-fontsize:hover {
    background-color: transparent;
  }

  .header-search__button {
    background-color: transparent;
    border: 0;
    width: 100%;
  }

  .header-search__button > img {
    display: none;
  }

  .header-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    position: static;
    width: 100%;
    padding: 0;
  }

  .header-search form {
    width: 100%;
  }

  .header-hamburger {
    display: block;
  }

  .header.is-open .header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    height: auto;
  }
}

/* Main
-------------------------*/
.main {
  padding-top: var(--header-height);
}

@media (max-width: 1300px) {
  .main {
    padding-top: var(--header-sp-height);
  }
}

/* button */
.button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--main-color);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--main-color);
  border-radius: 32px;
  background-color: #fff;
  min-width: 280px;
  padding: 8px 48px;
  margin: 0 auto;
}

.button:hover {
  background-color: var(--main-lighter-color);
}

.button::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 24px;
  height: 6px;
  background: url(../img/ja/icon-arrow.svg) no-repeat center / contain;
  transform: translateY(-50%);
}

@media (max-width: 1024px) {
  .button {
    min-width: inherit;
    padding: 4px 48px;
  }
  .button::after {
    right: 15px;
  }
}

/* tabs */
.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  position: relative;
  padding: 16px 32px;
  border: none;
  background-color: var(--tab-color);
  color: var(--muted);
  font-size: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.4s ease;
  width: 100%;
}

.tab:hover {
  color: var(--main-color);
}

.tab[aria-selected="true"] {
  color: var(--main-color);
  background-color: #fff;
}

.tab-contents {
  background-color: #fff;
  padding: 40px;
}

@media (max-width: 768px) {
  .tabs {
    margin-top: 24px;
  }

  .tab {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 12px 8px;
  }

  .tab-contents {
    padding: 8px 16px;
  }
}

/* Footer
-------------------------*/
.footer {
  margin-top: 40px;
}

.footer-top-nav {
  background-color: var(--tab-color);
  padding: 32px 24px 36px;
}

.footer-top-nav .nav-links-list {
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top-nav .nav-links-item {
  position: relative;
  width: 20%;
}

.footer-top-nav .nav-links-item > a {
  display: block;
  color: var(--fg);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid #000;
  padding: 8px 0;
}

.footer-top-nav .nav-links-item > a:hover {
  color: var(--main-color);
  background-color: var(--main-lighter-color);
}

.footer-top-nav .nav-links-item > a::before {
  display: none;
}

.footer-top-nav .nav-submenu-wrapper {
  position: static;
  box-shadow: none;
  border-top: 0;
  background: transparent;
  padding: 16px 0 0;
  opacity: 1;
  visibility: visible;
  transform: none;
  max-height: none;
}

.footer-top-nav .nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 8px 24px;
  padding: 0;
  margin: 0;
}

.footer-top-nav .nav-submenu-item {
  border: none;
}

.footer-top-nav .nav-submenu-item a {
  color: var(--fg);
  font-size: 1.4rem;
  padding: 0;
}

.footer-top-nav .nav-submenu-item a:hover {
  color: var(--main-color);
  text-decoration: underline;
  background-color: transparent;
}

.footer-top-nav .nav-submenu-item a::before {
  content: none;
}

.footer-nav {
  background-color: var(--main-color);
  padding: 32px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 0;
}

.footer-nav ul li {
  line-height: 1;
  padding: 0 24px;
}

.footer-nav ul li a {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.footer-nav ul li a:hover {
  text-decoration: underline;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--fg);
  font-size: 1.6rem;
  font-weight: 400;
  max-width: 1312px;
  padding: 32px 16px;
  margin: 0 auto;
  justify-content: center;
}

@media (max-width: 1300px) {
  .footer {
    padding: 0;
  }
  .footer .container {
    padding: 0;
  }
  .footer-top-nav {
    padding: 32px 16px;
  }
  .footer-top-nav .nav-links-list {
    flex-direction: column;
    gap: 16px;
  }
  .footer-top-nav .nav-links-item {
    width: 100%;
  }
  .footer-top-nav .nav-links-item:last-child {
    border-bottom: 0;
  }
  .footer-top-nav .nav-links-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
  }
  .footer-top-nav .nav-links-item > a::after {
    content: "";
    display: inline-block;
    margin-left: auto;
    width: 10px;
    height: 10px;
    background: none;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(45deg);
    transition: transform 0.24s ease;
  }
  .footer-top-nav .nav-links-item.is-expanded > a::after {
    transform: rotate(0deg);
    border-right: 0;
  }
  .footer-top-nav .nav-submenu-wrapper {
    padding: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overflow: hidden;
    transition:
      max-height 0.32s ease,
      opacity 0.28s ease,
      transform 0.32s ease;
  }
  .footer-top-nav .nav-links-item.is-expanded > .nav-submenu-wrapper {
    max-height: 480px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .footer-top-nav .nav-submenu {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 0;
  }
  .footer-nav {
    padding: 24px;
  }
  .footer-copyright {
    font-size: 1.2rem;
    padding: 16px;
    margin: 0;
  }
}

@media (max-width: 768px) {
  .footer-top-nav {
    display: none;
  }
  .footer-nav {
    padding: 0;
  }
  .footer-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .footer-nav ul li,
  .footer-nav ul li:nth-of-type(1) {
    border-left: 0;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 0;
  }
  .footer-nav ul li:nth-of-type(even) {
    border-right: 0;
  }
  .footer-nav ul li a {
    display: block;
    font-size: 1.2rem;
    text-align: center;
    padding: 12px 0;
  }
}

/* Pagetop
-------------------------*/
.pagetop {
  cursor: pointer;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 998;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.pagetop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .pagetop {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
  }
}

.list-unit {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.section ul.list-link {
  margin: 24px 0;
}

.section ul.list-link li::before {
  content: none;
}

/* Print
-------------------------*/
@media print {
  body {
    width: 1280px !important;
    min-width: 1280px !important;
    transform: scale(0.825);
    transform-origin: top left;
    margin: 0;
    padding: 0;
  }
  .header,
  .footer {
    display: none;
  }
  .main {
    padding-top: 0 !important;
  }
  @page {
    size: A4;
    margin: 10mm;
  }
}
