/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;300&display=swap');


html {
  color: #333333;
  background: #fff;
}
:where(body) {
  font-family:"Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  /* font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif; */
  font-size: 1em;
  line-height: 1.4;
  opacity: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


.inner__wrap {
  margin-right: auto;
  margin-left: auto;
  width: 96%;
}
.head__wrap {
  color: #465585;
}
.head__wrap.head__ct {
  text-align: center;
}
.head__wrap.head__rg {
  text-align: right;
}
.head__wrap span {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1em;
  display: block;
}
.head__wrap strong {
  font-weight: normal;
}

@media(max-width:768px) {

  .inner__wrap {
    width: 90%;
  }
  .head__wrap span {
  font-size: 4.6rem;
  letter-spacing: .06em;
  }
  .head__wrap strong {
    font-size: 1.4rem;
    letter-spacing: .06em;
  }
}

@media(min-width:769px) {

  .inner__wrap {
    max-width: 1100px;
  }
  .head__wrap span {
  font-size: 130px;
  letter-spacing: .06em;
  }
  .head__wrap strong {
    font-size: 16px;
    letter-spacing: .06em;
  }

}



header {
  width: 100%;
  z-index: 9;
}
header .header__fx {
  display: -webkit-flex;
	display: flex;
	-webkit-justify-content: space-between;
	justify-content: space-between;
	-webkit-align-items: center;
	align-items: center;
  margin-right: auto;
  margin-left: auto;
  transition: background .5s;
  background: #ffffff00;
}
.header__fx strong a {
  transition: all .5s;
}
.header__fx strong svg {
  fill:#fff;
  transition: fill .5s;  
}
header button.menu__btn {
  border: 0;
  background: none;
}



@media(max-width:768px) {}
@media(min-width:769px) {}

@media(max-width:845px) {

  html,:where(body) {
    font-size: 10px;
  }
  body.menu__open {
    overflow: hidden;
  }
  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 60px;
  }
  .header__fx {
    height: 60px;
    width: 98%;
    padding: 0 0 0 3%;
    border-radius: 0 0 10px 10px;
  }
  .header__fx strong {
    width: 30%;
    max-width: 120px;
    position: relative;
    z-index: 2;
  }
  .menu__open .header__fx strong svg {
    fill: #465585;
  }
  .nav__wrap {
    position: absolute;
    top: -200%;
    left: 1%;
    width: 98%;
    opacity: 0;
    transition: all .3s;
  }
  .nav__wrap ul {
    width: 90%;
    margin: auto;
  }
  .nav__wrap ul li {
    border-bottom: 1px solid #465585;
  }
  .nav__wrap ul li {
    margin: .5em auto;
  }
  .nav__wrap ul li a {
    display: block;
    font-size: 1.6rem;
    color: #465585;
    text-align: center;
    padding: .5em 0;
    font-weight: bold;
  }
  .menu__open .nav__wrap {
    top: 0;
    opacity: 1;
    height: 100vh;
    background: rgba(255,255,255,.9);
    padding-top: 60px;
  }



  header button.menu__btn {
    position: fixed;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
  }
  .menu__btn span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    font-size: 0;
    transform: translate(-50%, -50%);
  }
  .menu__btn span,
  .menu__btn span:before,
  .menu__btn span:after {
    transition: all .5s;
    background: #fff;
  }
  .menu__btn span:after {
    transform: translateY(-10px);
  }
  .menu__btn span:before {
    transform: translateY(10px);
  }
  .menu__btn span:before,
  .menu__btn span:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
  }
  .scroll .menu__btn span,
  .scroll .menu__btn span:before,
  .scroll .menu__btn span:after,
  .menu__open .menu__btn span,
  .menu__open .menu__btn span:before,
  .menu__open .menu__btn span:after {
    background: #465585;
  }

  .menu__open .menu__btn span:after {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  .menu__open .menu__btn span {
    background: #46558500;
  }
  .menu__open .menu__btn span:before {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }



  header.scroll .header__fx {
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
  }
  .scroll .header__fx strong svg {
    fill:#465585;
  }
  /* .scroll .nav__wrap a span {
    color: #333;
  }
  .scroll .nav__wrap a:before {
    background: #333;
  } */

}

