@charset "UTF-8";

/* ====== 共通 ====== */

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

header .navbar-brand {
  width: 20%;
}

header .navbar-brand .logo {
  width: 100%;
}

header .tel {
  font-size: 2rem;
  color: #fff;
}

header .tel a {
  color: #fff;
}

/* ====== TOTOP ====== */
/* ページトップ */
#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 80%;
}

#page-top a {
  background: #666;
  text-decoration: none;
  color: #fff;
  width: 100px;
  padding: 25px 0;
  text-align: center;
  display: block;
  border-radius: 10px;
}

#page-top a:hover {
  text-decoration: none;
  background: #999;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:not(:disabled):not(.disabled).active {
  color: #6c757d !important;
}

/* ====== TOP IMAGE ====== */

header.top-page {
  height: 100vh;
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
}

.jumbotron {
  /*background-image: url(../img/topBackImage.jpg);*/
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
}

.jumbotron .bg-rgba {
  background-color: rgba(255, 255, 255, 0.3);
}

.jumbotron h1 {
  word-wrap: break-word;
}

.jumbotron h2 {
  line-height: 1.8rem;
}

/* ====== TOPPAGE SECTION ====== */

#sec1 .card:nth-of-type(2) {
  border-left: none;
  border-right: none;
}

.ttl-bdr {
  font-size: 3rem;
  line-height: 1.5;
  position: relative;
  margin-bottom: 50px;
}

.ttl-bdr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 5px solid #000;
  width: 12%;
  margin: 0 auto -15px;
}

#sec3 {
  background-image: url("../img/bg-staff.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

#sec4 table {
  width: 100%;
  background-color: #CCC;
  font: 12px;
  color: #666;
  table-layout: fixed;
  border-collapse: collapse;
}

#sec4 table th,
#sec4 table td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

#sec4 table th {
  background-color: #002795;
  color: #fff;
}

#sec4 table td {
  width: 14.2%;
}

#sec4 table td:nth-child(7n) {
  background-color: #5197E0;
  color: #fff;
}

#sec4 table td:nth-child(7n+1) {
  background-color: #FF8A8C;
  color: #fff;
}

/* ====== SNS ====== */
.social img {
  width: 36px;
  height: 36px;
}

/* ====== SNS ====== */

iframe {
  width: 100%;
  height: 450px;
}

/* ====== FOOTER ====== */
.footer-logo {
  width: 50%;
}

/* =============================================
メディアクエリ
============================================= */

/* 大デバイス（デスクトップ, 1200px 未満）
==============================================*/
@media screen and (max-width: 1199.98px) {
  .herounit h1 {
    margin-top: 10rem;
  }
}

/* END */
/* 中デバイス（タブレット, 992px 未満）
==============================================*/
@media screen and (max-width: 991.98px) {
  .container {
    max-width: 740px;
  }
}

/* END */
/* 小デバイス（横向きモバイル, 768px 未満）
==============================================*/
@media screen and (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
  }

  #sec3 {
    background-image: none;
  }

  header .navbar-brand {
    width: 70%;
  }

  header .navbar-brand .logo {
    width: 100%;
  }

  header .navbar-nav {
    border-top: 1px solid #fff;
  }

  .footer-logo {
    width: 100%;
  }

}

/* END */
/* 極小デバイス（縦向きモバイル, 576px 未満）
==============================================*/
@media screen and (max-width: 575.98px) {
  .display-3 {
    line-height: 0.8em;
  }

  .display-4 {
    font-size: 2rem;
    line-height: 1.2;
  }
}

/* END */

.bg-dark {
    background-color: #660000!important;
}

.nodisp {
    display:none;
}



.navbar{

    z-index:100000;

}

.X-Logo {
    z-index: 999999;
}


#bg {

    position:relative;

}

.magic-system {
    position: absolute;
    left: 0;
    top: 0; /* 必要に応じて上下位置も調整 */
}

.X-Logo {
    position: absolute;
    right: 10px;
    top: 10px; /* 必要に応じて上下位置も調整 */
    /*margin-right:10px;*/
}


.X-Logo_image {
    width: 60px;
}




#customHeader {
    /*    min-height : 80px;*/
}
#customHeaderImage {
    min-width: 250px;
}


.jumbotron {
    padding: 0px !important;
    margin: 0px !important;
}

.container {
    width: auto !important;
    height: auto !important;
    padding: 0px !important;
    margin: 0px !important;
}




:root {
    --magic-pink: #ff66ff;
    --magic-glow: #ffb3ff;
    --rune-count: 12;
    --transition-speed: 0.6s;
}


