/* Color */
/* ============================================ */
:root {
  --color-white: #ffffff;
  --color-gray: #cccccc;
  --color-grayforback: #f5f4f2;
  --color-grayfortext: #4e5255;
  --color-grayforline: #bdbcb8;
  --color-violetfortext: #8e4888;
  --color-violetforline: #a482bd;
  --color-violetforhr: #cbbdd6;
  --color-black: #707070;
  --color-red: #e15c82;
  --color-blue: #0000ff;
}
/* ============================================ */

/* Fonts */
/* ============================================ */
/*
* こころ明朝体 licensed under the IPA Font License Agreement v1.0
* http://typingart.net/（こころ明朝体配布元URL）
* http://ipafont.ipa.go.jp/（IPAフォントURL）
* http://ipafont.ipa.go.jp/ipa_font_license_v1.html（IPAフォントライセンスv1.0URL）
*/
@font-face {
  font-family: "kokoro";
  src:
    url("../font/kokorotate.woff2?260912") format("woff2"),
    url("../font/kokorotate.woff?260912") format("woff");
}

/* ============================================ */

/* Base */
/* ============================================ */
html,
body {
  height: 100%;
}
html {
  font-size: 62.5%;
}
body {
  font-size: 1.4em;
}
body * {
  position: relative;
  color: var(--color-grayfortext);
}
/* 1.0rem = 10px, 2.4rem = 24px */
/* ============================================ */
body,
#wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
body {
  height: 100%;
  min-height: 100%;
}
#wrapper {
  height: auto;
  min-height: 100%;
  display: block;
  overflow: hidden;
  z-index: 1;
  /*background-color:var(--color-grayforback);*/
}
#loading {
  background: var(--color-white);
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  overflow: hidden;
}

header {
  width: 100%;
  /*height: 411px;*/
  height: 269px;
  /*background: var(--color-white);*/
  overflow: visible;
  z-index: 97;
}
/*
.article header {
  height: 269px;
}
*/
.logo {
  display: block;
  position: absolute;
  top: 50px;
  right: 40px;
  transition: 0.5s;
  opacity: 1;
}

.logo img {
  height: 100%;
  max-height: 393px;
  width: auto;
}

.logo:hover {
  opacity: 0.5;
  transition: 0.5s;
}

.fixed {
  position: fixed;
  z-index: 98;
}

#burger-btn {
  visibility: hidden;
  width: 50px;
  height: 24px;
  position: fixed;
  z-index: 99;
  border: none;
  opacity: 0;
  transition: all 0.3s;
  overflow: hidden;
  cursor: pointer;
}
.bar {
  width: 100%;
  height: 2px;
  display: block;
  position: absolute;
  left: -50%;
  transform: translateX(-50%);
  background-color: var(--color-violetforline);
  transition: all 0.3s;
}
.bar_top {
  top: 0px;
  opacity: 1;
  transition-delay: 0s;
}
.bar_mid {
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.75;
  transition-delay: 0.1s;
}
.bar_bottom {
  bottom: 0px;
  opacity: 0.5;
  transition-delay: 0.2s;
}

#burger-btn.fadeDown {
  visibility: visible;
  opacity: 1;
}
#burger-btn.fadeDown .bar {
  left: 50%;
}
#burger-btn.fadeDown .bar_top {
  transition-delay: 0.5s;
}
#burger-btn.fadeDown .bar_mid {
  transition-delay: 0.4s;
}
#burger-btn.fadeDown .bar_bottom {
  transition-delay: 0.3s;
}

