@charset "UTF-8";
/* About (大豆の歴史) page: fixed header + nav, side menu driven by about.js */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* Keep section headings clear of the fixed header when jumped to. */
.pnt { scroll-margin-top: 141px; }

#container {
  color: #fff;
  background: url(/assets/img/about/bg01.jpg) left top no-repeat #689dee;
}
#main {
  padding: 0 125px 200px;
  background: url(/assets/img/about/bg02.jpg) center bottom no-repeat;
}
#main h1 {
  padding: 45px 0 15px;
  font-size: 36px;
  text-align: center;
}
.block { padding-top: 30px; }
.block h2 {
  padding-bottom: 25px;
  font-size: 24px;
}
.block h3 {
  padding-bottom: 20px;
  font-size: 16px;
}
.block p {
  padding-bottom: 2em;
  font-size: 14px;
  line-height: 2.1;
}

/* Section menu: labels appear on hover; .cur is set by history.js */
#menu a {
  display: block;
  color: #000;
  text-decoration: none;
}

@media (min-width: 641px) {
  #headerWrapper {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 101;
    width: 100%;
  }
  #nav {
    position: fixed;
    left: 50%;
    top: 101px;
    z-index: 102;
    margin-left: calc(var(--content-width) / -2);
    background: #fff;
  }
  #wrapper { padding-top: 141px; }

  #menu {
    position: fixed;
    right: 10px;
    top: 50%;
    z-index: 103;
    margin-top: -3em;
  }
  #menu a {
    padding: 5px 25px 5px 10px;
    text-align: right;
    background: url(/assets/img/about/nav.png) right center no-repeat;
  }
  #menu a:hover,
  #menu a.cur { background-image: url(/assets/img/about/nav_ov.png); }
  #menu a div { opacity: 0; }
  #menu a:hover div { opacity: 1; }
}

@media (max-width: 640px) {
  #wrapper { padding-top: 84px; }
  .pnt { scroll-margin-top: 53px; }
  #main { padding: 0 10px 150px; }
  #main h1 {
    padding: 30px 0 10px;
    font-size: 20px;
  }
  .block { padding-top: 15px; }
  .block h2 {
    padding-bottom: 15px;
    font-size: 16px;
  }
  .block p {
    padding-bottom: 1.5em;
    font-size: 12px;
  }

  /* Three-tab bar under the fixed header */
  #menu {
    position: absolute;
    left: 0;
    top: 53px;
    z-index: 5;
    width: 100%;
    height: 30px;
  }
  #menu ul {
    display: flex;
    font-size: 11px;
  }
  #menu li {
    width: 33%;
    border-left: 1px solid #ddd;
  }
  #menu li:first-child {
    width: 34%;
    border: none;
  }
  #menu a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
  }
}
