/********************************************************/
/* 変数 */
/********************************************************/
:root {
  --base-color: #fff;
  --main-color: #2176FF;
  --accent-color: #EF233C;
  --text-main-color: #000;
  --text-sub-color: #FFF;
  --main-padding: 7rem;
  --main-margin: 5rem;
  --sp-main-padding: 3.5rem;
  --sp-main-margin: 2.5rem;
}


/********************************************************/
/* 共通CSS */
/********************************************************/
html,
body {
  width: 100%;
}

body {
  position: relative;
  background-color: #fff;
  color: var(--text-main-color);
  line-height: 2em;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.tb {
  display: none;
}

.sp {
  display: none;
}
t
.tb-br {
  display: none;
}

.sp-br {
  display: none;
}

.vertical-text {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}

/* （タブレット表示） */
@media screen and (max-width: 1024px) {
  br {
    display: none;
  }

  .tb {
    display: block;
  }

  .tb-pc {
    display: none;
  }

  .tb-br {
    display: block;
  }

  .sp-br {
    display: none;
  }
}

/* （スマホ表示） */
@media screen and (max-width: 768px) {
  .tb-br {
    display: none;
  }

  .sp-br {
    display: block;
  }

  .pc {
    display: none;
  }

  .tb-pc {
    display: none;
  }

  .tb {
    display: block;
  }

  .sp {
    display: block;
  }

  br {
    display: none;
  }
}

a {
  display: block;
  text-decoration: none;
  transition: 0.5s;
  color: #000000;
}

img {
  width: 100%;
  object-fit: cover;
}

a:visited {
  color: var(--text-sub-color);
}

a:hover {
  transition: 0.5s;
  opacity: 0.7;
}

li:hover {
  transition: 0.5s;
  opacity: 0.7;
}

figure {
  margin: 0;
}


/***********************************/
/********** 共通パーツ **********/
/***********************************/
.inner {
  width: min(100% - 2rem, 1000px);
  margin-inline: auto;
}

.medium__inner {
  width: min(100% - 2rem, 900px);
  margin-inline: auto;
}

.small__inner {
  width: min(100% - 2rem, 800px);
  margin-inline: auto;
}

.section {
  width: 100%;
  padding-top: var(--main-padding);
  padding-bottom: var(--main-padding);
}

.lower__contact {
  padding-top: 0;
}

.main__text__color {
  color: var(--accent-color);
}

.common__title__contents {
  width: 40%;
  text-align: center;
  margin-inline: auto;
}

.common__title {
  font-size: clamp(1.5rem, 1.3235rem + 0.8824vw, 1.875rem);
}

.common__title__line {
  margin-top: 0.5rem;
  width: 100%;
  display: flex;
}

.common__title__red-line {
  content: "";
  height: auto;
  display: inline-block;
  width: 50%;
  height: 5px;
  background-color: var(--accent-color);
}

.common__title__blue-line {
  content: "";
  height: auto;
  display: inline-block;
  width: 50%;
  height: 5px;
  background-color: #00A6FB;
}

.common__subtitle {
  font-size: clamp(0.875rem, 0.8162rem + 0.2941vw, 1rem);
}


/* （タブレット表示） */
@media screen and (max-width: 1024px) {
  .inner {
    max-width: 740px;
  }
}

/* （スマホ表示） */
@media screen and (max-width: 768px) {
  .inner {
    max-width: 540px;
  }

  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .common__title__contents {
    width: 80%;
  }

}


/***********************************/
/********** アニメーション **********/
/***********************************/
/* テキストアニメーション */
.text-animation span {
  opacity: 0;
}

/* フェードイン(初期値) */
.js-fadeUp {
  opacity: 0; /* 最初は非表示 */
  transform: translateY(10px); /* 下に30pxの位置から */
  transition: opacity 0.8s, transform 0.8s; /* 透過率と縦方向の移動を0.8秒 */
}
/* フェードイン(スクロールした後) */
.js-fadeUp.is-inview {
  opacity: 1; /* 表示領域に入ったら表示 */
  transform: translateY(0); /* 30px上に移動する */
  transition-delay: 0.3s; /* フェード開始を0.5秒遅らせる */
}

/* カバースライド(初期値) */
.js-slide-left {
  opacity: 0; /* 最初は非表示 */
  transform: translateX(-5%); /* 下に30pxの位置から */
  transition: opacity 0.8s, transform 0.8s; /* 透過率と縦方向の移動を0.8秒 */
}
/* カバースライド(スクロールした後) */
.js-slide-left.is-inview {
  opacity: 1; /* 表示領域に入ったら表示 */
  transform: translateX(0); /* 30px上に移動する */
  transition-delay: 0.2s; /* フェード開始を0.5秒遅らせる */
}

/* カバースライド(初期値) */
.js-slide-right {
  opacity: 0; /* 最初は非表示 */
  transform: translateX(5%); /* 下に30pxの位置から */
  transition: opacity 0.8s, transform 0.8s; /* 透過率と縦方向の移動を0.8秒 */
}
/* カバースライド(スクロールした後) */
.js-slide-right.is-inview {
  opacity: 1; /* 表示領域に入ったら表示 */
  transform: translateX(0); /* 30px上に移動する */
  transition-delay: 0.5s; /* フェード開始を0.5秒遅らせる */
}

/********************************************************/
/* 斜めから出てくるアニメーション */
/********************************************************/
.slide-skew {
  opacity: 0;
}

.slide-skew.is-inview {
  animation: slide-skew .7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes slide-skew {
  0% {
    transform: translate(180px,30px);
    opacity: 0;
  }
  100% {
    transform: translate(0,0);
  }
  20%,100% {
    opacity: 1;
  }
}



/*========= LoadingのためのCSS ===============*/

/* Loading背景画面設定　*/
#splash {
    /*fixedで全面に固定*/
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 999;
  background:#fff;
  text-align:center;
  color:#000;
}

/* Loading画像中央配置　*/
#splash_logo {
  width: 20%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Loading アイコンの大きさ設定　*/
#splash_logo img {
  width: 100%;
}