#burger-btn.close .bar {
  width: 19.65px;
}
#burger-btn.close .bar_top {
  transform: translate(-50%, 11px) rotate(45deg);
}
#burger-btn.close .bar_mid {
  opacity: 0;
}
#burger-btn.close .bar_bottom {
  transform: translate(-50%, -11px) rotate(-45deg);
  opacity: 1;
}
#burger-btn:hover .bar {
  transition-delay: 0s !important;
  background-color: var(--color-red);
}
.menu {
  position: fixed;
  top: 50px;
  left: 40px;
  z-index: 98;
}
.menu ul {
  left: 0;
}
.menu ul li {
  visibility: visible;
  float: left;
  display: block;
  width: calc(1em + 8px + 36px);
  font-size: 1.7rem;
  opacity: 1;
  transition: all 0.3s;
}
.menu ul li:nth-of-type(1) {
  transition-delay: 0.3s;
}
.menu ul li:nth-of-type(2) {
  transition-delay: 0.35s;
}
.menu ul li:nth-of-type(3) {
  transition-delay: 0.4s;
}
.menu ul li:nth-of-type(4) {
  transition-delay: 0.45s;
}
.menu ul li:nth-of-type(5) {
  transition-delay: 0.5s;
}
.menu ul li:nth-of-type(6) {
  transition-delay: 0.55s;
}
.menu ul li:nth-of-type(7) {
  transition-delay: 0.6s;
}
.menu-inner.dnone ul {
  left: 0;
}
.menu-inner.dnone ul li {
  visibility: hidden;
  opacity: 0;
  margin-top: -20px;
}
.menu-inner.dnone ul li:nth-of-type(7) {
  transition-delay: 0s;
}
.menu-inner.dnone ul li:nth-of-type(6) {
  transition-delay: 0.05s;
}
.menu-inner.dnone ul li:nth-of-type(5) {
  transition-delay: 0.1s;
}
.menu-inner.dnone ul li:nth-of-type(4) {
  transition-delay: 0.15s;
}
.menu-inner.dnone ul li:nth-of-type(3) {
  transition-delay: 0.2s;
}
.menu-inner.dnone ul li:nth-of-type(2) {
  transition-delay: 0.25s;
}
.menu-inner.dnone ul li:nth-of-type(1) {
  transition-delay: 0.3s;
}
.menu ul li a {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  display: inline-block;
  padding: 0 4px;
  font-family: "kokoro", serif;
  letter-spacing: 0.25em;
}

.menu ul li a:not(.here)::before {
  background-color: var(--color-grayfortext);
  content: "";
  display: block;
  width: 1px;
  height: 0%;
  right: 0;
  top: 50%;
  position: absolute;
  transition: 0.5s all;
  z-index: 1;
}

.menu ul li a:not(.here):hover::before {
  top: 0;
  height: 100%;
}
.menu ul li a:not(.here)::after {
  background-color: var(--color-grayforline);
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  right: 0;
  top: 0;
  position: absolute;
  transition: 0.5s all;
  z-index: 0;
}
.scroll-over {
  display: block !important;
  background-color: rgba(255, 255, 255, 0.9);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
}
.scroll-over ul {
  top: 50px;
  left: 106px !important;
}
.scroll-over ul li {
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 0px !important;
}
.menu-inner.scroll-over ul li:nth-of-type(1) {
  transition-delay: 0.3s !important;
}
.menu-inner.scroll-over ul li:nth-of-type(2) {
  transition-delay: 0.35s !important;
}
.menu-inner.scroll-over ul li:nth-of-type(3) {
  transition-delay: 0.4s !important;
}
.menu-inner.scroll-over ul li:nth-of-type(4) {
  transition-delay: 0.45s !important;
}
.menu-inner.scroll-over ul li:nth-of-type(5) {
  transition-delay: 0.5s !important;
}
.menu-inner.scroll-over ul li:nth-of-type(6) {
  transition-delay: 0.55s !important;
}
.menu-inner.scroll-over ul li:nth-of-type(7) {
  transition-delay: 0.6s !important;
}
main {
  display: block;
  height: calc(100% - 3em);
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    var(--color-white) 0%,
    var(--color-white) 13.4vw,
    var(--color-grayforback) 13.4vw,
    var(--color-grayforback) 100%
  );
  /*transform: rotate(0.001deg);*/
}
article,
section {
  height: 100%;
}

footer {
  height: 3em;
  line-height: 3em;
  background-color: var(--color-grayforback);
  text-align: center;
}
.copyright {
  /*color:var(--color-grayfortext);
	opacity:0.5;
	font-size:1.4rem;*/
  vertical-align: middle;
}

.topimage {
  width: 100%;
  max-width: 1098px;
  margin: 0 auto 0 auto;
  overflow: visible;
  position: relative;
}
.topimage::before {
  content: "";
  display: block;
  padding-top: 56.1%;
}

/*
.topimage::after {
  content: "";
  display: block;
  padding-top: 21.13%;
  top: -21.13%;
  width: 100%;
  z-index: 20;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  background-image: url("../img/signature_back2.png?0521_6");
}
*/

/* Top */
/* ============================================ */

