@charset "UTF-8";

/*********************************************************************** 
  共通部
************************************************************************/
@font-face {
  font-family: "Noto Sans JP";
  src: url("googlefonts/NotoSansJP-VariableFont_wght.ttf") format("ttf");
  font-weight: normal;
  font-style: normal;
}

html{
  scroll-behavior: smooth;
}

body{
  width: 100%;
  margin: 0px;
  overflow-x: hidden;
  font-family: "Noto Sans JP", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", sans-serif;
}
img{
  vertical-align:top;
}
a{
  text-decoration: none;
  color: var(--main-color-2);
  user-select: none;
  cursor: pointer;
}
.bt01{
  all: initial;
  cursor: pointer;
  display: block;
  width: fit-content;
  font-size: 1rem;
  padding: 3px 15px;
  background-color: var(--main-color-2);
  color: white;
  border-radius: 3px;
}
.bt01.bt_disable{
  background-color: #666;
  pointer-events: none;
  cursor: default;
}
.button{
  all: initial;
  display: inline-block;
  margin: 10px auto;
  padding: 5px 20px;
  background-color: var(--main-color-2);
  border: 2px solid var(--main-color-3);
  color: white;
  border-radius: 4px;
  user-select: none;
  cursor: pointer;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.5);
}
.button:hover{
  background-color: var(--main-color-3);
  color: white;
}
.button:active{
  box-shadow: 0px 0px 3px rgba(0,0,0,0.5);
  transform: translate(2px,2px);
}
.foot_note{
  text-align: right;
  font-size: 0.8em;
}
.submit{
  padding: 0px 10px;
  background-color: var(--main-color-1);
  color: white;
  border: none;
  border-radius: 3px;
  border: outset 2px var(--main-color-6);
  cursor: pointer;
  font-size: 16px;
}
.submit:active{
  border: inset 2px var(--main-color-2);
}

/* フォームコントロール */
input[type="datetime-local"],
input[type="date"],
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="search"],
textarea,select{
    font-size: 1.2rem;
}
input[type="checkbox"]{
    transform: scale(1.5);
}
input[type="datetime-local"],
input[type="date"]{
    width: fit-content;
}
input[readonly]:not([type="checkbox"]){
    all: initial;
    font-size: 1.2rem;
}
button{
    padding: 3px 5px;
}

/*hタグ部************************************************************/
h2,
h3,
h4,
h5 {
  font-family: "Meiryo", "Hiragino Sans";
  user-select: none;
}
h2 {
  all: initial;
  display: block;
  margin: 20px auto 0px auto;
  text-align: center;
  font-size: 1.6em;
  line-height: 30px;
  font-weight: bold;
  color: #444444;
}
h2:first-letter {
  font-size: 1.3em;
  color: var(--main-color-1);
}
h2:after {
  content: attr(data-label);
  display: block;
  font-size: 16px;
  line-height: 24px;
  font-weight: normal;
}
h3 {
  all: initial;
  display: block;
  width: 100%;
  margin: 0px auto 20px auto;
  box-sizing: border-box;
  padding-left: 5px;
  font-size: 1.4em;
  font-weight: bold;
  color: #333333;
  border-bottom: 1px solid darkgray;
}
h3:before{
  content: "";
  background-image: url(./img/icon_h3.png);
  background-size: cover;
  display: inline-block;
  width: 27px;
  height: 38px;
  margin-right: 5px;
}
h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 25%;
  margin-left: -5px;
  border-bottom: 1px solid var(--sub-color-1);
  z-index: 0;
}
h4 {
  all: initial;
  display: block;
  margin: 10px auto;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  box-sizing: border-box;
}
h4:before{
  content: "◆";
}

/*********************************************************************** 
  ローディングアニメーション部
************************************************************************/
#loader{
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255,255,255,0.9);
  z-index: 1100;
  transition: 0.3s ease;
  /* animation: fadeOut 0.5s 3s forwards; */
}
#loader_wrap div,
#loader_wrap img{
  position: fixed;
  top: 50%;
  left: 50%;
}
#loader_caption{
  transform: translate(-50%,50%);
  color: var(--main-color-2-3);
}
#loader_animation{
  transform: translate(-50%,-50%);
  display: flex;
  justify-content: space-between;
  width: 7em;
}
#loader_animation span{
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--main-color-4);
  transition: 0.5s ease;
}
#loader_animation span:nth-child(1){ animation: loader_start 1.0s 0s infinite; }
#loader_animation span:nth-child(2){ animation: loader_start 1.0s calc((0.8s / 5) * 1) infinite; }
#loader_animation span:nth-child(3){ animation: loader_start 1.0s calc((0.8s / 5) * 2) infinite; }
#loader_animation span:nth-child(4){ animation: loader_start 1.0s calc((0.8s / 5) * 3) infinite; }
#loader_animation span:nth-child(5){ animation: loader_start 1.0s calc((0.8s / 5) * 4) infinite; }

