/*
Theme Name: my room k
Theme URI: https://myroomk-togane.jp/
Author: Sugimoto
Description: 自作テーマ
Version: 1.0
*/

/* 一般設定 */
body {
  font-family: 'Noto Serif JP', serif;
  background-color: #fbf6e8;
  color: #065b24;
  margin: 0;
  padding: 0;
  padding-top: 100px;
  font-size: 1.2rem;
}

body h1,
body h2,
body h3 {
  text-align: center;
  margin-inline-start: 1rem;
  margin-inline-end: 1rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

body p {
  text-align: left;
  margin-inline-start: 1rem;
  margin-inline-end: 1rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

a,
a:hover,
a:visited {
  text-decoration: none;
  color: #065b24;
}

body.admin-bar header {
  top: 32px;
  /* WP管理バーの高さ分だけ下げる */
}


/* ヘッダー設定 */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  z-index: 9999;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0rem 4rem 0rem 4rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo {
  max-width: 300px;
  height: auto;
  display: block;
}

.main-logo {
  max-width: 100%;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 1rem;
}

/* メニューのスタイル */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.global-nav li a {
  text-decoration: none;
  color: white;
}

.hamburger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 30px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 5px;
  background: #7da570;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, background .2s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* レシポンシブ設定 */
@media screen and (max-width: 768px) {
  body.admin-bar header {
    top: 46px;
    /* WP管理バーの高さ分だけ下げる */
  }

  body {
    padding-top: 60px;
    font-size: 1rem;
  }

  .header-inner {
    display: flex;
    align-items: center;
    padding: 0rem 2rem 0 1rem;
    gap: 3rem;
  }

  .hamburger {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    background: black;
    width: 100%;
    z-index: 999;
  }

  .header-nav.active {
    display: block;
  }

  .contact-button a {
    display: block;
    height: 60px;
    margin-left: 0;
    text-align: center;
    align-content: center;
    color: white;
  }

  .global-nav ul {
    flex-direction: column;
    padding: 10px;
    gap: 0.5rem;
  }

  .global-nav li {
    margin: 10px auto;
  }

  .logo-header {
    display: inline-block;
    max-width: 300px;
  }

  .keyvisual-sp {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .keyvisual {
    display: none;
  }

  .overlay-content {
    top: 150px;
    left: 0;
  }

  .section-contents h1 {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    margin-bottom: 2rem;
  }

  .section-contents p {
    font-size: 0.9rem;
    margin: 1rem 0 0;
  }
}

/* トップスライダーセクション */
.slider-pc,
.slider-sp {
  background-color: black;
}

.slider-sp {
  display: none;
}


/* About-usセクション */
.aboutus-section {
  margin: 10rem auto 0rem;
}

.flex-box {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.aboutus-box {
  flex: 1 1 60%;
  position: relative;
  z-index: 1;
}

.text-title {
  margin: 3rem auto;
  overflow: hidden;
  text-align: center;
}

.text-title img {
  display: inline-block;
  max-height: 250px;
  width: auto;
}

.aboutus-text {
  max-width: 600px;
  margin: 2rem auto 0;
}

.aboutus-image {
  flex: 1 1 35%;
  max-width: 600px;
  margin: 0 auto;
}

.aboutus-image img {
  max-width: 100%;
}

.link-button {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 5rem;
  right: -150px;
}

.link-button a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
}

.link-arrow {
  width: 30px;
}


/* ルームセクション */
.room-section {
  margin: 15rem auto 0rem;
}

.flex-box-r {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
}

.room-image {
  flex: 0 0 55%;
}

.room-image img {
  max-width: 100%;
}

.room-box {
  flex: 0 0 45%;
  position: relative;
  z-index: 1;
}

.wrap-box {
  width: 100%;
  position: relative;
  background-color: #f5f5f5;
  padding: 50px;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin: 0 0 0 auto;
  left: -25%;
}

.room-text {
  max-width: 90%;
  margin: 2rem auto;
}


.more-button,
.more-button-b {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 4rem auto;
  right: -100px;
}

.more-button a,
.more-button-b a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
}


/* 料金アクセスセクション */
.price-section {
  margin: 15rem auto 0;
}

.flex-box-wrap {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.price-box {
  flex: 0 0 50%;
  position: relative;
  background: url(https://myroomk-togane.jp/wp-content/uploads/2025/11/price_topbg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-width: 600px;
}

.access-box {
  flex: 0 0 50%;
  position: relative;
  background: url(https://myroomk-togane.jp/wp-content/uploads/2025/11/access_topbg.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-width: 600px;
}

.text-title-box {
  margin: 0 auto;
  overflow: hidden;
  text-align: center;
}

.text-title-box img {
  display: inline-block;
  max-height: 250px;
  width: auto;
}

.price-text p,
.access-text p {
  text-align: center;
}

/* フードセクション */
.food-section {
  margin: 15rem auto 15rem;
}

.food-image {
  flex: 0 0 50%;
  align-items: center;
}

.food-image img {
  display: block;
  max-width: 80%;
  margin: auto;
  align-items: center;
}

.food-box {
  flex: 0 0 50%;
  position: relative;
}

.food-text {
  max-width: 600px;
  margin: 0 auto;
}

/* トップページレシポンシブ設定 */
@media screen and (max-width: 768px) {

  .slider-pc {
    display: none;
  }

  .slider-sp {
    display: block;
    max-width: 100%;
    overflow: hidden;
  }

  .aboutus-section {
    padding: 0;
    margin: 3rem auto 5rem;
  }

  .aboutus-box {
    flex: none;
    width: 100%;
    margin: 0 auto;
  }

  .aboutus-text {
    padding: 0 1rem 1rem 1rem;
  }


  .text-title {
    margin: 1rem auto;
    text-align: center;
  }

  .text-title img {
    display: inline-block;
    max-height: none;
    max-width: 80%;
  }


  .aboutus-image {
    max-width: 80%;
  }

  .link-button {
    margin-top: 2rem;
    margin-bottom: 5rem;
    right: 0;
  }

  .link-button a {
    font-size: 1.2rem;
  }

  .room-section {
    margin: 3rem auto;
  }

  .room-box,
  .room-image {
    flex: none;
    width: 90%;
    margin: 0 auto;
  }

  .flex-box-r {
    display: block;
  }

  .wrap-box {
    padding: 0;
    margin: 0 0 0 auto;
    left: 0;
  }

  .price-section {
    margin: 5rem auto 0;
  }

  .access-box,
  .price-box {
    flex: none;
    display: block;
    position: relative;
    width: 100%;
    min-width: 200px;
  }

  .price-text,
  .access-text,
  .more-button-b {
    transform: translateY(-40px);
  }

  .text-title-box img {
    display: block;
    width: 80%;
    max-height: none;
    margin: 0 auto;
  }

  .more-button {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 3rem auto 3rem;
    right: 0;
  }

  .more-button-b {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 3rem auto 3rem;
    right: 0;
  }

  .more-button a,
  .more-button-b a {
    font-size: 1.2rem;
  }

  .food-section {
    margin: 5rem auto 10rem;
  }

  .food-image,
  .food-box {
    flex: none;
    max-width: 100%;
  }

  .food-image img {
    width: 90%;
  }
}

/* フッター設定 */
footer {
  padding: 0.5rem 1rem;
  background-color: #065b24;
  color: white;
}

.footer-contents {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  margin: 0 auto;
  gap: 3rem;
}

.footer-contents-contact {
  display: flex;
  flex-direction: center;
  justify-content: center;
  align-content: center;
  width: 50%;
  flex-wrap: wrap;
  gap: 1rem;
}

.enterprise-logo {
  max-width: 130px;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.enterprise-logo img {
  max-width: 100%;
}

.enterprise-name {
  align-content: center;
}

.enterprise-detail {
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  align-content: center;
}

.enterprise-detail p,
.enterprise-name h2,
.enterprise-name p {
  margin-block-start: 0rem;
  margin-block-end: 0rem;
}

.footer-contents-sitemap {
  width: 50%;
  align-content: center;
  justify-content: center;
}

.youtube-icon {
  text-align: center;
  margin: 0 auto 1rem;
}

.youtube-icon img {
  width: 90px;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
}

footer ul li {
  padding: 0 1rem;
  position: relative;
  text-align: center;
}

footer ul li:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background-color: #999;
}

.footer-nav li a {
  text-decoration: none;
  color: white;
}

.divider {
  width: 2px;
  height: 200px;
  background-color: white;
}

.copyright {
  text-align: center;
}



/* フッターレシポンシブ設定 */
@media screen and (max-width: 768px) {

  .footer-contents,
  .footer-contents-contact,
  .footer-nav ul {
    display: block;
    padding: 0 0;
    margin: 0 auto;
    width: 100%;
  }

  .footer-nav ul {
    text-decoration: underline;
  }

  .enterprise-logo {
    margin: 2rem auto;
  }

  .enterprise-detail {
    margin: 2rem auto 3rem;
  }

  .enterprise-name p,
  .enterprise-detail p {
    text-align: center;
  }

  .divider {
    display: none;
  }

  .footer-contents-sitemap {
    margin: 2rem auto;
    font-size: 0.9rem;
    width: 90%;
  }

  .footer-contents-sitemap p {
    margin-inline-start: 0;
    margin-inline-end: 0;
  }

  footer ul li:not(:first-child)::before {
    display: none;
  }

  footer ul li {
    margin-bottom: 1rem;
  }
}


/* 個別ページヘッダーエリア設定 */
.page-header {
  position: relative;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
}

.page-header img {
  width: 100%;
  height: auto;
}

.page-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
  margin: 0;
  padding: 0;
}


/* 個別ページ　レシポンシブ設定 */
@media screen and (max-width: 768px) {
  .page-header {
    position: relative;
  }

  .page-header img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
    display: block;
  }

  .page-title-overlay {
    font-size: 2rem;
    width: 500px;
  }

}


/* ルーム・設備 */
.room-page {
  justify-content: center;
  align-items: center;
}

.room-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 10rem auto 0;
  padding: 0;
  gap: 5rem;
}

.room-intro-image {
  max-width: 800px;
  display: flex;
  justify-content: left;
  align-items: center;
  position: relative;
}

.room-intro-image img {
  width: 100%;
  display: block;
}


.room-intro-text {
  max-width: 600px;
  display: flex;
  justify-content: center;
  position: relative;
}

.room-intro-text p {
  text-align: center;
}



.salon-feature-wrap {
  max-width: 1500px;
  margin: 15rem auto 0;
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}

.salon-card {
  background-color: #fffaf0;
  border-radius: 18px;
  padding: 1.8rem 1.5rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
  max-width: 350px;
}

.salon-card-header {
  margin-bottom: 1.2rem;
}

.salon-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  padding: 0.6rem 0;
  margin: 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.salon-card-icon {
  margin-right: 0.35rem;
}

.salon-card-image {
  margin: 1.2rem 0 1.5rem;
}

.salon-card-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

.salon-card-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #1f7a35;
  margin: 0;
}

.karaoke-mc {
  max-width: 800px;
  margin: 15rem auto 0;
}

.karaoke-mc-image {
  display: flex;
  justify-content: center;
}

.karaoke-mc-image img {
  display: block;
  max-width: 100%;
}

.faq-section {
  padding: 4rem 1rem;
  margin: 10rem auto;
}

.faq-inner {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem 4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  box-sizing: border-box;
}

.faq-title {
  position: relative;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 2.5rem;
}

.faq-title::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: calc(50% + 7rem);
  height: 1px;
  background-color: #1c6b36;
  transform: translateY(-50%);
}

