/********** TAKAKUWA CSS **********/
:root {
    --primary: #ea9744;
    --secondary: #0d318f;
    --light: #ffebc4;
    --dark: #0d318f;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

h1,
h2 {
  font-family: "Zen Antique", serif;
}

h3,
h4,
h5,
h6
p
a
 {
  font-family: "Noto Sans JP", sans-serif;
}

.body {
    margin: 0 !important;
    padding: 0 !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    -radius: 8.5px;
}


/*** Navbar ***/
.nav-bar {
    position: relative;
    margin-top: 45px;
    padding: 0 3rem;
    transition: .5s;
    z-index: 9999;
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(14,46,80,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
.navbar-light .navbar-toggler {
    border-color: #FFFFFF;
}


.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
    border-color: #FFFFFF;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
    border-color: #FFFFFF;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        margin: 0;
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #0d318f;
    }
}

.navbar-light .navbar-brand {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: 100%;
        margin-top: 0;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.header-space {
        margin-top: 135px;
}

.header-carousel .owl-carousel-item img {
  width: 80%;
  height: 80%;
}


.header-carousel .owl-carousel-item img {
  width: 80%;
  height: 80%;
}

/*** Header ***/
@media (min-width: 992px) {
    .header {
        margin-top: -120px;
    }
}

.header-carousel .owl-nav {
    display: none !important;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.header-bg {
   background-image:url(../img/mosirnaa-ks.png);
   background-attachment: scroll;
   background-repeat: no-repeat;
   background-position: center center;  
   background-size: cover;
   height: 100vh;
}


@media (max-width: 768px) {
    .header-carousel .owl-nav {
        left: 25px;
    }
}


.breadcrumb-item + .breadcrumb-item::before {
    color: #DDDDDD;
}


/*** Icon ***/
.icon {
    padding: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF !important;
    border-radius: 50px;
}


/*** About ***/
.about-img img {
    position: relative;
    z-index: 2;
}

.about-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: skew(20deg);
    z-index: 1;
}


/*** Category ***/
.cat-item div {
    background: #FFFFFF;
    border: 1px dashed rgba(0, 185, 142, .3);
    transition: .5s;
}

.cat-item:hover div {
    background: var(--primary);
    border-color: transparent;
}

.cat-item div * {
    transition: .5s;
}

.cat-item:hover div * {
    color: #FFFFFF !important;
}


/*** Property List ***/
.nav-pills .nav-item .btn {
    color: var(--dark);
}

.nav-pills .nav-item .btn:hover,
.nav-pills .nav-item .btn.active {
    color: #FFFFFF;
}

.property-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.property-item img {
    transition: .5s;
}

.property-item:hover img {
    transform: scale(1.1);
}

.property-item .border-top {
    border-top: 1px dashed rgba(0, 185, 142, .3) !important;
}

.property-item .border-end {
    border-right: 1px dashed rgba(0, 185, 142, .3) !important;
}


.team-item {
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
    transition: .5s;
}

.team-item .btn {
    color: var(--primary);
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(0, 0, 0, .15);
}

.team-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Testimonial ***/
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 40px;
    font-size: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #ea9744;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

.text-dark {
    color: #0d318f;
}

.text-org {
    color: #ea9744;
}

.text-yel {
    color: #f0f294;
}


.container {
  margin-top: 20px;
}

.container-s {
  margin-top: 0px;
}



html {
  scroll-behavior: smooth;
}

select, option{
      width:200px;
    font-size: 16px;
      border-radius: 20px;
      padding:5px 10px;
}
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}
#content, 
.container-xxl, 
.container-fluid, 
.py-5, 
.pt-5, 
.pb-5,
section:last-of-type,
footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.dropdown-menu-right {
    text-align: right;
}

.ceo-area {
  background: url(../img/tk-bg-01.jpg) center;
  background-size: cover;
}
.ceo-content {
/*** 
  text-shadow: 3px 3px 3px #666666;
 ***/
}
.text-bg {
   background-color: rgba(255, 255, 255, 0.5);
   backdrop-filter: blur(0.5px);
  padding: 20px;
  border-radius: 8.5px ;
}
@media (max-width: 992px) {
   .c-name h4 {
    font-size: 14px;
   }
}

.bg-white-c {
   background-color: rgba(255, 255, 255, 0.9);
   backdrop-filter: blur(0.5px);
}

.bg-light {
   backdrop-filter: blur(0.5px);
  padding: 20px;
  border-radius: 8.5px ;
}

.bg-h3 {
   background-color: #f5ecce;
   backdrop-filter: blur(0.5px);
  padding: 10px;
  margin-top: 10px;
  border-radius: 8.5px ;
}

.text-sd {
  text-shadow: 3px 3px 3px #666666;
}

.text-mrg {
  margin-left: 70px;
  margin-bottom: 2px;
}

.course-img {
    width: 20%;
}

  .msrn-img {
    width: 10%;
    height:10%;
   }



@media (max-width: 992px) {

  .text-sd {
        margin-top: 50px;
        font-size: 20px;
   }

  .msrn-img {
    width: 40%;
    height:40%;
   }

   .header-space {
           margin-top: 0px;
   }

   .container {
           margin-top: 120px;
   }
.container-s {
  margin-top: 0px;
}



   .text-mrg {
  margin-left: 20px;
   }

   .header-carousel .owl-carousel-item img {
     width: 100%;
     height: 100%;
   }
   :target {
     scroll-margin-top: 85px;
   }
   .course-img {
       width: 45%;
   }
}

.feed-card {
 padding: 0px 0px 0px 0px;
 margin:  0px 0px 10px 0px; 
 text-decoration: none;
 color: inherit;
 float:  left;
}

.feed-card-inner {
   width: 100%;
   height: 100%;
   aspect-ratio: 1 / 1;
}

.feed-card-inner * {
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
  object-fit: cover; 
  object-position: center; 
 border-radius: 8.5px;
}

.feed-caption {
 padding: 0px 6px 0px 6px;
 font-size: 0.85rem;
 line-height: 1.4;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
 word-break: break-all; 
}

.row-cols-lg-5 > * {
 flex: 0 0 auto;
 width: 20%; 
}

    .feed-date {
        font-size: 0.7rem;
    }
    .feed-text {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }


@media (max-width: 991.98px) {

.row-cols-lg-5 > * {
 flex: 0 0 auto;
 width: 32%; 
}
.feed-card {
 margin:  0px -7px 5px 0px; 
}

}
/* =========================================
   共通
   ========================================= */

.instafeed .feed-card {
  display: flex;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ddd;
  padding: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.instafeed .feed-card:hover {
  border-color: #ea9744;
  color: #8b6a3d;
}

.instafeed .feed-card:hover img {
  opacity: 0.9;
}

.feed-image {
  position: relative;
  overflow: hidden;
}

.feed-image img,
.feed-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-date {
  font-size: 12px;
  color: #777;
}

.feed-text {
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================
   TOP（2×2 grid・画像のみ）
   ========================================= */

.instafeed[data-type="top"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 100%;
  margin: 0 auto;
}
@media (max-width: 991.98px) {
.instafeed[data-type="top"] {
  grid-template-columns: repeat(2, 1fr);
  max-width: 70%;
}
}

.instafeed[data-type="top"] .feed-card {
  display: block;
  padding: 0;
  margin: 5px auto;
  border-radius: 8.5px;
}

.instafeed[data-type="top"] .feed-image {
  aspect-ratio: 1 / 1;
  border-radius: 8.5px;
}

.instafeed[data-type="top"] .feed-body {
  display: none;
}

/* =========================================
   GALLERY（正方形＋下に2行）
   ========================================= */

.instafeed[data-type="gallery"] .feed-card {
  display: block;
  border-radius: 8.5px;
}

.instafeed[data-type="gallery"] .feed-image {
  aspect-ratio: 1 / 1;
  border-radius: 8.5px;
}

.instafeed[data-type="gallery"] .feed-body {
  padding: 6px;
}

.instafeed[data-type="gallery"] .feed-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  font-size: 13px;
}
/* =========================================
   NEWS（サムネ＋日付＋2行）
   ========================================= */

.instafeed[data-type="news"] .feed-image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 8.5px;
}

.instafeed[data-type="news"] .feed-body {
  flex: 1;
}

.instafeed[data-type="news"] .feed-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   STORY バッジ
   ========================================= */

.badge-story {
  font-size: 12px;
  font-weight: bold;
  color: #ea9744;
  margin-right: 4px;
}
/* =========================================
   NEWS：横幅を常に100%に固定
   ========================================= */

.instafeed[data-type="news"] > * {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  border-radius: 8.5px;
}

/* ===========================
   Design Images
=========================== */

.design-area {
}

.design-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* 共通 */
.design-block {
  position: relative;
  overflow: hidden;
}

.design-block .feed-card {
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

/* サイズ別 */
.design-large {
  width: 100%;
}

.design-medium {
  width: 48%;
}

.design-small {
  width: 20%;
}

/* レスポンシブ */
@media (max-width: 992px) {
  .design-medium {
    width: 100%;
  }
  .design-small {
    width: 50%;
  }
}

@media (max-width: 576px) {
  .design-small,
  .design-medium,
  .design-large {
    width: 100%;
  }
}

/* キャプション非表示（デザイン用） */
.design-area .feed-text {
  display: none;
}
/* ===========================
   Design Images - 日付非表示
=========================== */

/* 日付テキストを完全に消す */
.design-area .feed-date,
.design-area time,
.design-area .feed-meta,
.design-area .feed-info {
  display: none !important;
}
/* ===== ギャラリー hover オーバーレイ ===== */
.gallery-card {
  position: relative;
  overflow: hidden;
}

.feed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gallery-card:hover .feed-overlay {
  opacity: 1;
}

.feed-insta {
  color: #ffffff;
  font-size: 20px;
  margin-top: 6px;
  align-self: flex-end;
}

.feed-insta:hover {
  color: #ea9744;
  opacity: .7;
}

.badge-story {
  color: #ea9744;
  font-weight: bold;
  margin-bottom: 4px;
}
/* ===== ギャラリー：オーバーレイ文字色調整 ===== */
.instafeed[data-type="gallery"] .feed-overlay {
  color: #fff;
}

.instafeed[data-type="gallery"] .feed-overlay .feed-date {
  color: rgba(255,255,255,.85);
}

.instafeed[data-type="gallery"] .feed-overlay .feed-text {
  color: #fff;
}
.instafeed[data-type="gallery"] .feed-overlay .badge-story {
  color: #ea9744;
  font-weight: bold;
  letter-spacing: .05em;
}
/* ===============================
   CMS NEWS 表示
================================ */

.cms-news-row {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 10px 12px;
  border-bottom: 1px solid #ccc;
  margin-left: 2%;
  margin-bottom: 0px;
  font-size: 14px;
  width: 98%;
  color: #0d318f;          /* 青くしない */
}

.cms-news-row:hover {
  background: #f0ecdf;
}

.cms-news-date {
  width: 110px;
  flex-shrink: 0;
}

.cms-news-text {
  flex: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0d318f;          /* 青くしない */
}

.cms-news-file {
  width: 100px;
  text-align: center;
  flex-shrink: 0;
  border: 1px solid #0d318f;
  margin:0 0 0 auto;
  border-radius: 8.5px;
}

.cms-news-file:hover  {
  width: 100px;
  text-align: center;
  flex-shrink: 0;
  border: 1px solid #ea9744;
  margin:0 0 0 auto;
  border-radius: 8.5px;
}

.cms-news-url a {
  text-decoration: none;
  color: #0d318f;          /* 青くしない */
}

.cms-news-url a:hover {
  color: #ea9744;
}

.cms-news-file a {
  text-decoration: none;
  color: #0d318f;          /* 青くしない */
}

.cms-news-file a:hover {
  color: #ea9744;
}
.cms-news-file:empty {
    display: none;
}
/* ===================================
   CMS Docs (各種資料)
=================================== */

.cms-doc-row {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 10px 12px;
  border-bottom: 1px solid #ccc;
  margin-left: 2%;
  margin-bottom: 0px;
  font-size: 14px;
  width: 98%;
}

.cms-doc-row:hover {
  background: #f0ecdf;
}

.cms-doc-date {
  width: 110px;
  flex-shrink: 0;
}

.cms-doc-text {
  flex: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cms-doc-file {
  width: 100px;
  text-align: center;
  flex-shrink: 0;
  border: 1px solid #0d318f;
  margin:0 0 0 auto;
  border-radius: 8.5px;
}
.cms-doc-file:hover  {
  width: 100px;
  text-align: center;
  flex-shrink: 0;
  border: 1px solid #ea9744;
  margin:0 0 0 auto;
  border-radius: 8.5px;
}

.cms-doc-url a {
  color: inherit;          /* 青くしない */
  text-decoration: none;
}

.cms-doc-url a:hover {
  color: #ea9744;
}

.cms-doc-file a {
  color: inherit;          /* 青くしない */
  text-decoration: none;
}

.cms-doc-file a:hover {
  color: #ea9744;
}
.cms-doc-file:empty {
    display: none;
}
.cms-doc-empty {
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 10px 12px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 0px;
  margin-left: 2%;
  font-size: 14px;
  width: 98%;
  color: #999;
}
/* 完了メッセージのスタイル */
#hidden-complete-msg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ea9744;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  z-index: 9999;
  display: none;
  pointer-events: none;
}
.b-line {
  border-top: 1px solid #ccc;
  width: 100%;
  text-align: center;
}