@keyframes loader_start{
  0%{ transform: translateY(0px); }
  30%{ transform: translateY(-10px); background-color: var(--main-color-6);}
  70%{ transform: translateY(0px); }
  100%{ transform: translateY(0px); }
}
@keyframes fadeOut {
  0%{ opacity: 1; }
  100%{
    opacity: 0;
    display: none;
    animation: none;
  }
}


/*********************************************************************** 
  ヘッダー部
************************************************************************/
header{
  position: sticky;
  top: 0px;
  left: 0px;
  z-index: 999;
  box-shadow: 2px 0px 3px rgba(0,0,0,0.5);
}
#hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* flex-wrap: wrap; */
  width: 100%;
  height: 80px;
  background-color: white;
  /* padding: 5px; */
  box-sizing: border-box;
}
#hd *{
  cursor: pointer;
}
#hd h1 {
  all: initial;
  display: block;
  height: auto;
  text-align: center;
  padding-left: 5px;
}
#hd h1 img{
  width: 100%;
  height: 100%;
  max-width: 240px;
  max-height: 60px;
  object-fit: contain;
}
#hd_info{
  display: flex;
  justify-content: right;
  gap: 15px;
  text-align: left;
  margin-top: 0px;
  margin-right: 5px;
}
#pc_tel{
  display: inline-flex;
  align-items: center;
  justify-content: right;
  margin-right: 0px;
  margin-bottom: 0px;
  flex-wrap: nowrap;
  font-size: 24px;
  line-height: 24px;
  font-family:"Arial Black";
  color: var(--main-color-2);
}
#pc_tel i{
  display: inline-block;
  padding: 5px 5px;
  background-color: var(--main-color-2);
  font-size: 16px;
  color:beige;
  border-radius: 5px;
  margin-right: 3px;
}
.btCart{
  position: relative;
  display: inline-block;
  margin: 0px;
  padding: 2px 5px;
  font-size: 16px;
  color: white;
  background-color: darkgray;
  border-radius: 5px;
  user-select: none;
  pointer-events: none;
  cursor: default;
}
.btCart.cartin{
  background-color: var(--main-color-1);
  user-select: auto;
  pointer-events: auto;
  cursor: default;
}
.btCart.cartin:after{
  content: attr(data-label);
  position: absolute;
  top: -7px; left: -7px;
  display: block;
  width: 1.4em;
  aspect-ratio: 1 / 1;
  border-radius: 50px;
  text-align: center;
  font-size: 14px;
  color: black;
  background-color: lightsalmon;
}
#pc_mail{
  display: inline-block;
  padding: 5px 10px;
  background-color: var(--main-color-2);
  color: white;
  border-radius: 5px;
  margin-left: 10px;
}
#pc_mail i{
  margin-right: 3px;
}

#hd_right_sp{
  display: none;
  margin-right: 5px;
}
#hd_right_sp #bt_contact,
#hd_right_sp #bt_tel,
#hd_right_sp #bt_nav{
  display: inline-block;
  width: 38px;
  height: 38px;
  vertical-align: middle;
}
#hd_right_sp #bt_contact,
#hd_right_sp #bt_tel{
  color: var(--main-color-2);
  font-size: 22px;
  line-height: 40px;
  text-align: center;
}
#hd_right_sp #bt_nav{
  position: relative;
  cursor: pointer;
  user-select: none;
}
#hd_right_sp #bt_nav div{
  position: absolute;
  width: 26px;
  height: 0px;
  border-bottom: 3px solid var(--main-color-2);
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s ease;
}
#hd_right_sp #bt_nav div:nth-child(1){
  top: 8px;
}
#hd_right_sp #bt_nav div:nth-child(2){
  top: 17px;
}
#hd_right_sp #bt_nav div:nth-child(3){
  top: 26px;
}
#hd_right_sp #bt_nav div:nth-child(4){
  all: initial;
  position: absolute;
  width: 0px;
  height: 21px;
  /* border-left: 2px solid var(--main-color-6); */
  border-left: 2px solid white;
  top: 8px;
  left: 10px;
}