.faq-title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% + 7rem);
  right: 8%;
  height: 1px;
  background-color: #1c6b36;
  transform: translateY(-50%);
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-item {
  margin-bottom: 1.8rem;
}

.faq-item dt {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.faq-item dd {
  margin: 0 0 0.6rem;
  color: #1c6b36;
  line-height: 1.9;
  text-indent: 0;
}



@media screen and (max-width: 768px) {
  .room-intro {
    margin: 5rem auto 0;
  }

  .room-intro-image {
    justify-content: center;
  }

  .room-intro-image img {
    width: 90%;
  }

  .salon-feature-wrap {
    margin: 5rem auto 0;
  }

  .salon-card-text {
  font-size: 1.0rem;
}

  .karaoke-mc {
    margin: 5rem auto 0;
  }

  .karaoke-mc-image img {
    max-width: 90%;
  }

  .faq-section {
    margin: 5rem auto;
  }

  .faq-inner {

  padding: 3rem 1rem;
}

}

/* フード&ドリンク */
.food-page {
  margin: 15rem auto 5rem;
}

.pg-food-menu {
  max-width: 1200px;
  justify-content: center;
  display: flex;
  margin: 15rem auto 0;
}

.pg-food-menu img {
  width: 80%;
  display: block;
}

.pg-food-text {
  max-width: 500px;
  justify-content: center;
  display: flex;
  margin: 0 auto;
}

.pg-food-figure {
  display: flex;
  max-width: 1200px;
  justify-content: space-between;
  margin: 0 auto;
}

.pg-food-figure img {
  width: 150px;
  display: block;
  transform: translateY(-70px);
}

@media screen and (max-width: 768px) {
  .food-page {
    margin: 5rem auto 10rem;
  }

  .pg-food-menu {
    margin: 5rem auto 0;
  }

  .pg-food-menu img {
    width: 100%;
    display: block;
  }

  .pg-food-figure img {
    width: 100px;
    transform: translateY(0px);
  }

}


/* 料金案内 */
.plan-section {
  padding: 3rem 1rem 4rem;
}

.pg-top-guide {
  max-width: 1200px;
  margin: 5rem auto;
}

.pg-bottom-guide {
  max-width: 1200px;
  margin: 5rem auto 10rem;
}

.pg-top-text,
.pg-bottom-text {
  text-align: center;
}

.plan-wrap {
  max-width: 1200px;
  margin: 5rem auto 0;
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.plan-card {
  flex: 1 1 500px;
  background-color: #a6cda6;
  border-radius: 20px;
  padding: 2.4rem 2.6rem 2.6rem;
  box-sizing: border-box;
  color: #ffffff;
}

.plan-card-header {
  margin-bottom: 2.2rem;
}

.plan-card-title {
  position: relative;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  padding: 0.6rem 0;
}

.plan-card-title::before,
.plan-card-title::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  height: 1px;
  background-color: #e6f4ec;
}

.plan-card-title::before {
  top: 0;
}

.plan-card-title::after {
  bottom: 0;
}

.plan-card-icon {
  margin-right: 0.4rem;
}

.plan-price {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.8rem;
  color: #065b24
}

.plan-desc {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

.price-info-box {
  max-width: 1000px;
  margin: 10rem auto 0;
  background: #ffffff;
  padding: 5rem 4rem;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.price-info-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #065b24;
  position: relative;
  margin: 0 0 2.5rem;
  padding: 0.6rem 0;
}

.price-info-title::before,
.price-info-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #1c6b36;
  transform: translateY(-50%);
}

.price-info-title::before {
  left: 0;
}

.price-info-title::after {
  right: 0;
}

.price-info-list {
  margin: 0 auto;
  padding-left: 1.4rem;
  font-size: 1.2rem;
  line-height: 2;
  color: #065b24;
  max-width: 600px;
}

@media screen and (max-width: 768px) {
  .plan-section {
    padding: 0 1rem 2rem;
  }

  .plan-wrap {
    gap: 2rem;
  }

  .price-info-box {
    margin: 5rem auto 0;
  }

  .pg-bottom-guide {
    margin: 5rem auto;
  }
}



/* アクセス */
.contact-page {
  margin: 0 auto;
  justify-content: center;
}

.access-guide {
  max-width: 1200px;
  margin: 5rem auto 10rem;
}

.access-guide-nonspace {
  max-width: 1200px;
  margin: 10rem auto 3rem;
}

.access-guide-text {
  text-align: center;
}

.company-add-map {
  display: flex;
  margin: 5rem auto 0;
  max-width: 1500px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.access-map {
  display: flex;
  align-items: center;
  margin: 1rem auto;
  max-width: 650px;
}

.company-address {
  margin: 1rem auto;
  align-items: center;
  max-width: 650px;
}

.company-address ul {
  list-style: none;
  padding-inline-start: 0;
  margin: 1em 0;
  max-width: 100%;
}

.company-address li {
  display: flex;
  padding: 1rem 2rem 1rem 0;
  border-bottom: 1px solid #4a4a4a;
  flex-wrap: nowrap;
}

.company-address .label {
  max-width: 150px;
  margin: auto 1rem auto 1rem;
}

.company-address .value {
  max-width: 500px;
  margin: auto 1rem auto 1rem;
}

.company-address h3 {
  margin: 0 auto;
  text-align: left;
  font-size: 1rem;
}

.company-address h2 {
  margin: 0 auto;
  text-align: left;
}

.grid-4x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, auto);
  gap: 0px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

.cell1 {
  grid-row: 1;
  grid-column: 1;
}

.cell2 {
  grid-row: 2;
  grid-column: 1;
}

.cell3 {
  grid-row: 2;
  grid-column: 2;
}

.cell4 {
  grid-row: 3;
  grid-column: 2;
}

.cell5 {
  grid-row: 3;
  grid-column: 3;
}

.cell6 {
  grid-row: 4;
  grid-column: 3;
}

.cell2,
.cell4,
.cell6 {
  text-align: center;
}

.large-number {
  font-size: 3rem;
}

.grid-4x3 img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 768px) {

  .access-guide {
    margin: 5rem auto 5rem;
    padding: 0 1rem;
  }

  .access-map {
    width: 100%;
  }

  .company-address {
    padding: 0 1rem;
  }

  .company-address h3,
  .company-address h2 {
    padding: 0 0 0 1rem;
  }

  .company-address li {
  padding: 1rem 0;
}

.company-address .label {
  width: 80px;
  margin: auto 1rem;
}

.company-address .value {
  max-width: 200px;
  margin: auto 0 auto 1rem;
}

  .grid-4x3 {
    display: block;
  }

  .grid-4x3>* {
    width: 80%;
    margin: 0 auto;
  }

  .cell2,
  .cell4,
  .cell6 {
    margin-bottom: 5rem;
  }


}

