
#header:not( .minimum ) {
  /*width: calc( 100% - ( var( --outline-header-padding ) * 2 ) );*/
  /*margin: var( --outline-header-padding );*/
  margin-bottom: 0;
  position: relative;
}

#header.minimum {
  background-color: var( --main-color );
  margin: 0;
  margin-bottom: 1.0em;
}

#header.minimum > .title > a > img {
  filter: invert(93%) sepia(94%) saturate(1107%) hue-rotate(332deg) brightness(105%) contrast(111%)
}

/* Title */

#header > .title {
  /*background-color: #91d3d9;*/
  padding: 0.5em;
}

#header > .title > a {
  display: inline-block;
}

#header > .title > a > img {
  height: 1.5em;
}

/* Inner Box */

#header:not( .minimum ) > .inner-box {
  background-image: url( '../../images/header/main/background.png' );
  background-size: 100%;
  background-position: top;
  background-repeat: no-repeat;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 0.511;
  /*margin-bottom: clamp( 1.5em, 5%, 3.0em );*/
  margin-bottom: 15%;
  position: relative;
}

#header > .inner-box > .title {
  width: 50%;
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%,0);
}

#header > .inner-box > .title > a {
  display: block;
}

#header > .inner-box > .title > a > img {
  max-width: 100%;
}

#header > .inner-box > .apply {
  width: 60%;
  position: absolute;
  left: 50%; bottom: -17%;
  transform: translateX( -50% );
}

#header > .inner-box > .apply > a {
  display: block;
}

#header > .inner-box > .apply > a > img {
  width: 100%;
}

/* Header - Minimum */

#header > .inner-box > .minimum {
  background-color: var( --main-color );
  width: 100%;
}

#header:not( .minimum ) > .inner-box > .minimum {
  display: none;
}

#header > .inner-box > .minimum > a {
  padding: 0.5em;
  display: inline-block;
}

#header > .inner-box > .minimum > a > img {
  height: 1.5em;
  filter: brightness(0) saturate(100%) invert(83%) sepia(94%) saturate(0%) hue-rotate(164deg) brightness(106%) contrast(105%);
}

#header > .inner-box > .minimum.scroll {
  position: fixed;
  top: 0;
  z-index: 100;
}

/* Header - Apply */

#header > .apply {
  text-align: center;
  margin: 0 25%;
  margin-bottom: 3%;
}

#header > .apply > a.entry {
  /*background-color: var( --button-background-color );*/
  color: var( --button-text-color );
  font-size: clamp( 1.3em, 5vw, 3.0em );
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  border-radius: 0.5em;
  /*padding: 0.4em 0.7em;*/
  /*box-shadow: 3px 3px 2px 0 #999;*/
  display: inline-flex;
  align-items: center;
}

#header > .apply > a > img {
  width: 100%;
}

/* Plan */

body.page-plan #header > .inner-box {
  margin-bottom: 5%;
}

body.page-plan #header > .inner-box > .apply {
  display: none;
  width: 60%;
  position: absolute;
  left: 50%; bottom: -26%;
  transform: translateX( -50% );
}

body.page-plan #header > .inner-box > .apply > img {
  width: 100%;
}

/* Responsive */

@media screen and ( max-width: 480px ) {

  #header > .background {
    background-size: cover;
    background-position: center;
    height: 50vh;
    padding: 0;
  }

  #header > .apply {
    margin-left: 20vw;
    margin-right: 20vw;
  }

}
