@charset 'utf-8';
/* 共通スタイル */
section {
  padding: 60px 20px;
}
.section-title {
  text-align: left;
  color: #2c443b;
  background-color: #f9f5ec;
  padding: 20px 10px;
  border-left: 8px solid #e2421f;
  font-weight: bold;
  line-height: 1.6;
}
/* メインビジュアル部分 */
.takao-mv {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  background-color: #333;
}

.takao-mv-pc {
  display: block;
}

.takao-mv-sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .takao-mv-pc {
    display: none;
  }
  .takao-mv-sp {
    display: block;
  }
}

.mv-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* --- 画像スライドの設定 --- */
.mv-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slide-fade 18s infinite; /* 18秒サイクル */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- テキストコンテナ --- */
.mv-text-container {
  text-align: center;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px);
  /* 秒数をスライドと同じ18sに修正 */
  animation: text-float-up 18s infinite;
}

.mv-sub-title {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #f1f1f1;
}

.mv-main-title {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.05em;
}

/* --- アニメーションのタイミング制御 --- */

/* 画像の表示開始（6秒ずつずらす） */
.mv-slide:nth-child(1) {
  animation-delay: 0s;
}
.mv-slide:nth-child(2) {
  animation-delay: 6s;
}
.mv-slide:nth-child(3) {
  animation-delay: 12s;
}

/* テキストの遅延：
   画像のアニメーションが始まってから「さらに0.8秒後」に動くよう計算 
*/
.mv-slide:nth-child(1) .mv-text-container {
  animation-delay: 0.8s;
}
.mv-slide:nth-child(2) .mv-text-container {
  animation-delay: 6.8s;
}
.mv-slide:nth-child(3) .mv-text-container {
  animation-delay: 12.8s;
}

/* --- アニメーション定義 --- */

/* 画像のフェードイン・アウト */
@keyframes slide-fade {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  } /* パッと表示 */
  30% {
    opacity: 1;
  } /* 表示維持 */
  38% {
    opacity: 0;
  } /* フェードアウト */
  100% {
    opacity: 0;
  }
}

/* テキストの浮き上がり登場 */
@keyframes text-float-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  /* 画像が出てからワンテンポ遅れてふわっと出る（約1秒分） */
  6% {
    opacity: 1;
    transform: translateY(0);
  }
  28% {
    opacity: 1;
    transform: translateY(0);
  }
  /* 画像が消える少し前に文字も消す */
  33% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 0;
  }
}

/* --- レスポンシブ --- */
@media screen and (max-width: 768px) {
  .mv-main-title {
    font-size: 1.8rem;
  }
  .mv-sub-title {
    font-size: 1rem;
  }
  .mv-text-container {
    width: 90%;
  }
}

.read-sentence {
  position: relative;
  background: url("../img/takaosan/read_bk.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 26px solid rgba(226, 66, 31, 0.8);
  border-top: 26px solid rgba(226, 66, 31, 0.8);
  padding: 64px 0;
  overflow: hidden;
}

.read-sentence::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.read-sentence-wrap {
  position: relative;
  z-index: 2;
  background-color: rgba(226, 66, 31, 0.65);
  color: #ffffff;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  box-sizing: border-box;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.read-sentence-wrap p {
  max-width: 800px;
  font-size: 1.15rem;
  line-height: 2.4;
  letter-spacing: 0.08em;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1);
}

