/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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: black;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #e7e7eb;
    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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

@font-face {
  font-family: YuGothicM;
  src: local("Yu Gothic Medium");
}

body {
    background-color: #fbfaf5;
    background-position: bottom left;
    background-repeat: repeat-x;
    color: black;
    font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","游ゴシック Medium",YuGothic,YuGothicM,"Hiragino Kaku Gothic ProN",メイリオ,Meiryo,sans-serif;
    letter-spacing: 1.5px;
    line-height: 1.75;
    position: relative;
}

a:link, a:visited {
  color: #223a70;
  text-decoration: underline;
}
a:hover, a:active {
  color: #000099;
  text-decoration: none;
}

nav li a:link, nav li a:visited {
  color: #fff;
  text-decoration: none;
}

.btn, a.btn:link, a.btn:visited {
  border-radius: 25px;
  background-color: #223a70;
  color: white;
  text-decoration: none;
}

.btn:hover, .btn:active, a.btn:hover, a.btn:active {
  background-color: #000099;
}

.defs { display: none; }

.card {
    background-color: #fffffc;
    margin-bottom: 2rem;
}

.card-title, .modal-title { margin: 0 0 .75rem 0; }

.fa, .fab, .fal, .far, .fas {margin-right: 10px;}


/*
 * Layout
 */
section {
  padding: 5rem 0;
}

section#about, section#price {
  background-color: #f3f3f3;
}

#thanks { padding: 10rem 0; }


/*
 * Headings
 */
 .navbar-brand svg {
     fill: white;
     width: 120px;
     height: 20px;
 }

 h1 svg {
  fill: #a22041;
  width: 320px;
  height: 56px;
 }

h2 {
  color: #a22041;
  font-weight: 900;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 4px solid #c21500;
  border-image: linear-gradient(45deg, #c1e4e9,#c0a2c7,#e0ebaf,#eebbcb);
  border-image-slice: 1;
}

h3 {
    color: black;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

/*
 * Navigation
 */
nav {
  background-color: #223a70;
}

ul.nav {
  margin: 0;
  display: block;
  padding-top: 10px;
}

.navbar-toggler { border: 3px solid #fff; }

.navbar-dark .navbar-toggler {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #223a70;
    background-color: #fff;
}

/*
 * Header
 */
header {
  background-position: bottom left;
  background-repeat: repeat-x;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background:linear-gradient(45deg, #c1e4e9,#c0a2c7,#e0ebaf,#eebbcb);/*グラデーションを定義*/
  background-size: 200% 200%;/*サイズを大きくひきのばす*/
  animation: bggradient 20s ease infinite;
}

  @keyframes bggradient{
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

#canvas-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

#canvas-txt {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

#canvas-txt-inner {
  width: 100%;
  padding: 2em 0;
}

.lead {
  width: 90%;
  margin: 1em auto 0;
  font-size: 1rem;
}

/*
 * About
 */

.about img {
  border-radius: 100%;
  margin: 0 0 .5rem 0;
  -webkit-shape-outside: circle();
  shape-outside: circle();
  width: 42%;
}

.welcome ul, .sorry ul { margin-left: -.7rem; }

.welcome, .sorry {
    background-repeat: no-repeat;
    background-size: auto;
    background-position: bottom right;
}

/*
 * Price
 */
.price img {
    float: right;
    width: 36%;
    shape-margin: 5px;
    -webkit-shape-outside: url(../img/img_price.png);
    shape-outside: url(../img/img_price.png);
}

td.text-right { white-space: nowrap; }

/*
 * Showcase
 */
.carousel-indicators li { background-color: #007bff; }
.carousel-indicators .active { background-color: #ccc; }

/*
 * Footer
 */
footer {
  padding: 2.5rem 0;
  background:linear-gradient(45deg, #c1e4e9,#c0a2c7,#e0ebaf,#eebbcb);/*グラデーションを定義*/
  background-size: 200% 200%;/*サイズを大きくひきのばす*/
  animation: bggradient 20s ease infinite;
}

footer p {
  margin: 0;
}

/*
 * Go to top
 */
 #page_top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 10px;
  bottom: 10px;
  background: #223a70;
  border-radius: 50%;
  opacity: 0.9;
}
#page_top a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f0d8';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 14px;
  height: 25px;
  top: -20px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}
#page_top:hover {
  background-color: #000099;
}

/*
 * Coockie
 */
.cookie-consent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.7);
  padding: 1.2em;
  box-sizing: border-box;
  visibility: hidden;
}
.cookie-consent.is-show {
  visibility: visible;
}
.cookie-consent a {
  color: #fff !important;
}
.cookie-agree {
  color: #fff;
  background: dodgerblue;
  padding: .5em 1.5em;
}
.cookie-agree:hover {
  cursor: pointer;
}
/* パッと消える */
.cc-hide1 {
  display: none;
}
/* ゆっくり消える */
.cc-hide2 {
  animation: hide 1s linear 0s;
  animation-fill-mode: forwards;
}
@keyframes hide {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}
/* メディアクエリ */
@media screen and (max-width: 600px) {
  .cookie-consent {
    flex-direction: column;
  }
  .cookie-text {
    margin-bottom: 1em;
  }
}

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

/*
 * Hide visually and from screen readers
 */

.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
 */

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

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

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

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

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. 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: " "; /* 1 */
    display: table; /* 2 */
}

.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 */
    ul.nav {display: flex;}
    ul.nav {padding-top: 0;}
    h1 svg {
        width: 50%;
        height: auto;
    }

}

@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: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

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

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

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