@media screen and (max-width: 980px){
  header{
    width: 100%;
  }
}
@media screen and (max-width: 768px){
  #hd{
    height: 70px;
  }
  #hd h1{
    width: auto;
    margin: 5px;
  }
  #hd_info{
    display: none;
  }
  #hd_right_sp{
    display: block;
  }
  #hd_right_sp div i{
    line-height: 38px;
  }
}
@media screen and (max-width: 420px){
  #hd{
    height: 56px;
  }

  #hd h1 img{
    max-width: 200px;
  }
  #bt_contact, #bt_tel{
    position: fixed;
    top: 70px;
    right: 10px;
    background-color: var(--main-color-2);
    border-radius: 5px;
  }
  #hd_right_sp i{
    color: white;
    height: 100%;
  }
  #bt_contact{
    top: 120px;
  }
}
@media screen and (max-width: 325px){
  #hd h1 img{
    max-width: 200px;
  }
}

/*********************************************************************** 
  ナビゲーション部
************************************************************************/
#hd_nav ul {
  display: flex;
  padding-left: 0px;
  margin: 0px;
}
#hd_nav ul li {
  list-style: none;
}
#hd_nav ul li a {
  text-decoration: none;
  display: inline-block;
  padding: 8px 5px 0px 5px;
  margin: 0px 5px 0px 5px;
  color: black;
  font-size: 18px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
#hd_nav ul li a.contact{
  display: block;
  position: absolute;
  top: 8px;
  right: 5px;
  background-color: var(--main-color-2);
  width: auto;
  padding: 3px 10px;
  color: white;
  border-radius: 5px;
  font-size: 16px;
}
#hd_nav ul li a.contact i{
  display: inline;
  margin-right: 3px;

}
/*ナビゲーション　レスポンシブ*******************************************/
@media screen and (max-width: 980px){
  nav#hd_nav ul li a{
    font-size: 16px;
  }
}
@media screen and (max-width: 768px){
  #hd_nav,
  #hd_nav *{
    all: initial;
  }
  #hd_nav{
    display: block;
    width: 240px;
    height: 100vh;
    /* overflow-x: hidden; */
    background-color: rgba(255, 255, 255, 0.8);
    position: fixed;
    top: 0px;
    right: -240px;
    transition: 0.3s ease;
  }
  #hd_nav.open{
    right: 0px;
  }
  #hd_nav ul{
    all: initial;
    display: block;
    margin-top: 60px;
  }
  #hd_nav ul li{
    all:initial;
    display: block;
    text-align: center;
    font-size: 18px;
  }
  #hd_nav ul a{
    display: block;
    line-height: 30px;
    padding: 10px 0px;
    cursor: pointer;
  }
  #hd_nav ul li a.contact{
    all: initial;
    display: block;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    text-decoration: none;
    color: black;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  }
  #hd_nav ul li a.contact i{
    display: none;
  
  }
}

/*********************************************************************** 
  コンテンツ部
************************************************************************/
main{
  width: 100%;
}
main a{
  text-decoration: none;
  color: var(--main-color-2);
}
.container{
  max-width: var(--container-width);
  box-sizing: border-box;
  margin: auto;
  padding: 20px 20px 20px 20px;
}

/*********************************************************************** 
  書籍一覧
************************************************************************/
.book_list, .book_list *{
    all: initial;
    display: block;
    color: #333;
}

.book_list{
    display: flex;
    flex-direction: column;
    width: 100%;    
    gap: 15px;
}

.book_list .book_wrap, .book_list .book_wrap *{
    cursor: pointer;
    user-select: none;
}

.book_list .book_wrap{
    background-color: whitesmoke;
    padding: 10px 15px;
    box-sizing: border-box;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.4);
    border-left: 3px solid maroon;
    border-radius: 5px;
}
.book_list .book_wrap .book_name{
    font-size: 1.1em;
}
.book_list .book_wrap .book_author{
    font-size: 0.9em;
}
.book_list .book_wrap .book_publisher{
    font-size: 0.8em;
}
.book_list .book_wrap .book_price{
    font-size: 1.1em;
    color: maroon;
}