.slide {
  z-index: 10;
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  -webkit-animation: anime 40s 0s infinite;
  animation: anime 40s 0s infinite;
}
.slide:nth-of-type(1) {
  background-image: url("../img/top_slide1.jpg?260801");
}
.slide:nth-of-type(2) {
  background-image: url("../img/top_slide2.jpg?260801");
  -webkit-animation-delay: 8s;
  animation-delay: 8s;
}
.slide:nth-of-type(3) {
  background-image: url("../img/top_slide3.jpg?260801");
  -webkit-animation-delay: 16s;
  animation-delay: 16s;
}
.slide:nth-of-type(4) {
  background-image: url("../img/top_slide4.jpg?260801");
  -webkit-animation-delay: 24s;
  animation-delay: 24s;
}
.slide:nth-of-type(5) {
  background-image: url("../img/top_slide5.jpg?260801");
  -webkit-animation-delay: 32s;
  animation-delay: 32s;
}
@keyframes anime {
  0% {
    opacity: 0;
  }
  9% {
    /* 全体40秒のうち最初の4秒をパーセンテージで -1% */
    opacity: 1;
  }
  19% {
    opacity: 1;
  }
  29% {
    opacity: 0;
    z-index: 9;
  }
  100% {
    opacity: 0;
  }
}
#instagram-feed-wrapper {
  width: 57vw;
  max-width: 546px;
  /*background-color:var(--color-white);*/
  margin: 0 auto;
  padding: 130px 0 77px 0;
  transition:
    opacity 1s,
    visibility 0s ease 1s;
  /*
  visibility: hidden;
  opacity: 0;
*/
  font-size: 1.8rem;
  text-align: center;
  overflow: hidden;
}
#instagram-feed-wrapper.is-show {
  transition-delay: 0s;
  opacity: 1;
  visibility: visible;
}
.midashi {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  display: block;
  padding: 0 16px 0 0;
  font-family: "kokoro", serif;
  letter-spacing: 0.25em;
  font-size: 1.8rem;
  color: var(--color-violetfortext);
  float: left;
  width: calc(1em + 16px);
}
#instagram-feed {
  width: calc(100% - 1em - 16px);
  float: left;
}
.instagram_gallery {
  width: 100%;
}
.instagram_gallery a {
  float: none;
  clear: both;
  margin: 0 0 12px 0;
  overflow: hidden;
  height: 75px;
  z-index: 0;
  transition: 0.5s;
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  display: block;
  visibility: hidden;
  opacity: 0;
}
.instagram_gallery a.line-show {
  opacity: 1;
  visibility: visible;
}
.instagram_gallery a:hover {
  opacity: 0.5;
  transition: 0.5s;
}
.instagram_gallery a img {
  width: 75px;
  height: auto;
  float: left;
}
.instagram_gallery a span {
  display: block;
  content: attr(data-caption);
  width: 100%;
  padding: 0 0 7px 82px;
  position: absolute;
  z-index: 1;
  line-height: 1.4;
  height: calc(3em * 1.4);
  text-align: left;

  overflow: hidden;
  text-align: justify;
  text-justify: inter-ideograph;
}
.instagram_gallery span::before {
  content: "...";
  position: absolute;
  top: calc(2em * 1.4);
  right: 0;
  background-color: var(--color-grayforback);
  width: 1em;
  text-align: right;
}
.instagram_gallery span::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: var(--color-grayforback);
}
/*.instagram_gallery span::after {
  content: "...";
  position: absolute;
  right: 0;
  top: calc(2em * 1.4 - 1px);
  display: inline-block;
  width: 2.5em;
  background: linear-gradient(90deg, rgba(245,244,242,0) 0%, rgba(245,244,242,1) 60%);
  text-align: right;
  z-index:2;
  line-height: 1.4;
}*/
.instagram_gallery a::after {
  content: "";
  background-color: var(--color-grayforline);
  display: block;
  width: calc(100% - 54px);
  height: 1px;
  left: 54px;
  bottom: 8px;
  position: absolute;
  z-index: 1;
}