.post-content {
  margin: 8rem auto;
}

.privacy-text {
  margin: 8rem auto;
  max-width: 800px;
}

@keyframes shine {
  0% {
    left: -75%;
  }

  100% {
    left: 125%;
  }
}

.animate {
  opacity: 0;
  transform: translateY(50px);
  /* 下から */
  transition: all 1s ease-out;
}

.animate.show {
  opacity: 1;
  transform: translateY(0);
  /* 元の位置に戻る */
}

/* 共通：初期状態は非表示＋左右に少しずらす */
.js-fade-left,
.js-fade-right {
  opacity: 0;
  transform: translateX(0);
  /* 初期値は一旦0にしておく */
  transition: opacity 1s ease, transform 1s ease;
}

/* 左から流れるパターン */
.js-fade-left {
  transform: translateX(-100px);
  /* 画面左側から出てくるイメージ */
}

/* 右から流れるパターン */
.js-fade-right {
  transform: translateX(100px);
  /* 画面右側から出てくるイメージ */
}

/* 画面内に入ったらアニメーションして最終位置へ */
.js-fade-left.is-inview,
.js-fade-right.is-inview {
  opacity: 1;
  transform: translateX(0);
}

/* 初期状態：薄くて少し下にある */
.js-fade-in {
  opacity: 0;
  transition: opacity 2s ease;
}

/* 表示時：不透明になり、位置も元に戻る */
.js-fade-in.is-inview {
  opacity: 1;
}

/* スマホだけは横動作を縦方向の動きに変更 */
@media (max-width: 768px) {

  .js-fade-left,
  .js-fade-right {
    transform: translateY(50px);
  }

  .js-fade-left.is-inview,
  .js-fade-right.is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}