@media(min-width:846px) {

  html,:where(body) {
    font-size: 16px;
  }
  header {
    position: fixed;
    top: 0;
    left: 0;
    height: 90px;
  }

  header .header__fx {
    border-radius: 0 0 10px 10px;
    max-width: 1400px;
    width: 93.34%;
    height: 100%;
    padding: 0 1.2% 0 1.8%;
  }
  .header__fx strong {
    width: 162px;
  }
  .header__fx strong a:hover {
    opacity: .8;
  }
  .header__fx .nav__wrap ul {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: center;
    align-items: center;
  }
  .nav__wrap ul li {
    margin: 0 0 0 .4em;
  }
  .nav__wrap a {
    font-weight: bold;
    padding: 1em .8em;
    position: relative;
    overflow: hidden;
  }
  .nav__wrap a:before {
    background: #fff;
    content: '';
    width: calc(100% - 1em);
    height: 2px;
    position: absolute;
    left: .5em;
    bottom: .5em;
    margin: auto;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
  }
  .nav__wrap a:hover:before {
    transform-origin: left top;
    transform: scale(1, 1);
  }
  .nav__wrap a span {
    color: #fff;
    letter-spacing: .08em;
    transition: color .5s;
    position: relative;
    z-index: 1;
  }
  header button.menu__btn {
    display: none;
  }

  header.scroll .header__fx {
    background: #fff;
    box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
  }
  .scroll .header__fx strong svg {
    fill:#465585;
  }
  .scroll .nav__wrap a span {
    color: #333;
  }
  .scroll .nav__wrap a:before {
    background: #333;
  }

}









footer {
  background: #465585;
  color: #fff;
}
footer .footer__fx {
  margin-right: auto;
  margin-left: auto;
}
.footer__info a {
  display: block;
}
.footer__info a svg {
  fill: #fff;
}
.footer__info strong {
  display: block;
  font-weight: normal;
}
footer small {
  font-family: 'Outfit', sans-serif;
}

@media(max-width:845px) {

  footer {
    margin-top: 30%;
    padding: 5% 0 3%;
  }
  footer .footer__fx {}
  .footer__info {
    margin-top: 4px;
  }
  .footer__info > a {
    width: 120px;
  }
  .footer__info strong {
    font-size: 1.6rem;
    margin: 5% 0 2%;
  }
  .footer__info p {
    font-size: 1.2rem;
    line-height: 2;
  }
  .footer__info p a {
    display: inline-block;
  }

  .footer__link {
    margin-top: 8%;
  }
  .footer__link ul {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: stretch;
    align-items: stretch;
  }
  .footer__link ul li {
    width: 48%;
    margin: 0 auto .5em;
  }
  .footer__link a {
    font-size: 1.3rem;
    font-weight: bold;
    padding: .5em 1em;
    text-align: center;
    display: block;
  }
  footer small {
    font-size: 1rem;
    margin: 5% auto 0;
    text-align: center;
    display: block;
  }


}

@media(min-width:846px) {

  footer {
    margin-top: 160px;
    padding: 36px 0 30px;
  }
  footer .footer__fx {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: stretch;
    align-items: stretch;
  }
  .footer__info {
    margin-top: 4px;
  }
  .footer__info > a {
    width: 162px;
  }
  .footer__info strong {
    font-size: 20px;
    margin: 35px 0 19px;
  }
  .footer__info p {
    line-height: 2.375;
  }
  .footer__link {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: flex-end;
    align-items: flex-end; 
  }
  .footer__link ul {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    -webkit-align-items: center;
    align-items: center;
  }
  .footer__link ul li {
    margin: 0 0 0 .4em;
  }
  .footer__link a {
    font-weight: bold;
    padding: 1em .8em;
    position: relative;
    overflow: hidden;
  }
  .footer__link a:before {
    background: #fff;
    content: '';
    width: calc(100% - 1em);
    height: 2px;
    position: absolute;
    left: .5em;
    bottom: .5em;
    margin: auto;
    transform-origin: right top;
    transform: scale(0, 1);
    transition: transform .3s;
  }
  .footer__link a:hover:before {
    transform-origin: left top;
    transform: scale(1, 1);
  }
  .footer__link a span {
    color: #fff;
    letter-spacing: .08em;
    transition: color .5s;
    position: relative;
    z-index: 1;
  }
  footer small {
    font-size: 12px;
    margin-bottom: 10px;
  }

}



/*

<footer>
  <div class="footer__fx inner__wrap">
    <div class="footer__info">
      <a href="#"><svg viewBox="0 0 162 55"><use xlink:href="#logo__mark"></use></svg></a>
      <strong>株式会社アサヒ商会</strong>
      <p>〒370-0006　群馬県高崎市問屋町2-8-2<br>Tel. 027-363-1111</p>
    </div>
    <div class="footer__link">
      <ul>
        <li><a href="#anc_01">私たちのサービス</a></li>
        <li><a href="#anc_02">ビジョン</a></li>
        <li><a href="#anc_03">代表メッセージ</a></li>
        <li><a href="#anc_04">会社概要</a></li>
      </ul>
      <small>​©Asahi Co. Ltd.　All right reserved.</small>
    </div>
  </div>

*/