@charset "utf-8";

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  color: #2a2a2a;
  background: #fff;
  font-family: "Meiryo", "Hiragino Kaku Gothic Pro", "MS PGothic", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 1020px;
}

img {
  display: block;
  border: 0;
}

a {
  color: #0b5394;
  text-decoration: none;
}

a:visited {
  color: #3d85c6;
}

a:hover,
a:active {
  color: #3d85c6;
  text-decoration: none;
}

button {
  font: inherit;
}

.center-area {
  position: relative;
  width: 1020px;
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 1000;
  padding: 6px 12px;
  background: #fff;
  color: #2a2a2a;
}

.skip-link:focus {
  top: 0;
}

#bg {
  min-width: 1020px;
  background: #fff;
  font-size: var(--site-font-size, 14px);
}

#top-area,
#bottom-area {
  color: #2a2a2a;
}

#top-area a,
#bottom-area a {
  color: #2a2a2a;
}

#top-area a:hover,
#bottom-area a:hover {
  color: #7f7f7f;
}

.header-parts {
  height: 110px;
  background: #fff url("../img/header-bg.png") center top / 2000px 110px no-repeat;
  font-size: 12px;
}

#header {
  height: 110px;
}

#header h1 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  color: #2a2a2a;
  font-size: 88%;
  font-weight: 400;
  line-height: 1.7;
}

.header-logo {
  position: absolute;
  top: 14px;
  left: 105px;
  z-index: 8;
  width: 573px;
  height: 94px;
}

.font-tools {
  position: absolute;
  top: 15px;
  right: 51px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2a2a2a;
}

.font-tools span {
  display: inline-block;
}

.font-btn {
  width: 36px;
  height: 36px;
  padding: 4px 0 0;
  color: #2a2a2a;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  background: #efefef;
  border: 0;
  border-radius: 2px;
}

.font-btn.active {
  color: #efefef;
  background: #2a2a2a;
}

.contact-label {
  position: absolute;
  top: 47px;
  right: 121px;
  z-index: 3;
  margin: 0;
  font-size: 120%;
}

.tel {
  position: absolute;
  top: 69px;
  right: 17px;
  z-index: 4;
  margin: 0;
  font-size: 180%;
  line-height: 1.3;
}

.global-menu {
  position: relative;
  height: 50px;
  background: url("../img/h-menu-bg.png") center top / 2000px 50px repeat-y;
}

.global-menu::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 1px;
  pointer-events: none;
  content: "";
  background: #d5d5d5;
}

.global-menu ul {
  display: flex;
  align-items: stretch;
  height: 50px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.global-menu li {
  position: relative;
  width: 170px;
}

.global-menu li::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  z-index: 3;
  width: 1px;
  pointer-events: none;
  content: "";
  background: #d5d5d5;
}

.global-menu li:last-child::after {
  position: absolute;
  top: 13px;
  right: 0;
  bottom: 13px;
  z-index: 3;
  width: 1px;
  pointer-events: none;
  content: "";
  background: #d5d5d5;
}

.global-menu a {
  display: block;
  width: 170px;
  height: 50px;
  color: #2a2a2a;
  font-weight: 700;
  font-size: 108%;
  line-height: 50px;
  text-align: center;
  background: url("../img/sprite.png") 0 -1px / auto no-repeat;
}

.global-menu a.first {
  background-image: url("../img/h-menu-left.png");
  background-position: left top;
  background-size: 170px 50px;
}

.global-menu a.last {
  background-image: url("../img/h-menu-right.png");
  background-position: right top;
  background-size: 170px 50px;
}

.global-menu a:hover,
.global-menu a:focus {
  color: #7f7f7f;
  background-position: 0 -51px;
}

.global-menu a.first:hover,
.global-menu a.first:focus {
  background-image: url("../img/h-menu-left-hover.png");
  background-position: left top;
}

.global-menu a.last:hover,
.global-menu a.last:focus {
  background-image: url("../img/h-menu-right-hover.png");
  background-position: right top;
}