@media (max-width: 768px) {
  .read-sentence {
    border-top-width: 15px;
    border-bottom-width: 15px;
    padding: 60px 0;
  }
  .read-sentence-wrap {
    padding: 40px 20px;
    width: 95%;
  }
  .read-sentence-wrap p {
    font-size: 1rem;
    line-height: 2;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .read-sentence-wrap {
    padding: 40px 20px;
  }
  .read-sentence-wrap p {
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: left;
  }
}
/* --- フェードインの基本設定 --- */
.js-fade {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

/* --- 画面内に入った時に付与するクラス --- */
.js-fade.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* 既存のコードへの微調整（重なり順の整理） */
.read-sentence-wrap {
  position: relative;
  z-index: 2;
  background-color: rgba(226, 66, 31, 0.65);
  color: #ffffff;
  width: 90%;
  max-width: 1000px;
  text-align: center;
  box-sizing: border-box;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* 角丸にするとこれまでのパーツと統一感が出ます */
  border-radius: 15px;
}
/* ナビゲーション全体のタイトル */
.takao-nav-intro-title {
  text-align: center;
  color: #2c443b;
  margin: 60px auto 40px;
  padding: 20px;
  background-color: #f9f5ec;
  border-left: 10px solid #e2421f; /* ポップなアクセント */
  font-weight: bold;
  line-height: 1.8;
}

.takao-nav-intro-title span {
  display: block;
  font-size: 0.9rem;
  font-weight: normal;
  margin-top: 10px;
  color: #555;
}

/* ナビゲーション部分 */
#takao-nav {
  padding: 60px 20px 100px;
  background-color: rgba(255, 179, 102, 0.05);
}
.takao-nav-wrap,
.takao-about-wrap {
  width: calc(100% - 40px);
  max-width: 1100px;
  margin: 0 auto;
}

.takao-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.takao-nav-card {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.takao-nav-card:hover {
  transform: translateY(-10px);
}

.takao-nav-link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 180px;
  text-decoration: none;
}

.takao-nav-img-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.takao-nav-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.takao-nav-card:hover .takao-nav-img {
  transform: scale(1.1); /* ホバーで画像が拡大 */
}

/* オーバーレイ（グラデーションでおしゃれに） */
.takao-nav-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 単色黒から、下からじわっと暗くなるグラデーションへ変更 */
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.8));
  z-index: 1;
  transition: opacity 0.3s ease;
}

.takao-nav-link:hover::after {
  background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.6));
}

.takao-nav-text {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  color: white;
  font-size: 1.1rem;
  font-weight: 900; /* より太く */
  text-align: center;
  z-index: 2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: bottom 0.3s ease;
}

