@charset "UTF-8";

:root {
  --black: #3e3e3e;
  --white: #fdfdfd;
  --gray: #888888;
  --bgGray: #eeeeee;
  --blue: #1d2088;
  --blackShadow: 0 0 1px rgb(0 0 0 / 80%), 0 -1px 1px rgb(0 0 0 / 80%),
    0 1px 1px rgb(0 0 0 / 80%), -1px 0px 1px rgb(0 0 0 / 80%),
    1px 0px 1px rgb(0 0 0 / 80%), -1px -1px 1px rgb(0 0 0 / 80%),
    -1px 1px 1px rgb(0 0 0 / 80%), 1px -1px 1px rgb(0 0 0 / 80%),
    1px 1px 1px rgb(0 0 0 / 80%);
}

html {
  font-size: 16px;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Helvetica Neue", Arial, "BIZ UDPGothic",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: 0.2s opacity;
}

a:hover,
button:hover {
  opacity: 0.7;
}

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

button,
input,
textarea {
  font-size: inherit;
  font-family: inherit;
}

button {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: 0.2s opacity;
}

input,
textarea {
  width: 100%;
  border: none;
  padding: 0.25em 0.5em;
}

picture {
  width: 100%;
  height: 100%;
}

textarea {
  resize: vertical;
}

tr {
  border-bottom: 1px solid var(--black);
}

th,
td {
  padding: 0.25em 0;
  text-align: left;
}

img {
  height: 100%;
}

h2 {
  position: relative;
  border-top: solid 0.2em var(--gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 0.2em;
  margin-bottom: 0.5em;
}

h2::before {
  content: "";
  border-top: solid 0.2em var(--blue);
  position: absolute;
  left: 0;
  top: -0.2em;
  width: 8em;
  height: 0.2em;
}

.contents {
  position: relative;
  z-index: 1;
  max-width: 1024px;
  margin: 0 auto;
}

header {
  padding: 1em 1em 0 1em;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  text-shadow: var(--blackShadow);
}

header > div {
  max-width: 1280px;
  margin: 0 auto 1em;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img:nth-of-type(1) {
  width: 4em;
}

.logo img:nth-of-type(2) {
  width: 8em;
  filter: drop-shadow(0 0 0.1em rgba(0, 0, 0, 0.8))
    drop-shadow(0 0 0.1em rgba(0, 0, 0, 0.8));
}

header > div a:nth-of-type(2) {
  margin-left: auto;
  width: 11em;
}

header > div a:nth-of-type(2) img {
  filter: drop-shadow(0 0 0.2em rgba(0, 0, 0, 0.8));
}

#menuBg,
header button {
  display: none;
}

header ul {
  display: flex;
  align-items: center;
  border-bottom: solid 0.3em var(--white);
}

header li {
  text-align: center;
}

header li a {
  display: block;
  padding: 0.5em 2em;
  color: var(--white);
}

main {
  overflow-x: hidden;
}

footer {
  padding: 1.5em 1em;
  background: var(--blue);
  font-size: 0.9em;
  position: relative;
  z-index: 1;
}

footer,
footer a {
  color: var(--white);
}

footer nav {
  max-width: 1024px;
  margin: 0 auto 1em;
}

footer ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer li:not(:last-of-type) {
  margin-right: 2em;
}

footer > div {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer > div a {
  width: 10em;
}

footer > div a:nth-of-type(1) {
  margin-right: 2em;
}

#toTop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3em;
  height: 3em;
  position: fixed;
  bottom: -5em;
  right: 1em;
  z-index: 1;
  background: var(--blue);
  border-radius: 0.5em;
  opacity: 0.6;
  transition: bottom 0.2s ease-out, opacity 0.2s;
  cursor: pointer;
}

#toTop.active {
  bottom: 1em;
}

#toTop:hover {
  opacity: 0.8;
}

.link {
  display: inline-flex;
  align-items: center;
}

.link::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.5em 0 0.5em 1em;
  border-color: transparent transparent transparent var(--blue);
  margin-right: 0.2em;
}

h2 .link {
  font-weight: normal;
  font-size: 0.7em;
}

.btn {
  display: inline-flex;
  align-items: center;
  background: var(--blue);
  color: var(--white);
  padding: 0.5em 1.5em;
  border-radius: 0.3em;
  box-shadow: 0 0.1em 0.2em rgba(0, 24, 104, 0.5);
  line-height: 1;
}

.arrow {
  border-style: solid;
  border-width: 0.4em 0 0.4em 0.8em;
  border-color: transparent transparent transparent var(--white);
  margin-right: 0.4em;
}

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

section {
  padding: 4em 1em;
  position: relative;
}

section:nth-of-type(odd) {
  background: var(--white);
}

section:nth-of-type(even) {
  background: var(--bgGray);
}

.breadcrumb ul {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
}

.breadcrumb a {
  display: flex;
  align-items: center;
  padding: 0.5em;
}

.breadcrumb li:not(:first-of-type) a::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4em 0 0.4em 0.8em;
  border-color: transparent transparent transparent var(--blue);
  margin-right: 0.5em;
}

.breadcrumb li:last-of-type a {
  pointer-events: none;
  cursor: default;
}

.topimg {
  height: 50vh;
  padding: 0;
  position: relative;
}

.topimg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.topimg h1 {
  font-family: "Shippori Mincho B1", serif;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 2.5em;
  text-shadow: 0.05em 0.05em 0.2em black;
  z-index: 1;
  white-space: nowrap;
}

.topimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-attachment: fixed;
}

.contact {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  display: -ms-grid;
  -ms-grid-columns: 50% 50%;
  -ms-grid-rows: auto;
  margin-top: 1em;
}

.contact dl:nth-of-type(-n + 3) {
  margin-right: 1em;
}

.contact dl:nth-of-type(-n + 2) {
  margin-bottom: 1em;
}

.contact dl:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
  -ms-grid-column: 1;
  -ms-grid-row: 1;
}

.contact dl:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2;
  -ms-grid-column: 1;
  -ms-grid-row: 2;
}

.contact dl:nth-of-type(3) {
  grid-column: 1;
  grid-row: 3;
  -ms-grid-column: 1;
  -ms-grid-row: 3;
}

.contact dl:nth-of-type(4) {
  grid-column: 2;
  grid-row: 1 / 4;
  -ms-grid-column: 2;
  -ms-grid-row: 1;
  -ms-grid-row-span: 3;
  margin-left: 1em;
}

.contact dl:nth-of-type(4) dd {
  height: 100%;
  padding-bottom: 1.5em;
}

.contact textarea {
  height: 100%;
}

.contact .btn {
  grid-column: 1 / 3;
  grid-row: 4;
  -ms-grid-column: 1;
  -ms-grid-column-span: 3;
  -ms-grid-row: 4;
  margin: 1.5em auto 0;
}

.recruit {
  margin-top: 1em;
}

.recruit p {
  text-align: left;
}

.recruit table {
  float: left;
  width: calc(50% - 1em);
  margin-right: 2em;
}

.recruit ~ .btn {
  clear: both;
  display: flex;
  justify-content: center;
  margin: 3em auto 0;
  width: 21em;
}

.bg,
.bg::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bg {
  overflow: hidden;
  transform: rotate(-6deg) scale(1.3);
}

.bg::before {
  content: "";
  transform: rotate(6deg) scale(1.3);
  background: no-repeat center;
  background-size: cover;
}