/*********************************************************************** 
  フッター部
************************************************************************/
footer{
  background-color: whitesmoke;
  border-top: 3px ridge whitesmoke;
  margin-top: 0px;
}
@media screen and (max-width: 480px){
  footer h4{
    text-align: center;
  }
}
#footer_container{
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: var(--container-width);
  margin: auto;
  padding: 20px;
}
#footer_left,#footer_center,#footer_right{
  max-width: calc(var(--container-width) / 3);
  box-sizing: border-box;
  padding: 10px;
}
#footer_left #ft_nav{
  max-width: 320px;
}
#footer_left #ft_nav ul{
  display: block;
  max-width: 320px;
  padding-left: 0px;
}
#footer_left #ft_nav ul li{
  list-style: none;
  margin: 5px 0px;
}
#footer_left #ft_nav ul li a.contact i{
  display: none;
}
#footer_right #ft_info{
  max-width: 320px;
}
#footer_right #ft_info div a{
  text-decoration: none;
  display: block;
  background-color: var(--main-color-2);
  color: white;
  font-family: "arial black";
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  margin: 5px 10px;
  border-radius: 40px;
  border: 2px outset khaki;
}
#footer_right #ft_info div span{
  display: block;
  font-size: 14px;
  margin: 0px auto 10px auto;
  text-align: center;
}
#footer_right #ft_info > a{
  text-decoration: none;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}
#footer_right #ft_info a img{
  width: 240px;
  text-align: center;
}
#footer_right #ft_info a div{
  text-decoration: none;
  color: dimgray;
  font-size: 14px;
  font-weight: bold;
  line-height: 14px;
}
#copyright{
  font-size: 14px;
  line-height: 16px;
  text-align: center;
}

/***********************************************************************
  常時右下に表示するボタンのCSS
************************************************************************/
:root {
  --diameter: 50px; /*ボタン直径*/
  --bgcolor: rgba(0, 0, 0, 0.3); /*ボタン背景色*/
  --bghover: rgba(0, 0, 0, 0.7); /*マウスホバー時背景色*/
  --font-color: white; /*フォント色*/
  --font-size: 28px;
  --b-radius: 50%;
}
#bt_box {
  position: fixed;
  bottom: 20px;
  right: calc(50% - 550px);
  z-index: 1000;
}
a.bt_float {
  text-decoration: none;
}
.bt_float {
  cursor: pointer;
  display: block;
  width: var(--diameter);
  height: var(--diameter);
  line-height: var(--diameter);
  text-align: center;
  background-color: var(--bgcolor);
  color: var(--font-color);
  font-size: var(--font-size);
  border-radius: var(--b-radius);
  margin-bottom: 5px;
  user-select: none;
}
.bt_float i {
  margin-right: 0px;
  line-height: var(--diameter);
}
.bt_float:hover {
  background-color: var(--bghover);
}
@media screen and (max-width: 980px) {
  #bt_box {
    right: 20px;
  }
  .bt_float:hover {
    background-color: var(--bgcolor);
  }
  .bt_float:active {
    background-color: var(--bghover);
  }
}
@media screen and (min-width: 768px) {
  a.bt_float {
    display: none;
  }
}
#ft_cart.now_cart_in{
  background-color: var(--main-color-1);
}
#ft_cart.now_cart_in:after{
  content: attr(data-label);
  position: absolute;
  top: -7px;
  left: -7px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.4em;
  height: 1.4em;
  /* aspect-ratio: 1 / 1; */
  border-radius: 50px;
  text-align: center;
  font-size: 14px;
  color: black;
  background-color: lightsalmon;
  
}


/***********************************************************
  フォトギャラリー　横スクロール　フリック
***********************************************************/
:root {
  --img-height: 140px; /*画像の高さ*/
  --img_width: 180px; /*画像の幅*/
  --img_margin: 5px; /*画像の右余白*/
}
.gallery_flick {
  height: var(--img-height);
  overflow: hidden;
  margin: 10px auto;
  position: relative;
}
.gallery_flick .gallery_flick_wrap {
  position: absolute;
  display: flex;
  flex-wrap: nowrap;
  transition: 0.8s ease;
  top: 0px;
  left: 0px;
  user-select: none;
}
.gallery_flick .gallery_flick_wrap img {
  scroll-snap-align: start;
  height: var(--img-height);
  width: var(--img_width);
  object-fit: cover;
  transition: 1s ease;
  user-select: none;
  cursor: pointer;
}
.gallery_flick img:not(:last-child) {
  margin-right: var(--img_margin);
}
.gallery_flick > .bt_back,
.gallery_flick > .bt_next {
  height: 100%;
  width: 40px;
  position: absolute;
  top: 0px;
  user-select: none;
}
.gallery_flick > .bt_back {
  left: 0px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}
