:root {
  --schoollogo-height-sp: 35px;
  --schoollogo-height-pc: 48px;
  
  --kadokawa-area-height: 28px;
  --schoolcopy-height-sp: calc((18px * 2) + 6px);
  --schoolcopy-height-pc: 24px;
  
  --vantan-header-position: relative;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

#vantan-header {
  background-color: white;
  padding: 0 12px 8px;
  position: var(--vantan-header-position);
  top: 0;
  margin-top: calc( var(--kadokawa-area-height) + var(--schoolcopy-height-sp)  + var(--schoollogo-height-sp) + 4px );
  z-index: 2;
}
.vantan-header-bg{
  background-color: white;
  position: absolute;
  width: 100%;
  left: 0;
  top: calc( (var(--kadokawa-area-height) + var(--schoolcopy-height-sp)  + var(--schoollogo-height-sp) + 4px ) * -1);
  height: calc( (var(--kadokawa-area-height) + var(--schoolcopy-height-sp)  + var(--schoollogo-height-sp) + 6px ));
}
#vantan-header #kadokawa-logo {
  padding: 6px 0 4px;
  font-family: sans-serif;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  top: calc( (var(--kadokawa-area-height) + var(--schoolcopy-height-sp)  + var(--schoollogo-height-sp) + 4px ) * -1);
  width: calc( 100% - 24px );
  border-bottom: solid 1px #e5e5e5;
}
#vantan-header #jpx-logo {
  line-height:1;
  width:40px;
  margin: 0 8px 0 0;
  flex-basis: 40px;
  top: calc( var(--kadokawa-area-height) * -1);
  display: none;
}
#vantan-header #jpx-logo img{
  width:40px;
  min-width: 40px;
  top: calc( var(--kadokawa-area-height) * -1);
  display: none;
}
#vantan-header #jpx-cap {
  text-align: left;
  font-size: 9px;
  line-height:1.5;
  flex-basis: auto;
  margin: 0 30px 0 0;
  display: none;
}
#vantan-header #kadokawagroup-logo {
  text-align: right;
  line-height:1;
  flex-basis: 101px;
  width: 101px;
  margin: 0 0 0 auto;
  height: 11px;
}
#vantan-header #kadokawagroup-logo img{
  width: 101px;
  height: 11px;
  vertical-align: top;
  line-height: 0;
}
#vantan-header #vantan-logo {
  border-top: solid 1px #e5e5e5;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .5rem;
  border-top: none;
  padding-top: 8px;
}
#vantan-header #vantan-logo h1 {
  position: absolute;
  top: calc((var(--schoollogo-height-sp) + 4px)*-1 );
}
#vantan-header #vantan-logo img {
  display: block;
  width: auto;
  height: var(--schoollogo-height-sp);
}
#vantan-header #vantan-logo span{
  line-height:1;
  display: block;
  font-family: sans-serif;
  color: #000;
}
#vantan-header #vantan-logo a{
  text-decoration: none;
}
#vantan-header p.logocopy{
  font-size:13px;
  font-weight: normal;
  font-family: sans-serif;
  text-align: left;
  height: var(--schoolcopy-height-sp);
  position: absolute;
  top: calc( (var(--schoolcopy-height-sp) + var(--schoollogo-height-sp) + 4px) * -1 );
  white-space: nowrap;
  line-height: 1.3;
}
#vantan-header p.logoheadline {
  display: inline-block;
  font-size: 13px;
  font-weight: normal;
  font-family: sans-serif;
  padding-top: 0;
  padding-left: 2.75rem;
  text-indent: -2.75rem;
  line-height: 1.2;
}

#vantan-main {
  flex-grow: 1;
  z-index: 1;
}

#vantan-footer {
  background-color: white;
  height: auto;
  padding: 11px 18px;
}
#vantan-footer .vantan-footer-copyright {
  text-align: center;
  line-height: 1;
}
#vantan-footer .vantan-footer-copyright img {
  display: inline-block;
  width: 65px;
  margin: 0 auto 12px;
}
#vantan-footer .vantan-footer-copyright p {
  font-size: 12px;
  line-height: 1;
}