.catch-visual .slide-container {
  position: relative;
  padding-top: 24px;
  padding-bottom: 52px;
  background: url("../img/catch-bg.png") center top / 2000px 476px no-repeat;
}

.hero-slider {
  position: relative;
  width: 1020px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
}

.hero-slider::after {
  position: absolute;
  inset: -24px calc((1020px - 2000px) / 2) -52px;
  z-index: 3;
  pointer-events: none;
  content: "";
  background: url("../img/catch-frame.png") center top / 2000px 476px no-repeat;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center;
  background-size: cover;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  line-height: 0;
  text-align: center;
}

.slide-dots span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
}

.slide-dots span.active {
  background: #2a2a2a;
}

#middle-area .main-center {
  padding-top: 40px;
  padding-bottom: 80px;
}

.main-area {
  width: 870px;
  margin: 0 auto;
}

.page-title {
  margin: 0 0 20px;
  padding: 5px 0;
  color: #2a2a2a;
  font-size: 222%;
  font-weight: 700;
  line-height: 1.2;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 20px;
  padding: 0;
  color: #2a2a2a;
  font-size: 88%;
  list-style: none;
}

.breadcrumb a {
  color: #0b5394;
}

.subpage-block {
  margin-top: 30px;
}

.subpage-block:first-of-type {
  margin-top: 0;
}

.office-photo {
  width: 550px;
  height: 220px;
  margin: 0 0 30px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 6px 8px;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 160px;
  font-weight: 400;
  white-space: nowrap;
}

.text-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-lines li {
  margin: 0 0 8px;
}

.text-lines li:last-child {
  margin-bottom: 0;
}

.person-block {
  margin-top: 22px;
}

.person-block:first-of-type {
  margin-top: 0;
}

.page-note {
  margin: 0 0 30px;
}

.print-link {
  display: inline-block;
  margin-top: 16px;
  color: #0b5394;
}

.block {
  margin-top: 40px;
}

.block:first-of-type {
  margin-top: 0;
}

.block-title {
  height: 62px;
  margin: 0 0 30px;
  padding: 0 20px 0 22px;
  color: #2a2a2a;
  font-size: 136%;
  font-weight: 700;
  line-height: 62px;
  background: url("../img/block-title.png") left top / 870px 62px no-repeat;
}

.news-list {
  width: 100%;
}

.news-item {
  display: flex;
  align-items: center;
  min-height: 57px;
  border-bottom: 1px dotted rgba(42, 42, 42, 0.5);
}

.news-item time {
  width: 160px;
  padding: 18px 0 18px 5px;
  color: #2a2a2a;
  white-space: nowrap;
}

.news-item time::before {
  display: inline-grid;
  width: 1.2em;
  height: 1.2em;
  margin-right: 10px;
  color: #2a2a2a;
  font-size: 88%;
  line-height: 1.2em;
  text-align: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "▶";
  transform: scale(0.9);
}

.news-item a {
  display: inline-block;
  padding: 18px 0 18px 20px;
  color: #0b5394;
}

.news-item a:hover {
  color: #3d85c6;
}

.important {
  display: inline-block;
  margin-left: 10px;
  padding: 1px 4px;
  color: #fff;
  font-size: 88%;
  line-height: 1.4;
  background: #d90000;
}

.news-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.news-footer a {
  color: #0b5394;
}

.rss::before {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  margin-right: 4px;
  color: #fff;
  font-weight: 700;
  line-height: 1.1em;
  text-align: center;
  vertical-align: -0.1em;
  background: #f59a23;
  content: "R";
}

.policy-item {
  margin-top: 20px;
}

.policy-item:first-of-type {
  margin-top: 0;
}

.record-title {
  height: 50px;
  margin: 0 0 20px;
  padding: 0 20px 0 22px;
  color: #2a2a2a;
  font-size: 115%;
  font-weight: 700;
  line-height: 50px;
  background: url("../img/record-title.png") left top / 870px 50px no-repeat;
}