#instagram-feed-more {
  float: none;
  clear: both;
  text-align: center;
  margin: 28px 0 0 0;
}
#instagram-feed-more a {
  width: 100%;
  height: 100%;
  font-family: "Shippori Mincho", serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--color-violetfortext);
  text-decoration: none;
  padding: 0 0 6px 0;
}
#instagram-feed-more a::before {
  border-bottom: 1px solid var(--color-violetfortext);
  content: "";
  display: block;
  width: 0%;
  height: 1px;
  right: 50%;
  bottom: 0;
  position: absolute;
  transition: 0.5s all;
  z-index: 1;
}

#instagram-feed-more a:hover::before {
  bottom: 0;
  right: 0;
  width: 100%;
}
#instagram-feed-more a::after {
  border-bottom: 1px solid var(--color-violetfortext);
  opacity: 0.5;
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  right: 0;
  bottom: 0;
  position: absolute;
  transition: 0.5s all;
  z-index: 0;
}

/* Page */
/* ============================================ */

.menu ul li a.here {
  color: var(--color-grayforline);
}
.contents {
  text-align: center;
  width: 100%;
  max-width: 1098px;
  margin: 0 auto 0 auto;
  padding: 0;
}
.pageimage {
  position: relative;
  width: 100%;
  max-width: 1098px;
  margin: 0 auto;
}
.pageimage:before {
  content: "";
  display: block;
  padding-top: 40.8%;
}
.imageinner {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.title {
  display: inline-block;
  padding: 0 0 7px 0;
  font-family: "Shippori Mincho", serif;
  letter-spacing: 0.25em;
  font-size: 3.2rem;
  color: var(--color-violetfortext);
  margin: 78px auto 0 auto;
  border-bottom: 1px solid var(--color-violetfortext);
}

.img_parts {
  width: 100%;
  height: auto;
}

.double::after {
  border-top: 1px solid var(--color-violetforhr);
  border-bottom: 1px solid var(--color-violetforhr);
  content: "";
  display: block;
  width: 100%;
  max-width: 1098px;
  height: 4px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  position: absolute;
  margin: 0 auto;
}
.undermargin {
  margin-bottom: 78px;
}
.underpadding {
  padding-bottom: 35px;
}
.enable-javascript .lazy {
  visibility: hidden;
  opacity: 0;
  /*margin-top:-20px;*/
  transition: all 3s;
}
.lazy-show {
  opacity: 1;
  visibility: visible;
  transition: all 3s;
}

#wrapper.article .pagefooter {
  background: var(--color-white);
}
/* About */
/* ============================================ */
.imageinner.about {
  background-image: url("../img/page_main1.jpg");
}
.nm27 {
  margin-top: -2.45%;
}

/* Lesson */
/* ============================================ */
.imageinner.lesson {
  background-image: url("../img/page_main2.jpg");
}
/* Voice */
/* ============================================ */
.imageinner.voice {
  background-image: url("../img/page_main6.jpg?0912_1");
}

/* Family */
/* ============================================ */
.imageinner.family {
  background-image: url("../img/page_main3.jpg");
}

/* Access */
/* ============================================ */
.imageinner.access {
  background-image: url("../img/page_main4.jpg");
}

/* Profile */
/* ============================================ */
.imageinner.profile {
  background-image: url("../img/page_main5.jpg");
}

.profile_gallery {
  overflow: visible;
  position: relative;
}
.sub_slide {
  z-index: 10;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  -webkit-animation: fade_4sx7 56s 0s infinite;
  animation: fade_4sx7 56s 0s infinite;
}
.sub_slide:nth-of-type(1) {
  position: relative;
}
.sub_slide:nth-of-type(2) {
  -webkit-animation-delay: 8s;
  animation-delay: 8s;
}
.sub_slide:nth-of-type(3) {
  -webkit-animation-delay: 16s;
  animation-delay: 16s;
}
.sub_slide:nth-of-type(4) {
  -webkit-animation-delay: 24s;
  animation-delay: 24s;
}
.sub_slide:nth-of-type(5) {
  -webkit-animation-delay: 32s;
  animation-delay: 32s;
}
.sub_slide:nth-of-type(6) {
  -webkit-animation-delay: 40s;
  animation-delay: 40s;
}
.sub_slide:nth-of-type(7) {
  -webkit-animation-delay: 48s;
  animation-delay: 48s;
}
@keyframes fade_4sx7 {
  0% {
    opacity: 0;
  }
  7% {
    /* 全体56秒のうち最初の4秒をパーセンテージで -1%？ */
    opacity: 1;
  }
  14% {
    opacity: 1;
  }
  21% {
    opacity: 0;
    z-index: 9;
  }
  100% {
    opacity: 0;
  }
}