.takao-nav-card:hover .takao-nav-text {
  bottom: 40px; /* ホバー時に文字が少し上に上がる */
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .takao-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .takao-nav-card,
  .takao-nav-link {
    height: 250px;
  }
  .takao-nav-text {
    font-size: 1.1rem;
  }
}
@media screen and (max-width: 501px) {
  .takao-nav {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* --- スクロール前（透明・少し下） --- */
.js-fade-stagger {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* --- スクロール後（表示状態） --- */
.js-fade-stagger.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* --- 左から順番に時間差（ディレイ）をつける --- */
.js-fade-stagger.is-active:nth-child(1) {
  transition-delay: 0.1s;
}
.js-fade-stagger.is-active:nth-child(2) {
  transition-delay: 0.3s;
}
.js-fade-stagger.is-active:nth-child(3) {
  transition-delay: 0.5s;
}
.js-fade-stagger.is-active:nth-child(4) {
  transition-delay: 0.7s;
}

/* スマホ版（2カラム）の時、時間差が長すぎると感じたらここで上書きも可能です */
@media screen and (max-width: 768px) {
  /* スマホは2つずつ出るので、ディレイを短くしてもOK */
  .js-fade-stagger.is-active:nth-child(odd) {
    transition-delay: 0.1s;
  }
  .js-fade-stagger.is-active:nth-child(even) {
    transition-delay: 0.3s;
  }
}

section {
  margin-top: 120px;
}
@media screen and (max-width: 768px) {
  section {
    margin-top: 60px;
  }
}

.takao-in {
  padding: 0;
}

.takao-sec-title {
  font-size: 1.8em;
}

.takao-first {
  font-size: 2em;
  color: #e2421f;
}
/* ============================================================
   aboutとhistoryセクション 修正版CSS
   （文字は動かさず、画像のみアニメーションを適用）
   ============================================================ */

.takao-about {
  width: 100%;
  padding: 60px 0 120px;
  margin: 0;
  background:
    linear-gradient(rgba(255, 179, 102, 0.85), rgba(255, 179, 102, 0.85)),
    url("../img/takaosan/about_bk.png") center center;
  background-size: cover;
  background-attachment: fixed;
  backdrop-filter: blur(6px);
  background-blend-mode: overlay;
}

.takao-about-wrap {
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  padding: 0 0 20px;
}

.takao-about-grid,
.takao-history-grid {
  width: calc(100% - 40px);
  max-width: 900px;
  margin: 0 auto 80px;
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* --- 画像アニメーションの初期状態 --- */
.takao-about-img-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  height: 300px;
  opacity: 0; /* 最初は隠す */
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

/* ABOUT画像：左から */
.js-image-left {
  transform: translateX(-80px);
}

/* HISTORY画像：右から */
.js-image-right {
  transform: translateX(80px);
}

/* 表示時（JSでis-activeが付与された時） */
.js-image-left.is-active,
.js-image-right.is-active {
  opacity: 1;
  transform: translateX(0);
}

.takao-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.takao-about-img-wrap:hover .takao-about-img {
  transform: scale(1.05);
}

/* --- テキストエリア（静止状態） --- */
.takao-about-text {
  flex: 1;
}

.takao-sec-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #2c443b;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.takao-sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 60%;
  height: 5px;
  background: #e2421f;
  border-radius: 5px;
}

.takao-first {
  color: #e2421f;
  font-size: 1.2em;
}

.takao-about-text p {
  line-height: 2;
  font-size: 0.95rem;
  color: #333;
}

.takao-history-timeline p {
  position: relative;
  padding-left: 20px;
  margin-bottom: 1.5rem;
  border-left: 2px solid #ddd;
}

.takao-history-timeline p::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #e2421f;
  border-radius: 50%;
}

.takao-history-timeline strong {
  color: #2c443b;
  font-size: 1rem;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .takao-about-grid,
  .takao-history-grid {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  .takao-about-grid {
    flex-direction: column-reverse;
  }
  .takao-about-img-wrap {
    width: 100%;
  }
  /* スマホは下から出す */
  .js-image-left,
  .js-image-right {
    transform: translateY(30px) translateX(0);
  }
  .js-image-left.is-active,
  .js-image-right.is-active {
    transform: translateY(0) translateX(0);
  }
}

#takao-course {
  padding: 80px 0;
  background-color: rgba(255, 179, 102, 0.05);
}

.takao-course-container {
  width: calc(100% - 40px);
  max-width: 1000px;
  margin: 0 auto;
}

.takao-course-intro {
  margin: 30px auto 50px;
  text-align: center;
}

.takao-course-intro p {
  line-height: 2;
  font-size: 1.1rem;
  font-weight: bold;
  color: #2c443b;
}

.takao-course-intro span {
  display: block;
  font-size: 0.95rem;
  font-weight: normal;
  color: #666;
  margin-top: 10px;
}

/* マップ画像部分 */
.takao-course-img-wrap {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 50px;
  border: 4px solid #f9f5ec;
}

/* マップ画像全体に「サンプル画像」と表示 */
.takao-course-img-wrap::after {
  content: "サンプル画像";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}
/* マップ全体をグレーにする */
.takao-course-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.takao-course-map {
  width: 100%;
  height: auto;
  display: block;
}

/* ポップなバッジ */
.takao-course-badge {
  position: absolute;
  top: 20px;
  right: -10px;
  background: #e2421f;
  color: white;
  padding: 10px 25px;
  font-weight: 900;
  transform: rotate(5deg);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

/* おすすめコース紹介（ポップな2カラム） */
.takao-course-recommend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.recommend-box {
  background: #f9f5ec;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  text-align: left;
  border-bottom: 6px solid #dcd7ca;
}

.trail-number {
  background: #2c443b;
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  vertical-align: middle;
  margin-right: 8px;
}

.recommend-box h3 {
  display: inline-block;
  font-size: 1.25rem;
  color: #2c443b;
  margin-bottom: 15px;
}

.recommend-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .takao-course-recommend {
    grid-template-columns: 1fr;
  }

  .takao-course-badge {
    top: 10px;
    right: 5px;
    font-size: 0.8rem;
  }
}
/* モーダル背景 */
.takao-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.takao-modal-content {
  margin: auto;
  display: block;

  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 60%;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);

  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: zoom 0.3s forwards;
}

@keyframes zoom {
  from {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
  }
}

.takao-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.takao-modal-close:hover {
  color: #e2421f;
}

@media screen and (max-width: 768px) {
  .takao-modal-content {
    max-width: 95%;
    max-height: 80%;
  }
  .takao-modal-close {
    top: 10px;
    right: 20px;
  }
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 1rem 0;
  height: 300px;
}

#takao-scenery {
  padding: 80px 0;
  background-color: #fcfcf9;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 179, 102, 0.85), rgba(255, 179, 102, 0.85)),
    url("../img/takaosan/scenery.png") center center;
  background-size: cover;
  background-attachment: fixed;
  backdrop-filter: blur(6px);
  padding: 60px 0px;
  background-blend-mode: overlay;
}

