@charset "UTF-8";

/* Layout */
html {
  overflow-y: scroll; /* スクロールバーを常に表示 */
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;

  margin: 0;
}

header {
  padding: 0;
}

footer {
  padding: 1ex;
}

#header_wrapper,
#footer_wrapper {
  max-width: 840px;
  margin: 0 auto;
  padding: 0;
  text-align: initial;
}

#logo_holder {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 1em;
  margin: 1ex;
}

#logo_holder #logo {
  align-self: flex-start;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#logo_holder nav {
  margin-left: auto;

  display: flex;
  flex-direction: column;
  align-self: flex-end;
  text-align: right;
}

#logo_holder nav ul {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 1ex;

  text-align: right;
}

#logo_holder nav ul:last-child {
  padding-bottom: 0;
}

#logo_holder nav ul li {
  display: inline;
  padding: 0;
  margin-right: 1ex;
}

#logo_holder nav ul li:last-child {
  margin-right: 0;
}

#breadcrumb {
  margin: 1ex;
  padding: 0;
  list-style: none;
}

#breadcrumb li {
  display: inline;
  /*横に並ぶように*/
  list-style: none;
}

#aspect_16_9 {
  position: relative;
  width: 100%;
}

#aspect_16_9:before {
  content: "";
  display: block;
  padding-top: 56.25%;
  /* 高さと幅の比を16:9に固定。9/16*100=56.25 */
}

#aspect_16_9 * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#content {
  flex-grow: 1;
  width: min(760px, 100vw);
  align-self: center;
}

/* decoration. */
body {
  background-color: white;
}

header {
  background-color: #ccc;
  box-shadow: 0 2px 1ex rgba(0, 0, 0, 0.6);
}

footer {
  background-color: #ccc;
}

#breadcrumb li:after {
  content: ' > ';
  color: #333;
}

#breadcrumb li:last-child:after {
  content: '';
}

a:link,
a:visited {
  color: #33f;
  text-decoration: none;
}

a:hover,
a:active {
  color: black;
  background-color: #ccc;
  text-decoration: underline;
}

nav a:hover,
nav a:active {
  background-color: inherit;
}

header a {
  font-weight: bold;
}

img,
iframe {
  max-width: 100%;
}

a[target=_blank]::after {
  content: '';
  margin: 0 1px;

  display: inline-block;
  height: 1em;
  width: 1em;
  background-image: url(/image/a_external_link.svg);
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

a[href^="mailto:"]::after {
  content: '';
  margin: 0 1px;

  display: inline-block;
  height: 1em;
  width: 1em;
  background-image: url(/image/a_mail.svg);
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

h2 {
  padding-top: .5em;
  border-bottom: 1px solid #ccc;
  border-left: .5ex solid #ccc;
  padding-left: .5ex;
}

h3::before {
  content: '■ ';
  color: #ccc
}

dt {
  margin-top: 0.5em;
  text-decoration: underline;
}

dt:first-child {
  margin-top: auto;
}

dd ul {
  margin-top: 0px;
  padding-left: 0px;
}

dd p:first-child {
  margin-top: auto;
}

.required {
  color: red;
}

.required::before {
  content: '*';
}

.alert {
  border: black 1px solid;
  background: bisque;
  color: red;
  font-weight: bold;
}