@media screen and (max-width: 375px) {
  #vantan-header p.logocopy{
    font-size:11px;
  }
}
@media screen and (min-width: 768px) {
  #vantan-header {
    padding:18px;
    margin-top:  calc( var(--kadokawa-area-height) + var(--schoolcopy-height-pc) - 10px );
  }
  .vantan-header-bg{
    top: calc( (var(--kadokawa-area-height) + var(--schoolcopy-height-pc) - 10px) *-1 );
    height: calc( var(--kadokawa-area-height) + var(--schoolcopy-height-pc) - 5px );
  }
  #vantan-header #kadokawa-logo {
    margin: 0 auto;
    max-width: 1404px;
    top: calc( (var(--kadokawa-area-height) + var(--schoolcopy-height-pc) - 10px) *-1 );
    left: 50%;
    transform: translateX(-50%);
    width: calc( 100% - 36px );
  }
  #vantan-header #vantan-logo {
    margin: 0 auto;
    max-width: 1404px;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    padding:0;
    
  }
  #vantan-header #vantan-logo h1 {
    display: block;
    position: inherit;
    top: 0;
  }
  #vantan-header #vantan-logo img {
    height: var(--schoollogo-height-pc);
  }
  #vantan-header p.logocopy{
    font-size:13px;
    height: var(--schoolcopy-height-pc);
    top: calc( (var(--schoolcopy-height-pc) - 8px ) * -1 );
    margin: 0 auto;
    width: calc( 100% - 36px );
    max-width: 1404px;
    left: 50%;
    transform: translateX(-50%);
  }
  #vantan-header p.logocopy br{
    display: none;
  }

  #vantan-footer > * {
    max-width: 1404px;
  }
  #vantan-footer .vantan-footer-copyright {
    margin: 0 auto;
  }
  #vantan-footer .vantan-footer-copyright img {
    width: 100px;
  }
}
#vantan-footer {
  height: auto;
}
#vantan-footer .vantan-footer-sns {
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0 auto;
  padding-bottom: 18px;
  border-bottom: solid 1px #e5e5e5;
}
#vantan-footer .vantan-footer-sns li {
  margin-right: 1rem;
}
#vantan-footer .vantan-footer-sns li:last-child {
  margin-right: 0;
}
#vantan-footer .vantan-footer-sns li a {
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  padding-top: 28px;
}
#vantan-footer .vantan-footer-sns li a.icon-instagram {
  background-image: url("../img/icon_instagram.svg");
}
#vantan-footer .vantan-footer-sns li a.icon-facebook {
  background-image: url("../img/icon_facebook.svg");
}
#vantan-footer .vantan-footer-sns li a.icon-twitter {
  background-image: url("../img/icon_twitter.svg");
}
#vantan-footer .vantan-footer-sns li a.icon-tiktok {
  background-image: url("../img/icon_tiktok.svg");
}
#vantan-footer .vantan-footer-sns li a.icon-line {
  background-image: url("../img/icon_line.svg");
}
#vantan-footer .vantan-footer-sitemap {
  padding-top: 18px;
  padding-bottom: 18px;
  border-bottom: solid 1px #e5e5e5;
  margin: 0 auto 18px;
  font-family: sans-serif;
  line-height: 1.8;
}
#vantan-footer .vantan-footer-sitemap h2 {
  font-size: 14px;
  margin-bottom: 18px;
}
#vantan-footer .vantan-footer-sitemap div section {
  margin-bottom: 12px;
}
#vantan-footer .vantan-footer-sitemap div section:last-child {
  margin-bottom: 0;
}
#vantan-footer .vantan-footer-sitemap div section p {
  font-size: 12px;
  color: #666;
}
#vantan-footer .vantan-footer-sitemap div section h3 {
  font-size: 13px;
}
#vantan-footer .vantan-footer-sitemap div section ul {
  display: flex;
  list-style: none;
  font-size: 12px;
}
#vantan-footer .vantan-footer-sitemap div section ul li {
  margin-right: 0.5rem;
}
#vantan-footer .vantan-footer-sitemap div section ul li:last-child {
  margin-right: 0;
}
#vantan-footer .vantan-footer-sitemap div section ul li a {
  position: relative;
  padding-right: 1.2em;
  text-decoration: none;
  color: black;
  white-space: nowrap;
}
#vantan-footer .vantan-footer-sitemap div section ul li a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 1em;
  height: 1em;
  margin-left: 0.2rem;
  background: url("../img/icon_window.svg");
  background-size: contain;
}
#vantan-footer .vantan-footer-sitemap div section ul li a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 768px) {
  #vantan-footer .vantan-footer-sitemap {
    padding-bottom: 4px;
  }
  #vantan-footer .vantan-footer-sitemap div {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  #vantan-footer .vantan-footer-sitemap div section {
    margin-right: 2rem;
    margin-bottom: 1rem;
  }
  #vantan-footer .vantan-footer-sitemap div section:last-child {
    margin-right: 0;
  }
}
