/* Shared presentation fixes for the legacy table-based pages. */
html { overflow-y: scroll; }

body {
  margin: 0;
  padding: 0;
  border-top: 4px solid #008000;
  color: #333;
  background: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.site-header {
  box-sizing: border-box;
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 8px;
}

.site-header-top {
  display: flex;
  box-sizing: border-box;
  height: 77px;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.site-logo img { display: block; width: 197px; height: 77px; }

.site-tagline {
  display: block;
  width: 286px;
  height: 20px;
  margin-right: 16px;
}

.site-nav {
  display: flex;
  box-sizing: border-box;
  width: 630px;
  max-width: 100%;
  margin: 0 0 0 auto;
  min-height: 34px;
  border: 1px solid #cfd3d1;
  border-top: 2px solid #008000;
  background: linear-gradient(#fff, #eceeed);
}

.site-nav a {
  box-sizing: border-box;
  flex: 1;
  min-height: 32px;
  padding: 8px 14px 7px;
  border-right: 1px solid #d9dfdb;
  color: #2e3933;
  background: linear-gradient(#fff, #eceeed);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.site-nav a:first-child { border-left: 1px solid #d9dfdb; }
.site-nav a:hover,
.site-nav a:focus {
  color: #173b27;
  background: linear-gradient(to bottom, #fff 0%, #eff9ef 35%, #72c272 68%, #008000 100%);
}
.site-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(#149414, #006b00);
}

/* These two legacy pages already have the global top rule; suppress duplicates. */
td.head,
.page-top td.head,
.page-work td.head { background: none !important; }

.page-top .site-nav {
  position: relative;
  padding: 0 !important;
  border-left: 1px solid #cfd3d1 !important;
  border-bottom: 1px solid #cfd3d1 !important;
  box-shadow: none !important;
}

.page-top .site-nav::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: -5px;
  left: -9px;
  height: 4px;
  background: #fff;
  pointer-events: none;
}

.page-top td.head {
  border: 0 !important;
  background: none !important;
}

.page-top .site-nav a {
  margin-bottom: 0 !important;
}

.page-top .site-nav a:first-child {
  margin-left: 0 !important;
  border-left: 1px solid #d9dfdb !important;
}

/* Broken image backgrounds in the copied *_files stylesheets are replaced here. */
td.menu_head {
  box-sizing: border-box;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(#149414, #006b00) !important;
}

td.menu_left { border-left: 1px solid #c6cbc8; background: #f4f5f4 !important; }
td.menu_right { border-right: 1px solid #c6cbc8; background: #f4f5f4 !important; }

.side-nav {
  box-sizing: border-box;
  width: 152px;
  margin: 24px auto 0;
  border: 1px solid #c7cec9;
  border-radius: 6px;
  overflow: hidden;
  background: #f7f8f7;
  font-size: 14px;
  line-height: 1.4;
}

.side-nav-title {
  box-sizing: border-box;
  height: 62px;
  padding: 11px 12px 8px;
  color: #fff;
  background: #008000;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .28);
}

.side-nav-title small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .04em;
}

.side-nav a {
  display: flex;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid #d6dbd8;
  align-items: center;
  color: #344039;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.side-nav a::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #008000;
  flex: 0 0 auto;
}

.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover,
.side-nav a:focus {
  color: #173b27;
  background: linear-gradient(to bottom, #fff 0%, #eff9ef 34%, #72c272 70%, #008000 100%);
}
.side-nav a[aria-current="page"] { color: #fff; background: #008000; }
.side-nav a[aria-current="page"]::before { border-left-color: #fff; }

/* Hide the inconsistent legacy table footer; a shared semantic footer follows. */
td.foot { display: none !important; }

.site-footer {
  box-sizing: border-box;
  position: relative;
  left: 50%;
  width: 100vw;
  min-height: 100px;
  margin: 32px -50vw 0;
  color: #666;
  background: #eff1f0 url('../image/foot.gif') repeat;
}

.site-footer-inner {
  display: flex;
  box-sizing: border-box;
  width: 800px;
  max-width: 100%;
  min-height: 100px;
  margin: 0 auto;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.site-footer-copy-ja {
  width: 390px;
  font-size: 14px;
  line-height: 1.65;
}

.site-footer-copy-en {
  width: 360px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.related-main {
  box-sizing: border-box;
  width: 630px;
  min-height: 300px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

.related-company-banner,
.related-section-title,
.related-title-underlay {
  display: block;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.related-company-banner { margin-bottom: 20px; }
.related-title-underlay { margin-top: 0; }

.related-main #contents {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 18px 70px 0;
}

.related-main #kokunai {
  float: none;
  width: auto;
}

.related-main #link01 ul { margin: 0; padding: 0; }
.related-main #link01 li { font-size: 85%; line-height: 160%; list-style: none; }

.legacy-menu-finish {
  height: 8px;
  border: 1px solid #c6cbc8;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background: #e5e7e6;
}

.home-hero {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 24px;
  padding: 24px 0 20px;
  border-top: 0;
  border-bottom: 1px solid #d8ddda;
  color: #333;
  background: #fff;
  text-align: center;
}

.home-hero img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.home-hero img + img { margin-top: 18px; }
.home-hero img:first-child { width: 630px; }

.shared-company-banner {
  display: block;
  box-sizing: border-box;
  width: 630px;
  max-width: none;
  height: auto;
  margin: 0;
}

.access-map-frame {
  box-sizing: border-box;
  width: 565px;
  max-width: 100%;
  height: 390px;
  border: 1px solid #c9cfcb;
}

.map-actions { margin: 12px 0 20px; text-align: center; }
.map-actions a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 4px;
  color: #fff;
  background: #008000;
  font-weight: 700;
  text-decoration: none;
}
.map-actions a:hover,
.map-actions a:focus { background: #006b00; }