/* fadeUpをするアイコンの動き */

.fadeUp{
animation-name: fadeUpAnime;
animation-duration:0.5s;
animation-fill-mode:forwards;
opacity: 0;
}

@keyframes fadeUpAnime{
  from {
    opacity: 0;
  transform: translateY(100px);
  }

  to {
    opacity: 1;
  transform: translateY(0);
  }
}

.sp {
  display: none;
}



/********************************************************/
/* ハンバーガーメニュー  */
/********************************************************/
.hamburger {
  display: none;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
    position: fixed;
    top: .8rem;
    right: .5rem;
    background-color: var(--main-color);
    border-color: transparent;
    border-radius: 3px;
    z-index: 5555;
    width: 42px;
    padding: 7px;
  }

  /* ハンバーガーメニューの線 */
  .hamburger span {
    background-color: var(--base-color); /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
    display: block;
    height: 3px;
    border-radius: 3px;
    position: relative;
    -webkit-transition: ease 0.5s;
    transition: ease 0.5s;
    width: 100%;
    z-index: 15;
  }

  .hamburger__text {
    background-color: var(--base-color);
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
  }

  .hamburger__text.active {
    display: none;
  }

  .hamburger__close__text {
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 700;
  }

  .hamburger span:nth-child(1) {
    top: 0;
  }

  .hamburger span:nth-child(2) {
    margin: 6px 0;
  }

  .hamburger span:nth-child(3) {
    top: 0;
  }

  /* ハンバーガーメニュークリック後のスタイル */

  .hamburger.active span:nth-child(1) {
    top: 9px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }

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

  .hamburger.active span:nth-child(3) {
    top: -9px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
}

/********************************************************/
/* ドロワーメニュー */
/********************************************************/
.drawer__menu {
  display: none;
}

.header__drawer__menu {
  width: 100%;
}

.header__text {
  margin-left: 2rem;
  font-size: 2.2rem;
}

.header__drawer__link-btn {
  width: 100%;
  position: relative;
}

.header__drawer__link-btn::before {
  content: "";
  height: 65%;
  width: 3px;
  background-color: var(--accent-color);
  position: absolute;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
}

.header__drawer__link-btn a {
  display: block;
  font-weight: 700;
  padding: 1rem 0;
  color: var(--text-main-color);
  font-size: 14px;
}

.drawer__menu.active {
  transition: all 0.5s; /* トランジションにはopacityを使用 */
  visibility: visible;
  opacity: 1;
}   

.header__drawer__list__link {
  margin-top: .5rem;
}

@media screen and (max-width: 768px) {
.drawer__menu {
  display: block;
  transition: all 0.5s;
  visibility: hidden;
  content: "";
  height: auto;
  position: fixed;
  top: 3,5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100vh;
  z-index: 265;
  opacity: 0;
  background: var(--base-color);
  padding: 8rem 3rem;
}

  .header__drawer__link-btn a {
    padding: 0.4rem 0;
  }
}


/********************************************************/
/* サイドメニュー */
/********************************************************/
.side__menu {
  position: fixed;
  background-color: #fff;
  border: solid 0.2rem #fff;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 7%;
  max-width: 5rem;
  z-index: 100;
  gap: .2rem;
}

.side__list:first-child {
  margin-top: 0;
}

.side__list {
  margin-top: .2em;
}

@media screen and (max-width: 768px) {
.side__menu {
    top: auto;
    bottom: -26px;
    right: 0;
    width: 55%;
    max-width: 13rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

  .side__list {
    max-width: 7rem;
    margin-top: 0;
  }
}


/* --- テキストマーカー用のスタイル（修正版） --- */
.about__text .marker {
  background: linear-gradient(transparent 60%, #ffff80 60%);
  font-weight: bold;
}

/* --- 赤色マーカー用のスタイル --- */
.marker-red {
  background: linear-gradient(transparent 60%, #ffb3b3 60%); /* やわらかい赤色のマーカー */
  font-weight: bold;
}