.gallery_flick > .bt_next {
  right: 0px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.6), transparent);
}
.gallery_flick > .bt_back div,
.gallery_flick > .bt_next div {
  width: 15px;
  height: 15px;
  border-top: 5px solid white;
  border-right: 5px solid white;
  position: absolute;
  top: 50%;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.8));
}
.gallery_flick > .bt_back div {
  left: 10px;
  transform: translatey(-50%) rotate(225deg);
}
.gallery_flick > .bt_next div {
  right: 10px;
  transform: translatey(-50%) rotate(45deg);
}

/******************************************
  LightBox本体
*******************************************/
/*jsで生成した画像の背景の設定*/
#lightbox_on {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  animation: lightbox_on 0.3s ease forwards;
  z-index: 1001;
  user-select: none;
}
/*jsで生成した画像の設定*/
#lightbox_on img {
  position: fixed;
  top: calc(50% - 0px);
  left: 50%;
  max-width: 90%;
  max-height: 90%;
  border: 3px solid white;
  transform: translate(-50%, -50%);
  animation: lightbox_on 0.5s ease forwards;
  z-index: 1002;
  user-select: none;
}
/*ボタン設定(左ボタン)*/
#lightbox_on ~ .bt_lbBack,
#lightbox_on ~ .bt_lbNext {
  position: fixed;
  /*background-color: dodgerblue;*/
  width: 25%;
  height: 20%;
  top: 50%;
  transform: translatey(-50%);
  z-index: 1003;
  user-select: none;
  cursor: pointer;
}
#lightbox_on ~ .bt_lbBack {
  left: 0px;
}
#lightbox_on ~ .bt_lbNext {
  right: 0px;
}
#lightbox_on ~ div div {
  width: 20px;
  height: 20px;
  border-top: 5px solid rgba(255, 255, 255, 0.7);
  border-right: 5px solid rgba(255, 255, 255, 0.7);
  position: absolute;
  top: 50%;
  transform: translatey(-50%);
  filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.5));
}
#lightbox_on ~ .bt_lbBack:hover div,
#lightbox_on ~ .bt_lbNext:hover div {
  border-top: 5px solid rgba(255, 255, 255, 1);
  border-right: 5px solid rgba(255, 255, 255, 1);
  user-select: none; /* 選択を禁止する */
}
#lightbox_on ~ .bt_lbBack div {
  left: 5%;
  transform: rotate(-135deg);
}
/*ボタン設定(右ボタン)*/
#lightbox_on ~ .bt_lbNext div {
  right: 5%;
  transform: rotate(45deg);
}

/*フェードのアニメーション*/
@keyframes lightbox_on {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/******************************************************
  お問い合わせフォーム
*******************************************************/
.contact *{
  font-size: 18px;
}
.contact table{
  max-width: 640px;
  margin: auto;
}
.contact table tr th{
  text-align: left;
  white-space: nowrap;
  box-sizing: border-box;
  padding: 10px 5px;
  background-color: var(--sub-color-3);
}
.contact sup{
  color: red;
}
.contact table tr td{
  padding: 10px 10px;
  box-sizing: border-box;
  background-color: whitesmoke;
}
.contact table tr td input,
.contact table tr td select{
  height: 2em;
  border-radius: 3px;
}
@media screen and (max-width:640px){
  .contact table{
    max-width: auto;
    width: 100%;
    margin:auto;
  }
  .contact table tr th,
  .contact table tr td{
    display: block;
    width: 90%;
    box-sizing: border-box;
    padding: 10px 10px;
    text-align: center;
    margin:auto;
  }
  .contact table tr td input,
  .contact table tr td textarea{
    padding: 0px 0px;
    width: 90%;
  }
}


/****************************************
  検索結果表示用　共通CSS
****************************************/
.serch_wrap{
  margin: auto;
  text-align: center;
}
.serch_wrap form input:first-child{
  width: 200px;
  height: 28px;
  font-size: 16px;
}
.serch_wrap form input:nth-child(2){
  font-size: 16px;
}
.course_result {
  max-width: 690px;
  margin: auto;
}
.course_result .result_wrap {
  text-decoration: none;
  color: black;
  display: block;
  margin: 10px;
  width: 100%;
  min-height: 200px;
  background-color: linen;
  box-sizing: border-box;
  padding: 10px;
  border: 5px solid khaki;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
  transition: 0.2s;
}
.course_result .result_wrap:hover {
  transform: scale(1.1);
}

.course_result .result_wrap img {
  display: block;
  float: right;
  height: 170px;
  object-fit: contain;
}
.course_result .result_wrap .category{
  display: flex;
  gap: 5px;
}
.course_result .result_wrap .category .mark_cate{
  display: block;
  width: fit-content;
  padding: 0px 5px;
  background-color: var(--main-color-2);
  color: white;
  font-size: 14px;
  border-radius: 5px;
}
.course_result .result_wrap .title {
  width: 100%;
  font-size: 1.2em;
  font-weight: bold;
}
.course_result .result_wrap .week span {
  display: inline-block;
  background-color: var(--main-color-2);
  margin: 1px 1px;
  padding: 0px 2px;
  border-radius: 3px;
  color: white;
}
.course_result .gray {
  -webkit-filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.7;
}

@media screen and (max-width: 480px) {
  .course_result .result_wrap {
    width: 95%;
    min-height: auto;
  }
  .course_result .result_wrap img {
    height: 80px;
    margin: auto;
  }
}

#dd_order{
  max-width: 690px;
  text-align: right;
  margin: 20px auto;
}
#dd_order select,
#dd_order input{
  font-size: 16px;
}


