@charset "UTF-8";

.bookpng {
    background-image: url(book.png);    /* 背景画像指定 */
    background-size:  contain;
    background-color: #ffeecc;
    width:70px;
    height:70px;
    color: #55aa00;
    font-weight: bold;
    font-size:18px;
    text-align: center;
    display:table-cell;
    vertical-align:middle;
}

.l-header {
  padding-inline: 3%;
  background-color: #ffeecc;
  border-bottom: 1px solid #ababab;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.l-header + * {
  margin-top: 60px;
}

.p-navigation-global__list {
  gap: 15px;
  align-items: center;
  display: flex;
  justify-content: center;
}

.p-navigation-global__list-item a {
  font-weight: 700;
  padding: 20px 5px;
}

.p-megaMenu.is-open .p-megaMenu__navigation {
  -webkit-clip-path: inset(0 -50vw);
  clip-path: inset(0 -50vw);
  visibility: visible;
}

.p-megaMenu.is-open .p-megaMenu__open::after {
  rotate: 180deg;
}

.p-megaMenu__open {
  gap: 0.5em;
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  padding: 20px 5px;
}

.p-megaMenu__open::after {
  color: #777700;
  content: "∨";
  padding-bottom: 0.2em;
  transition: rotate 0.3s;
}

.p-megaMenu__navigation {
  -webkit-clip-path: inset(0 -50vw 100%);
  background-color: #f7d7b7;
  clip-path: inset(0 -50vw 100%);
  left: 0;
  padding: 20px;
  position: absolute;
  top: 100%;
  transition: all 0.4s;
  visibility: hidden;
  width: 100%;
}

.p-megaMenu__list {
  gap: 0;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  max-width: 2000px;
  width: -moz-fit-content;
  width: fit-content;
}

.p-megaMenu__list-item a {
  gap: 0.5em;
  align-items: center;
  display: inline-flex;
  padding: 5px 10px;
}

.p-megaMenu__list-item a::before {
  background-color: currentColor;
  content: "";
  display: block;
  height: 1px;
  width: 0.5em;
}

@media (min-width: 768px) {
  .p-navigation-global__list {
    gap: 40px;
  }

  .p-navigation-global__list-item a {
    padding: 20px 10px;
  }

  .p-megaMenu__open {
    padding: 20px 10px;
  }

  .p-megaMenu__navigation {
    padding: 4px;
  }

  .p-megaMenu__list {
    gap: 10px 30px;
    flex-direction: row;
  }

  .p-megaMenu__list-item a {
    padding: 20px 10px;
  }
}

@media (hover: hover) {
  .p-navigation-global__list-item a:hover {
    text-decoration: underline;
  }
}

.heart {
  width: 600px;
  /*height: 100vh;*/
  box-sizing: border-box;
  border-style: solid;
  border-width: 30px;
  border-image-slice: 30;
  border-image-repeat: space;
  border-image-source: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='90'><defs><pattern id='heart' patternUnits='userSpaceOnUse' width='30' height='30' viewBox='0,0,100,100'><path d='M 14,43 A 18,18 0,0,1 50,43 A 18,18 0,0,1 86,43 Q 90.16, 62.28 50,79 Q 9.84, 62.28 14,43 z'  fill='%23ff299c' stroke-width='2' stroke='%23ff299c'/></pattern></defs><rect width='90' height='90' fill='url(%23heart)'/></svg>");
}

/* HTML: <div class="ribbon">Your text content</div> */
.ribbon {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
}
.ribbon {
  --s: 1.8em; /* the ribbon size */
  --d: .8em;  /* the depth */
  --c: .8em;  /* the cutout part */
  
  padding: 0 calc(var(--s) + .5em) var(--d);
  line-height: 1.8;
  background:
    conic-gradient(at left  var(--s) bottom var(--d),
     #0000 25%,#0008 0 37.5%,#0004 0) 0   /50% 100% no-repeat,
    conic-gradient(at right var(--s) bottom var(--d),
     #0004 62.5%,#0008 0 75%,#0000 0) 100%/50% 100% no-repeat;
  clip-path: polygon(0 var(--d), var(--s) var(--d),var(--s) 0,calc(100% - var(--s)) 0,calc(100% - var(--s)) var(--d),100% var(--d),calc(100% - var(--c)) calc(50% + var(--d)/2),100% 100%,calc(100% - var(--s) - var(--d)) 100%,calc(100% - var(--s) - var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) calc(100% - var(--d)),calc(var(--s) + var(--d)) 100%,0 100%,var(--c) calc(50% + var(--d)/2));
  background-color: #CC333F; /* the main color */
  width: fit-content;
}

