/* =========================================================
   PAS-POL clone: shared styles
   Header, sub-page visual, buttons, sharing area and footer.
   ========================================================= */

@font-face {
  font-family: "Gill Sans Std Book";
  src: url("../fonts/gillsans_book.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #13191b;
  --muted: #656c6e;
  --paper: #f6f6f6;
  --footer-nav: #939899;
  --footer: #656c6e;
  --content-width: 786px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, "Yu Gothic", YuGothic,
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s;
}

a:hover {
  opacity: 0.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--content-width), 80%);
  margin: 0 auto;
}

/* Header and sub-page main visual */
.page-hero {
  position: relative;
  height: 295px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../ui/mainVisual-overlay@2x.png") no-repeat 0 bottom;
  background-size: contain;
  pointer-events: none;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
}

.site-logo {
  position: absolute;
  top: 50px;
  left: 7%;
  width: 266px;
  height: 72px;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: url("../ui/siteLogo-pc@2x.png") no-repeat;
  background-size: 266px 72px;
}

.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
}

.site-nav {
  position: absolute;
  top: 75px;
  right: 7%;
  display: flex;
  gap: 40px;
}

.site-nav a {
  padding-bottom: 8px;
  color: #fff;
  border-bottom: 2px solid transparent;
  font-family: "Gill Sans Std Book", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-color: #fff;
  opacity: 1;
}

/* Section headings */
.page-section {
  padding: 110px 0;
  background: var(--paper);
}

.section-title {
  width: max-content;
  margin: 0;
  padding-bottom: 17px;
  background: url("../ui/sectionTitle-underLine@2x.png") no-repeat 0 bottom;
  background-size: 68px 8px;
  font-family: "Gill Sans Std Book", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
}

.back-area {
  padding: 0 0 110px;
  background: var(--paper);
  text-align: center;
}

.outline-button {
  display: inline-block;
  width: 210px;
  height: 46px;
  border: 1px solid var(--ink);
  font-family: "Gill Sans Std Book", sans-serif;
  font-size: 14px;
  line-height: 44px;
  letter-spacing: 0.1em;
  text-align: center;
}

.outline-button:hover {
  color: #fff;
  background: var(--ink);
  opacity: 1;
}

/* Share area */
.back-top {
  position: relative;
  z-index: 2;
  display: block;
  width: 50px;
  height: 50px;
  margin: -25px auto;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: url("../ui/backTop@2x.png") no-repeat;
  background-size: 50px;
}

.share {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 35px 0;
  background: #fff;
}

.share a {
  width: 162px;
  height: 46px;
  border: 1px solid;
  font-size: 14px;
  line-height: 44px;
  text-align: center;
}

.share-facebook { color: #4871a9; }
.share-twitter { color: #70bdd3; }
.share-hatena { color: #2f9bcd; }

/* Footer */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 30px 0;
  background: var(--footer-nav);
}

.footer-nav a {
  color: #fff;
  font-family: "Gill Sans Std Book", sans-serif;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.site-footer {
  min-height: 159px;
  padding: 35px max(7%, calc((100% - 940px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--footer);
}

.footer-logo {
  width: 90px;
  height: 89px;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: url("../ui/siteLogo-small@2x.png") no-repeat;
  background-size: 90px 89px;
}

.copyright {
  margin: 35px 0 0;
  color: #fff;
  font-family: "Gill Sans Std Book", sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .page-hero {
    height: 340px;
  }

  .site-logo {
    display: none;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 153px;
    left: 50%;
    width: 197px;
    height: 178px;
    transform: translate(-50%, -50%);
    background: url("../ui/siteLogo-sp@2x.png") no-repeat;
    background-size: 197px 178px;
    pointer-events: none;
  }

  .menu-button {
    position: relative;
    z-index: 10;
    display: block;
    height: 45px;
    padding-left: 7%;
    color: var(--muted);
    background: #fff url("../ui/navigation-toggle@2x.png") no-repeat 93% 50%;
    background-size: 15px 11px;
    font-family: "Gill Sans Std Book", sans-serif;
    font-size: 13px;
    line-height: 45px;
    letter-spacing: 0.1em;
  }

  .site-nav {
    position: relative;
    z-index: 9;
    inset: auto;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(0, 0, 0, 0.72);
  }

  .menu-toggle:checked ~ .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 1.2em 7% 1em;
    border-top: 1px solid #fff;
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .page-hero {
    height: 300px;
  }
}

@media (max-width: 580px) {
  .container {
    width: 80%;
  }

  .page-section {
    padding: 70px 0;
  }

  .share {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 35px 10%;
  }

  .share a {
    width: 100%;
    font-size: 12px;
  }

  .footer-nav {
    display: block;
    padding: 0;
  }

  .footer-nav a {
    display: block;
    padding: 1.2em 7% 1em;
    border-top: 1px solid #fff;
    text-align: center;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .copyright {
    margin: 0;
    font-size: 10px;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .page-hero {
    height: 250px;
    margin-top: 45px;
  }

  .site-header {
    top: -45px;
  }

  .site-header::after {
    top: 145px;
    width: 138px;
    height: 120px;
    background-size: 138px 120px;
  }

  .section-title {
    font-size: 30px;
  }
}

@media (max-width: 400px) {
  .page-hero {
    height: 200px;
  }
}

