/*! HTML5 Boilerplate v9.0.1 | 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
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

::-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
   ========================================================================== */
footer {
  color: white;
  background: #222;
}

.headLogo {
  display: flex;
  justify-content: right;
  align-items: center;
  margin-bottom: 0.5rem;
}

.headLogo img{
  width: 180px;
}

#heroimg picture {
  background: #CCF;
}

#heroimg picture img {
  width: 100%;
}

.container {
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  max-width: 1280px;
}

.w30p {
  width: 30%;
  margin: 0 auto;
}

.w60p {
  width: 60%;
  margin: 0 auto;
}

.w80p {
  width: 80%;
  margin: 0 auto;
}

.mt2{
  margin-top: 2.0rem;
}

.mt5{
  margin-top: 5.0rem;
}

.txtc {
  text-align: center;
}

nav {
  display: grid; 
  margin-top: 1.0rem;
  padding: 0 1.0rem;
}

nav ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
  width: 100%;
  margin: 0;
  padding: 0;
}

nav ul li a {
  padding: 10px 20px;
  text-decoration: none;
  color: #fff !important; 
  background-color: #000000;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: grid;
  align-items: center;
  justify-content: center;
  height: 100%;
}

nav ul li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(90deg) translateY(-50%);
    position: absolute;
    top: 50%;
    right: 20px;
    border-radius: 1px;
    transition: 0.3s ease-in-out;
}

nav ul li a:hover {
  background-color: #363636;
}

footer {
  margin-top: 32px;
  padding: 2rem;
  font-size: 15px;
  color: #9ca3af;
  background: #1d1e22;
}

.footer__navi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 2rem;
}

.footer__navi li {
  display: inline-block;
}

.footer__navi li:not(:last-child) {
  margin-right: 16px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.ttl_frame {
  width: 80%;
  font-weight: bold;
  margin: 0 auto;
  margin-top: 3.0em;
  margin-bottom: 2.0em;
  padding: 0.5em 1em;
  text-align: center;
  border-radius: 5px;
  background-image: -webkit-gradient(linear, right top, left top, from(#cfcfcf), to(#919191));
  background-image: -webkit-linear-gradient(right, #cfcfcf 0%, #919191 100%);
  background-image: linear-gradient(to left, #cfcfcf 0%, #919191 100%);
}

.box {
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0px 12px 28px 0px rgba(0, 0, 0, 0.2);
}

.IllustGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
}


.ProductGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 0;
}

.Card {
  text-align: center;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 12px 28px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.Card p span {
  font-size: 0.8rem;
}

.CardDescription {
  padding: 18px;
}

.CardDescription h3 {
  margin: 0;
}

.ProdctImg {
  width: 100%;
}

.descriptiontxt {
  line-height: 1.8rem;
}

.descriptiontxt span {
  font-size: 0.8rem;
}

.descriptionList li{
  list-style: circle;
}

.btn_frame {
  background-color: #000000;
  color: #fff;
  margin-top: 2.0em;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn_frame:hover {
  background-color: #363636;
}

#form button.btn_frame {
  display: block;
}

.map {
  position: relative;
  width: 80%;
  margin: 0 auto;
  padding-top: 42.85%;
  height: 0;
}

.map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.maptxt {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  text-align: right;
}

@media only screen and (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 15px;
  }

  .w30p, .w60p, .w80p {
    width: 100%;
  }
  nav {
    padding: 0;
  }

  nav ul {
    grid-template-columns: repeat(2, 1fr);
  }
  
  nav ul li {
    margin: 5px 0;
    font-size: 0.8rem;
  }

  .ProductGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .IllustGrid {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;    
  }

  .ttl_frame {
    width: 100%;
  }

  .copyright {
    text-align: left;
  }
 }

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

/*
 * Hide visually and from screen readers
 */

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

/*
 * 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;
  }
}