.policy-item p {
  margin: 0 0 20px;
}

.policy-section {
  margin-top: 26px;
}

.policy-section:first-of-type {
  margin-top: 0;
}

.policy-section h4 {
  margin: 0 0 8px;
  font-size: 100%;
  font-weight: 400;
}

.policy-bullets {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.policy-bullets li {
  margin-bottom: 5px;
}

.policy-list {
  margin: 0;
  padding-left: 2em;
}

.policy-list li {
  margin-bottom: 14px;
}

.policy-contact {
  font-style: normal;
  line-height: 2;
}

.sitemap-intro {
  margin-bottom: 20px;
}

.sitemap-intro p {
  margin: 0 0 8px;
}

.sitemap-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-nav li {
  margin-bottom: 4px;
}

.sitemap-nav a {
  display: block;
  padding: 11px 18px;
  color: #2a2a2a;
  background: #ccc;
}

.sitemap-nav a::before {
  margin-right: 8px;
  content: "▶";
}

.sitemap-nav a:hover {
  color: #fff;
  background: #666;
}

.entry-content {
  margin-top: 28px;
  line-height: 1.9;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content table,
.entry-content figure {
  margin-top: 0;
  margin-bottom: 20px;
}

.entry-content a,
.post-meta a,
.post-tags a,
.post-nav a,
.back-to-list a,
.pagination a {
  color: #0b5394;
}

.entry-content a:hover,
.post-meta a:hover,
.post-tags a:hover,
.post-nav a:hover,
.back-to-list a:hover,
.pagination a:hover {
  color: #3d85c6;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 12px 0;
  border-top: 1px dotted rgba(42, 42, 42, 0.45);
  border-bottom: 1px dotted rgba(42, 42, 42, 0.45);
}

.post-meta time::before {
  margin-right: 6px;
  content: "▶";
}

.post-thumbnail {
  margin: 0 0 24px;
}

.post-thumbnail img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.post-tags {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px dotted rgba(42, 42, 42, 0.35);
}

.page-links {
  margin-top: 24px;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #e3e3e3;
}

.post-nav-next {
  text-align: right;
}

.back-to-list {
  margin: 28px 0 0;
  text-align: center;
}

.archive-description {
  margin: 0 0 28px;
}

.no-posts {
  margin: 0;
  padding: 18px 5px;
  border-bottom: 1px dotted rgba(42, 42, 42, 0.5);
}

.pagination {
  margin-top: 28px;
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-block;
  min-width: 34px;
  padding: 6px 10px;
  text-align: center;
  border: 1px solid #d9d9d9;
}

.pagination span.page-numbers.current {
  color: #fff;
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.link-cards {
  display: grid;
  gap: 20px;
}

.link-card {
  display: flex;
  width: 870px;
  min-height: 206px;
  padding: 5px;
  color: #2a2a2a;
  background: #fff;
  border: 5px solid #ccc;
}

.link-card:visited {
  color: #2a2a2a;
}

.link-card:hover {
  color: #2a2a2a;
}

.link-card img {
  flex: 0 0 248px;
  width: 248px;
  height: 186px;
  object-fit: cover;
}

.card-body {
  position: relative;
  display: block;
  flex: 1;
  width: 592px;
  min-height: 186px;
  margin-left: 10px;
  padding: 3px 8px 36px 0;
}

.card-body strong {
  display: block;
  margin-top: 0;
  margin-bottom: 8px;
  color: #666;
  font-size: 110%;
  font-weight: 400;
}

.card-body span {
  display: block;
  color: #333;
  font-weight: 400;
}

.card-body em {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  color: #666;
  font-size: 80%;
  font-style: normal;
}

.card-body em::before {
  margin-right: 4px;
  content: "▶";
}

#bottom-area {
  background: #fff url("../img/bottom-bg.jpg") center top / 2000px 10px no-repeat;
}

.map-parts {
  padding-top: 40px;
  margin-bottom: 30px;
}

.map-wrap {
  width: 960px;
  margin: 0 auto;
}

.map-embed {
  display: block;
  width: 100%;
  height: 250px;
  margin-top: 10px;
  border: 1px solid #d4d4d4;
}

.map-wrap p {
  margin: 10px 0 0;
}

.link-parts {
  margin-bottom: 30px;
}

.banner-row {
  display: flex;
  justify-content: center;
  width: 960px;
  gap: 243px;
  margin: 0 auto;
}

.footer-menu {
  width: 960px;
  margin: 30px auto 0;
  color: #2a2a2a;
  text-align: center;
  background: #fff url("../img/f-menu-bg.jpg") center top / 2000px 10px no-repeat;
}

.footer-menu a,
.footer-menu span {
  display: inline-block;
  padding-top: 12px;
  color: #2a2a2a;
}

.footer-menu a {
  margin: 0 2px;
}

.footer-parts {
  height: 135px;
  margin-top: 30px;
  color: #2a2a2a;
  background: #fff url("../img/footer-bg.png") center top / 2000px 10px no-repeat;
  font-size: 12px;
}

#footer {
  width: 960px;
  height: 135px;
}

.footer-logo {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 323px;
  height: 53px;
}

.footer-logo img {
  width: 323px;
  height: 53px;
}

.footer-submenu {
  position: absolute;
  top: 21px;
  right: 19px;
  width: 335px;
}

.footer-submenu a {
  display: block;
  color: #2a2a2a;
  line-height: 1.8;
}

.footer-submenu a::before {
  margin-right: 5px;
  content: "▶";
}

.qr {
  position: absolute;
  top: 60px;
  right: 17px;
  width: 70px;
  height: 70px;
}

.address {
  position: absolute;
  top: 83px;
  left: 0;
  margin: 0;
}

.copyright {
  position: absolute;
  top: 104px;
  left: 0;
  margin: 0;
}

#totop-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  width: 60px;
  height: 60px;
  padding: 0;
  cursor: pointer;
  background: transparent url("../img/sprite.png") 0 -193px / auto no-repeat;
  border: 0;
}