/***********************************
  万年カレンダー
***********************************/
/* カレンダー全体を初期化 */
.mycalendar, .mycalendar *{
  margin: 0;
  padding: 0;
  color: #444;
  font-size: 16px;
  user-select: none;
}
/* カレンダー外枠 */
.mycalendar{
  width: 100%;
  max-width: 320px;
}
/* カレンダー　ヘッダー */
.mycalendar .calendar_hd{
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #666;
  margin-bottom: 10px;
}
/* カレンダー　ヘッダーの年月タイトル */
.mycalendar .calendar_hd .title{
  font-weight: bold;
}
/* カレンダー　ヘッダーの次月前月ボタン */
.mycalendar .calendar_hd .btmonth{
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  cursor: pointer;
  /* visibility: hidden; */
}
/* ボタンアイコンのCSS設計　共通 */
.mycalendar .calendar_hd .btmonth:before,
.mycalendar .calendar_hd .btmonth:after{
  content: "";
  display: block;
  width: 14px;
  height: 3px;
  background-color: #444;
  border-radius: 10px;
  position: absolute;
  top: 50%;
}
/* ボタンアイコンのCSS設計　前月ボタン */
.mycalendar .calendar_hd .back:before,
.mycalendar .calendar_hd .back:after{
  left: 6px;
}
/* ボタンアイコンのCSS設計　前月ボタンシェイプ１ */
.mycalendar .calendar_hd .back:before{
  transform-origin: top left;
  transform: translateY(-50%) rotateZ(45deg);
}
/* ボタンアイコンのCSS設計　前月ボタンシェイプ２ */
.mycalendar .calendar_hd .back:after{
  transform-origin: bottom left;
  transform: translateY(-50%) rotateZ(-45deg);
}
/* ボタンアイコンのCSS設計　次月ボタン */
.mycalendar .calendar_hd .next:before,
.mycalendar .calendar_hd .next:after{
  right: 6px;
}
/* ボタンアイコンのCSS設計　次月ボタンシェイプ１*/
.mycalendar .calendar_hd .next:before{
  transform-origin: top right;
  transform: translateY(-50%) rotateZ(-45deg);
}
/* ボタンアイコンのCSS設計　次月ボタンシェイプ２*/
.mycalendar .calendar_hd .next:after{
  transform-origin: bottom right;
  transform: translateY(-50%) rotateZ(45deg);
}
/* カレンダー本体 */
.mycalendar .calendar_main{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}
/* カレンダーの曜日出し */
.mycalendar .calendar_main span:nth-of-type(-n+7){
  text-align: center;
  font-weight: bold;         
}
/* カレンダーの日付部 */
.mycalendar .calendar_main span:nth-of-type(n+8){
  text-align: center;
}
/* カレンダーの土曜日列 */
.mycalendar .calendar_main span:nth-of-type(7n){
  color: dodgerblue;
}
/* カレンダーの日曜日列 */
.mycalendar .calendar_main span:nth-of-type(7n+1){
  color: red;
}
/* カレンダーの休業日を黒塗りつぶし */
.mycalendar .calendar_main span.closed{
  background-color: #333;
  color: white;
}
/* 月が違う数字は薄く */
.mycalendar .calendar_main span.other_month{
  color: #AAA;
}