/* Contact */
/* ============================================ */
.title.contact {
  margin: 0 auto 0 auto;
  clear: both;
  float: none;
}
iframe#parentframe {
  width: 100%;
  margin: 2em auto 10em auto;
}

.line {
  margin: 4em auto 0 auto;
  padding: 0 0 10em 0;
  font-size: 1.8rem;
  font-family: "Shippori Mincho", serif;
  text-align: center;
  line-height: 1.5;

  img {
    display: block;
    width: 180px;
    height: auto;
    margin: 2em auto;
  }

  a {
    font-weight: bold;
    width: 180px;
    text-align: center;
    background-color: #e15c82;
    color: #ffffff;
    line-height: 2.2em;
    margin: 0 auto;
    text-decoration: none;
    display: block;
  }
}

/* Voice */
/* ============================================ */
.sub_slide_text {
  z-index: 11;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
}

/* ============================================ */

/* 右上フィックスメニュー用
/* ============================================ */
@media screen and (max-width: 1558px) {
  /*
  .website header .logo img {
    height: 100%;
    max-height: 290px;
    width: auto;
  }
  .article header .logo img {
    height: 100%;
    max-height: 219px;
    width: auto;
  }
*/
  .topimage {
    width: 57.18vw !important;
  }
  .contents {
    width: 75%;
  }
}
@media screen and (max-width: 1400px) {
  .fixed {
    position: absolute;
  }
}
/* ============================================ */

/* スマートフォン横・タブレット縦 */
/* ============================================ */
@media screen and (max-width: 1280px) {
  .logo {
    top: 2vw;
    right: 2vw;
    height: 21.4vw;
  }

  .menu {
    top: 2vw;
    left: 2vw;
    overflow: hidden;
  }

  .title {
    font-size: 2.5rem;
  }
}
/* ============================================ */

/* スマートフォン縦 */
/* ============================================ */
@media screen and (max-width: 480px) {
  header {
    /*height: calc(54.1vw + 13.3vw);*/
    height: 54.1vw;
  }
  /*
  .article header {
    height: calc(34.2vw + 40px);
  }

  .article header .logo {
    height: 34.2vw;
  }
  .logo {
    top: 10px;
    right: 10px;
  }
  .website header .logo {
    height: 54.1vw;
  }
  .website header .logo img {
    height: calc(100% - 20px);
  }
*/
  .logo {
    top: 10px;
    right: 10px;
  }
  header .logo {
    height: 54.1vw;
  }
  header .logo img {
    height: calc(100% - 20px);
  }

  #burger-btn {
    visibility: visible;
    opacity: 1;
    transition: none;
  }

  .bar {
    left: 50%;
    transition: all 0.3s;
    transition-delay: 0;
  }

  .menu {
    top: 10px;
    left: 10px;
  }

  .menu-inner {
    display: none;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
  }
  .menu ul {
    display: block;
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    text-align: center;
    width: calc((1em + 8px + 32px) * 6);
    font-size: 1.8rem;
  }
  .menu ul li {
    /*width:calc(1em + 8px + 32px);*/
    width: calc(100% / 6);
  }
  .menu ul li a {
    padding: 0 4px;
    letter-spacing: 0.25em;
  }
  .article header .menu ul li {
    width: calc(100% / 7);
  }
  .topimage {
    width: 100% !important;
  }

  /*
  .topimage::after {
    left: 8%;
  }
*/

  #instagram-feed-wrapper {
    width: 100%;
  }
  #news {
    font-size: 0.875rem;
  }
  article {
    width: calc(100% - 20px);
    margin: 0 auto;
  }

  .contents {
    width: 100%;
  }

  .title {
    font-size: 1.5rem;
    margin: 35px auto 0 auto;
  }
  .title.contact {
    margin: 0 auto 0 auto;
  }

  iframe#parentframe {
    width: 100%;
    margin: 2em auto 6em auto;
  }

  .line {
    margin: 2em auto 0 auto;
    font-size: 1.4rem;
  }
}

/* ============================================ */

/* スマートフォン最小 */
/* ============================================ */
@media screen and (max-width: 320px) {
  .menu ul {
    max-width: 280px;
  }
  .menu ul li a {
    font-size: 1.4rem;
  }
}