#totop-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 1020px) {
  body,
  #bg {
    min-width: 0;
    overflow-x: hidden;
  }

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

  .center-area,
  .main-area,
  .map-wrap,
  .banner-row,
  .footer-menu,
  #footer {
    width: calc(100% - 32px);
    max-width: 960px;
  }

  .header-parts {
    height: auto;
    padding: 6px 0 16px;
    background-size: 2000px 110px;
  }

  #header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 6px 16px;
    height: auto;
  }

  #header h1,
  .header-logo,
  .font-tools,
  .contact-label,
  .tel {
    position: static;
  }

  #header h1 {
    grid-column: 1 / -1;
  }

  .header-logo {
    grid-row: 2 / 5;
    width: min(573px, 100%);
    height: auto;
    align-self: center;
  }

  .header-logo img {
    width: 100%;
    height: auto;
  }

  .font-tools {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .contact-label,
  .tel {
    text-align: right;
  }

  .global-menu {
    height: auto;
    background: #fff;
  }

  .global-menu ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: auto;
  }

  .global-menu li,
  .global-menu a {
    width: auto;
  }

  .global-menu li::before,
  .global-menu li:last-child::after {
    display: none;
  }

  .global-menu a,
  .global-menu a.first,
  .global-menu a.last,
  .global-menu a:hover,
  .global-menu a:focus,
  .global-menu a.first:hover,
  .global-menu a.first:focus,
  .global-menu a.last:hover,
  .global-menu a.last:focus {
    height: 48px;
    line-height: 48px;
    background-image: none;
    border-top: 1px solid #e3e3e3;
  }

  .global-menu li:nth-child(3n + 2) a,
  .global-menu li:nth-child(3n + 3) a {
    border-left: 1px solid #e3e3e3;
  }

  .catch-visual .slide-container {
    padding: 16px 0 42px;
    background-size: cover;
  }

  .hero-slider {
    width: calc(100% - 32px);
    height: auto;
    aspect-ratio: 1020 / 400;
  }

  .hero-slider::after {
    inset: -16px -16px -42px;
    background-size: 100% 100%;
  }

  .slide-dots {
    bottom: 16px;
  }

  #middle-area .main-center {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .block-title,
  .record-title {
    width: 100%;
    background-size: 100% 100%;
  }

  .link-card {
    width: 100%;
  }

  .card-body {
    width: auto;
  }

  .banner-row {
    gap: 40px;
  }

  .footer-parts {
    height: auto;
    padding: 20px 0 18px;
  }

  #footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px;
    gap: 10px 20px;
    height: auto;
  }

  .footer-logo,
  .footer-submenu,
  .qr,
  .address,
  .copyright {
    position: static;
  }

  .footer-logo {
    width: 323px;
    height: auto;
  }

  .footer-submenu {
    grid-column: 1 / 2;
    width: auto;
  }

  .qr {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: start;
  }

  .address,
  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .center-area,
  .main-area,
  .map-wrap,
  .banner-row,
  .footer-menu,
  #footer {
    width: calc(100% - 24px);
  }

  .header-parts {
    padding-bottom: 12px;
  }

  #header {
    display: block;
    text-align: center;
  }

  #header h1 {
    text-align: left;
  }

  .header-logo {
    display: block;
    width: min(573px, 100%);
    margin: 8px auto 4px;
  }

  .font-tools {
    justify-content: center;
    margin-top: 4px;
  }

  .contact-label,
  .tel {
    text-align: center;
  }

  .tel {
    font-size: 170%;
  }

  .global-menu ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .global-menu li:nth-child(n) a {
    border-left: 0;
  }

  .global-menu li:nth-child(even) a {
    border-left: 1px solid #e3e3e3;
  }

  .hero-slider {
    width: calc(100% - 24px);
    aspect-ratio: 765 / 300;
  }

  .hero-slide {
    background-size: cover;
  }

  .page-title {
    font-size: 180%;
  }

  .block-title,
  .record-title {
    height: auto;
    min-height: 50px;
    padding: 14px 16px;
    line-height: 1.45;
    background-image: none;
    background-color: #f0f0f0;
  }

  .news-item {
    display: block;
    min-height: 0;
    padding: 14px 0;
  }

  .news-item time {
    display: block;
    width: auto;
    padding: 0 0 6px 5px;
  }

  .news-item a {
    padding: 0 5px 0 32px;
  }

  .important {
    margin-top: 4px;
    margin-left: 32px;
  }

  .post-meta {
    display: block;
  }

  .post-meta time,
  .post-categories {
    display: block;
    margin-bottom: 6px;
  }

  .post-meta .important {
    margin-left: 0;
  }

  .post-nav {
    display: block;
  }

  .post-nav-next {
    margin-top: 12px;
    text-align: left;
  }

  .link-card {
    display: block;
    min-height: 0;
  }

  .link-card img {
    width: 100%;
    height: auto;
  }

  .card-body {
    min-height: 0;
    margin-left: 0;
    padding: 10px 8px 34px;
  }

  .office-photo {
    width: 100%;
    height: auto;
  }

  .info-table,
  .info-table tbody,
  .info-table tr,
  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table tr {
    padding: 8px 0;
    border-bottom: 1px dotted rgba(42, 42, 42, 0.3);
  }

  .info-table th,
  .info-table td {
    padding: 2px 0;
    white-space: normal;
  }

  .map-embed {
    height: 210px;
  }

  .banner-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-menu {
    padding-top: 8px;
    line-height: 2;
  }

  .footer-menu a,
  .footer-menu span {
    padding-top: 0;
  }

  #footer {
    display: block;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 12px;
  }

  .footer-submenu {
    margin: 0 0 10px;
  }

  .qr {
    margin: 0 auto 10px;
  }

  #totop-btn {
    right: 10px;
    bottom: 10px;
    transform: scale(0.82);
    transform-origin: right bottom;
  }
}