.scenery-intro {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
}

.takao-scenery-box {
  margin-top: 40px;
}

.scenery-box-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-left: 20px;
}

.scenery-step {
  background: #e2421f;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 50px;
}

.scenery-box-header h3 {
  font-size: 1.4rem;
  color: #2c443b;
  margin: 0;
  font-weight: bold;
}

.slider-wrapper {
  padding: 20px 0 40px;
  cursor: grab;
}

.takao-scenery-grid {
  display: flex;
  gap: 25px;
  transition: transform 0.6s ease;
}

.takao-scenery-card {
  flex: 0 0 260px;
  background: #fff;
  padding: 12px 12px 40px 12px;
  border-radius: 2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease;
}

.card-tape {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 80px;
  height: 25px;
  background: rgba(226, 66, 31, 0.3);
  z-index: 10;
}

.takao-scenery-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.takao-scenery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border: 1px solid #eee;
}

.takao-scenery-card p {
  padding: 15px 5px 0;
  margin: 0;
  font-family: "Marker Felt", "Comic Sans MS", sans-serif;
  font-size: 1rem;
  text-align: center;
  color: #2c443b;
}

@media screen and (max-width: 768px) {
  .takao-scenery-card {
    flex: 0 0 200px;
    padding: 8px 8px 30px 8px;
  }
  .takao-scenery-card img {
    height: 140px;
  }
  .scenery-box-header h3 {
    font-size: 1.1rem;
  }
}

#takao-rule {
  padding: 80px 0 100px;
  background-color: #fff;
}

.rule-intro {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
  font-size: 0.95rem;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.rule-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: #f9f5ec;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.rule-card:hover {
  background: #fff;
  border-color: #e2421f;
  box-shadow: 0 10px 20px rgba(226, 66, 31, 0.1);
  transform: translateY(-5px);
}

.rule-icon-circle {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rule-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.rule-content h3 {
  font-size: 1.1rem;
  color: #e2421f;
  margin: 0 0 8px 0;
  font-weight: 900;
}

.rule-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #2c443b;
  font-weight: bold;
}

@media screen and (max-width: 900px) {
  .rule-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .rule-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .rule-icon-circle {
    margin-bottom: 10px;
  }
}

.takao-modal-clear {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: none;
}

.rule-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 20px;
  border: 1px solid #eee;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: ruleZoom 0.3s ease-out forwards;
}

@keyframes ruleZoom {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

#rule-modal-img-wrap {
  width: 100%;
  height: auto;
  background: #f9f5ec;
}

#rule-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rule-modal-text-body {
  padding: 30px;
}

.modal-detail-title {
  color: #e2421f;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 15px;
}

.modal-detail-text {
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.rule-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 10;
  font-size: 35px;
  color: #fff;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.rule-modal-close:hover {
  color: #e2421f;
}

.btn-takao a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 220px;
  padding: 10px 25px;
  color: #313131;
  transition: 0.3s ease-in-out;
  font-weight: 600;
}
.btn-takao a:before,
.btn-takao a:after {
  position: absolute;
  width: 100%;
  height: 2px;
  content: "";
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  background: #e2421f;
}

.btn-takao a:before {
  top: 0;
  left: 0;
}

.btn-takao a:after {
  right: 0;
  bottom: 0;
}

.btn-takao a:hover:before,
.btn-takao a:hover:after {
  width: 0;
}
