@charset "UTF-8";
/* 上部メニュー */
.primary > li {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  margin-right: 10px;
  border-radius: 15px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.primary > li.is_open .level2_items {
  display: block;
}

.primary > li.is_open, .primary > li:hover {
  background-color: #a5d5e4;
}

.primary > li.is_current {
  background-color: #43a6c7;
  color: white;
}

.primary > li a {
  display: inline-block;
  width: 100%;
}

label.level1_title {
  color: inherit;
  cursor: inherit;
}

label.level1_title:after {
  /* 矢印 */
  position: relative;
  display: inline-block;
  top: -2px;
  width: 7px;
  border-right: 3px solid #555555;
  border-top: 3px solid #555555;
  border-radius: 2px;
  content: "";
  margin: 0 0 0 5px;
  height: 7px;
  -webkit-transform: rotate(135deg);
          transform: rotate(135deg);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}

.is_current label.level1_title:after,
.is_open label.level1_title:after {
  top: 2px;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  border-color: white;
}

.level2_items {
  display: none;
  position: absolute;
  top: 35px;
  width: 170px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  background-color: white;
  z-index: 1001;
}

.level2_items > li {
  height: 40px;
  padding-left: 10px;
  border-bottom: 1px solid #ccc;
  line-height: 40px;
  color: #454545;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

.level2_items > li:hover {
  background-color: #a5d5e4;
}

/* サイドメニュー */
.side-nav {
  background-color: #c5c5c5;
  font-size: 1.1rem;
}

.side-nav a {
  display: inline-block;
  width: 100%;
}

/*基本スタイル*/
/* タイトル以外 */
[class^='layer'][class$='item'],
[class*='layer'][class*='item '] {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 6px;
  height: 0;
  opacity: 0;
  overflow: hidden;
  background-color: #ced6d9;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
}

[class^='layer'][class$='item']:hover:not(.is_current),
[class*='layer'][class*='item ']:hover:not(.is_current) {
  background-color: rgba(165, 213, 228, 0.6);
  cursor: pointer;
}

/* タイトル */
[class^='layer'][class$='_title'],
[class*='layer'][class*='_title '] {
  position: relative;
  padding: 8px 0;
  background: -webkit-linear-gradient(#f8f8f8, #ebebeb);
  background: linear-gradient(#f8f8f8, #ebebeb);
  font-weight: bold;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  cursor: pointer;
}

[class^='layer'][class$='_title'] span,
[class*='layer'][class*='_title '] span {
  /* 飾り */
  padding-left: 10px;
}

[class^='layer'][class$='_title'] span:before,
[class*='layer'][class*='_title '] span:before {
  position: absolute;
  content: "";
  display: block;
  width: 4px;
  top: 7px;
  height: 18px;
  background-color: #43a6c7;
}

/* 下階層のタイトル */
[class*="layer"] .layer02_title,
[class*="layer"] .layer03_title {
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

.is_open + [class^="layer"] > [class^='layer'][class$='item'],
.is_open + [class^="layer"] > [class*='layer'][class*='item '] {
  border-bottom: 1px solid rgba(98, 151, 169, 0.3);
}

/* 階層ごとのタイトル */
.layer01 .layer01_title {
  padding-left: 1em;
  border-bottom: 1px solid rgba(98, 151, 169, 0.3);
}

.layer01 .layer01_item {
  padding-left: 1em;
}

.layer02 .layer02_title {
  padding-left: 2em;
}

.layer02 .layer02_item {
  padding-left: 2em;
}

.layer03 .layer03_title {
  padding-left: 3em;
}

.layer03 .layer03_item {
  padding-left: 3em;
}

.layer04 .layer04_title {
  padding-left: 4em;
}

.layer04 .layer04_item {
  padding-left: 4em;
}

/* 1階層目からリンクの場合 */
.layer01 .layer01_item {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
  opacity: 1;
  visibility: visible;
}

/* 1階層目を開いた場合 */
.layer01_title.is_open + .layer02 .layer02_title {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
  opacity: 1;
  visibility: visible;
}

.layer01_title.is_open + .layer02 .layer02_title.is_open + .layer03 .layer03_title {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
  opacity: 1;
  visibility: visible;
}

.layer01_title.is_open + .layer02 .layer02_title.is_open + .layer03 .layer03_title.is_open + .layer04 .layer04_title {
  padding-top: 8px;
  padding-bottom: 8px;
  height: auto;
  opacity: 1;
  visibility: visible;
}

.layer01_title.is_open + .layer02 .layer02_title.is_open + .layer03 .layer03_title.is_open + .layer04 .layer04_item {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  opacity: 1;
  visibility: visible;
}

.layer01_title.is_open + .layer02 .layer02_title.is_open + .layer03 .layer03_item {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  opacity: 1;
  visibility: visible;
}

.layer01_title.is_open + .layer02 .layer02_item {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  opacity: 1;
  visibility: visible;
}

[class*="layer"] .is_current:not([class*='title']) {
  background: #43a6c7;
  color: white;
}

[class*="layer"] .is_open:not([class*='title']) {
  height: auto;
  padding-top: 8px;
  padding-bottom: 8px;
  opacity: 1;
  visibility: visible;
}

[class*="layer"] .is_active {
  background: #43a6c7;
  color: white;
}