.container_subPage {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

.company_InfoTable {
    max-width: 80%;
/*    border: 1px !important;
    border-style: solid !important;
    border-color: #000000 !important;
*/    margin: 0 auto;
}


.company_InfoTable  tr {
    border: 1px !important;
    border-style: solid !important;
    border-color: #000000 !important;
}

    .company_InfoTable  td {
        border: 1px !important;
        border-style: solid !important;
        border-color: #000000 !important;
    }



.tblHeaderColor{
background-color : #660000!important;


}

.tableParentDiv{

text-align:center;

}


/* --- 背景：魔法の図書室 --- */
.library-bg {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/room.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}


/* 召喚時の震動 */
.shaking {
    animation: screen-shake 0.15s infinite;
}

@keyframes screen-shake {
    0% {
        transform: translate(2px, 1px) rotate(0deg);
    }

    20% {
        transform: translate(-3px, -2px) rotate(-1deg);
    }

    40% {
        transform: translate(-1px, 2px) rotate(1deg);
    }

    100% {
        transform: translate(1px, 2px) rotate(-1deg);
    }
}

/* ホワイトアウト */
.white-out {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    z-index: 1000;
    pointer-events: none;
}

.flash-active {
    animation: flash-anim 1.5s ease-out;
}

@keyframes flash-anim {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 魔法全体コンテナ */
.magic-system {
    position: absolute;
    top: 73.5%;
    left: 50%;
    width: 850px;
    height: 850px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    pointer-events: none;
}

/* --- 【光の柱】 --- */
.light-pillar {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 700px;
    height: 0px;
    background: linear-gradient(to top, #fff 0%, var(--magic-pink) 15%, transparent 100%);
    filter: blur(40px);
    opacity: 0;
    transform: translateX(-50%) rotateX(0deg);
    transform-origin: bottom center;
    transition: height 1.8s ease-in, opacity 1s;

}

.magic-system.burst .light-pillar {
    height: 2500px;
    opacity: 0.85;


    /*z-index:10000;*/
}

/* --- 召喚キャラクター：中央配置・足先視認位置 --- */
.summon-char {
    position: absolute;
    bottom: 50%;
    left: 50%;
    width: 250px;
    z-index: 100;
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.8);
    filter: brightness(20) blur(30px);
    pointer-events: none;
    transition: transform 4s cubic-bezier(0.1, 0.7, 0.3, 1), opacity 2s, filter 4s;
}

    .summon-char.active {
        opacity: 1;
        /* 足先が魔法陣の中心でしっかり見える位置 */
        transform: translateX(-50%) translateY(-60px) scale(1.3);
        filter: brightness(1) blur(0);
    }

    .summon-char.floating {
        animation: float-anime 3s ease-in-out infinite alternate;
    }

@keyframes float-anime {
    0% {
        transform: translateX(-50%) translateY(-60px) scale(1.3);
    }

    100% {
        transform: translateX(-50%) translateY(-85px) scale(1.32);
    }
}

/* --- 床の魔法陣本体 --- */
.magic-platform {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotateX(81.5deg);
    transform-style: preserve-3d;
    cursor: pointer;
    pointer-events: auto;
    background: radial-gradient(circle, rgba(10, 0, 10, 0.9) 40%, rgba(30, 0, 30, 0.3) 65%, transparent 75%);
    border-radius: 50%;
    transition: filter 0.1s ease-out;
}

.magic-system.burst .magic-platform {
    filter: brightness(3) drop-shadow(0 0 100px var(--magic-pink)) !important;
}

/* --- 魔法陣デザイン：2回目の複雑な形を完全復元 --- */
.part {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--magic-glow);
    box-shadow: 0 0 15px var(--magic-pink), inset 0 0 15px var(--magic-pink);
    box-sizing: border-box;
}

/* 各層の回転 */
.layer-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rot-plus 40s linear infinite;
}

.circle-heavy {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-width: 10px;
    border-style: double;
}

.circle-thin {
    width: 95%;
    height: 95%;
    border-radius: 50%;
    border-width: 2px;
}

.layer-middle {
    position: absolute;
    width: 85%;
    height: 85%;
    top: 7.5%;
    left: 7.5%;
    animation: rotate-minus 15s linear infinite;
    transform-style: preserve-3d;
}

.triangle {
    width: 90%;
    height: 90%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--magic-pink);
    opacity: 0.3;
    border: none;
}

.tri-1 {
    transform: translate(-50%, -50%) rotate(0deg);
}

.tri-2 {
    transform: translate(-50%, -50%) rotate(180deg);
}

.runes-container {
    position: absolute;
    width: 100%;
    height: 100%;
    color: var(--magic-glow);
    font-family: serif;
    font-weight: bold;
    font-size: 42px;
    text-shadow: 0 0 20px var(--magic-pink);
}

.rune {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    transform: rotate(calc(var(--i) * 30deg));
}

.layer-inner {
    position: absolute;
    width: 55%;
    height: 55%;
    top: 22.5%;
    left: 22.5%;
    animation: rotate-plus 10s linear infinite;
}

.square {
    width: 100%;
    height: 100%;
}

.sq-1 {
    transform: translate(-50%, -50%) rotate(22.5deg);
}

.sq-2 {
    transform: translate(-50%, -50%) rotate(67.5deg);
}

.circle-dashed {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border-style: dashed;
    border-width: 5px;
}

.core {
    width: 25%;
    height: 25%;
    background: #fff;
    border-radius: 50%;
    filter: blur(15px);
    opacity: 1;
    box-shadow: 0 0 60px 20px #fff;
}

@keyframes rot-plus {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotate-minus {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


