/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/* Add your custom styles here... */

a {
	-webkit-transition: 0.4s;
    -moz-transition: 0.4s;
    -ms-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

@media print {
 a[href]:after {
 content: "" !important;
 }

 abbr[title]:after {
 content: "" !important;
 }
}

@media (max-width: 768px) {
	.fl-col-small,
	.fl-col-small:not(.fl-col-small-full-width) {
		max-width: 100%;
	}
}

.block_link {
	cursor: pointer;
}

.block_link:hover {
	opacity: 0.9;
}

/*グリッドのガターサイズ*/
.row-0{
    margin-left:0px;
    margin-right:0px;
}
.row-0 > div{
	padding-right:0px;
	padding-left:0px;
}
.row-10{
    margin-left:-5px;
    margin-right:-5px;
}
.row-10 > div{
	padding-right:5px;
	padding-left:5px;
}
.row-20{
    margin-left:-10px;
    margin-right:-10px;
}
.row-20 > div{
	padding-right:10px;
	padding-left:10px;
}
.row-30{
    margin-left:-15px;
    margin-right:-15px;
}
.row-30 > div{
	padding-right:15px;
	padding-left:15px;
}
.row-40{
    margin-left:-20px;
    margin-right:-20px;
}
.row-40 > div{
	padding-right:20px;
	padding-left:20px;
}

/*transition & delay*/
.transition10{transition:all 1s cubic-bezier(0.190, 1.000, 0.220, 1.000);}
.delay01{transition-delay: .1s;}
.delay02{transition-delay: .2s;}
.delay03{transition-delay: .3s;}
.delay04{transition-delay: .4s;}
.delay05{transition-delay: .5s;}
.delay06{transition-delay: .6s;}
.delay07{transition-delay: .7s;}
.delay08{transition-delay: .8s;}
.delay09{transition-delay: .9s;}
.delay10{transition-delay: 1s;}
.delay11{transition-delay: 1.1s;}

/*スライドバナー*/
.slideBanner .slick-slide:not(.slick-center) {
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	filter: grayscale(100%);
	transition: 0.2s linear;
}

/*MW WP FORM Generatorのスタイルでg-standardを選択した時のデザインを調整*/
.mw_wp_form_g-standard table {
    border-collapse:separate;
    border-spacing: 0px 10px;
}

.mw_wp_form_g-standard table,
.mw_wp_form_g-standard table th,
.mw_wp_form_g-standard table td {
    border:none;
    font-size: 14px;
    display: block;
    width: auto;
}

.mw_wp_form_g-standard table th {
    position: relative;
    padding: 1.2em;
	background-color: #efefef;
    width: 100%;
}

.mw_wp_form_g-standard.mw_wp_form_confirm table th {
    padding: 1em;
}

.mw_wp_form_g-standard table td {
	background-color: #fbfbfb;
}

.mw_wp_form_g-standard table th .require {
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 0px;
}

.mw_wp_form_g-standard table th .require::after {
    content: "必須";
    position: absolute;
    top: 0px;
    right: 0px;
    font-size: 10px;
    width: 40px;
    background-color: #E53838;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
    padding: 3px;
}

.mw_wp_form_g-standard.mw_wp_form_confirm table th .require::after {
    top: 18px;
    right: 15px;
}

.mw_wp_form_g-standard table tr {
	margin-bottom: 20px;
    display: block;
}
.mw_wp_form_g-standard table th{
    border-bottom: none;
    padding: 0.5em;
}
.mw_wp_form_g-standard table th .require::after {
    top: 0px !important;
    right: 0px !important;

}

.mw_wp_form_g-standard label input[type="checkbox"],
.mw_wp_form_g-standard label input[type="radio"] {
    margin-right: 0px !important;
}

.mw_wp_form_g-standard label span {
    transform: translateY(-2px);
    display: inline-block;
}

/*テキストエディタモジュールのclassにbgWhiteBoxを設定する*/
.bgWhiteBox {
    position: relative;
}

.bgWhiteBox p {
    position: relative;
    display: inline-block;
    background-color: #ffffff;
    padding: 15px;
    z-index: 10;
}

.table-scroll{
    overflow: auto;
    white-space: nowrap;
}

/* --- Layout Styles --- */
body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	position: relative;
	min-height: 100vh;
	width: 100vw;
	overflow-x: hidden;
    font-family: "Zen Maru Gothic", sans-serif;
}

.fl-page {
	position: absolute;
	top: 0;
	right: 200px;
	width: 450px !important;
	min-height: 100vh;
	background: #fff;
	box-shadow: -2px 0 15px rgba(0,0,0,0.15);
	transition: all 0.3s;
	z-index: 10;
	overflow-y: auto;
}

.fl-sidebar-area {
	position: fixed;
	top: 0;
	right: 0;
	width: 200px;
	height: 100vh;
	box-shadow: -2px 0 15px rgba(0,0,0,0.15);
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
}

.fl-sidebar-area .logo {
	font-size: 1.5em;
	font-weight: bold;
	margin-bottom: 32px;
}

.fl-sidebar-area nav {
	width: 100%;
}

.fl-sidebar-area nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	width: 100%;
}

.fl-sidebar-area nav ul li {
	text-align: center;
}

.fl-sidebar-area nav ul li a {
	color: #fff;
	text-decoration: none;
	font-size: 1em;
	transition: color 0.2s;
}

.fl-sidebar-area nav ul li a:hover {
	color: #ffb400;
}

@media (max-width: 650px) {
	.fl-slideshow-area,
	.fl-sidebar-area {
		display: none !important;
	}
	.fl-page {
		position: static;
		width: 100vw !important;
		right: 0;
		height: auto;
		box-shadow: none;
	}
}

@media (min-width: 651px) {
	.fl-slideshow-area {
		width: calc(100vw - 650px);
		min-width: 0;
		max-width: calc(100vw - 650px);
		display: block;
	}
}

/* === スライドショー修正版（Slick fade強制適用） === */

/* スライドショーエリア */
.fl-slideshow-area {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1;
    background: #000;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fl-slideshow-area.content-loaded {
    opacity: 1;
}

.fl-slideshow-area .slick-slide {
    height: 100vh;
}

/* スライドアイテム */
.fl-slideshow-item {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* アクティブなスライドのズームアニメーション */
.fl-slideshow-item.zoom-active {
    animation: continuousZoom 6000ms linear infinite;
}

/* 連続ズームアニメーション */
@keyframes continuousZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Hide dots and arrows */
.fl-slideshow-area .slick-dots,
.fl-slideshow-area .slick-arrow {
    display: none !important;
}

/* Slick内部構造の調整 */
.fl-slideshow-area .slick-list,
.fl-slideshow-area .slick-track {
    height: 100vh;
}

.fl-slideshow-area .slick-track .slick-slide {
    height: 100vh;
}

/* Slick fade効果の強制適用 */
.fl-slideshow-area.slick-slider .slick-slide {
    opacity: 0;
    transition: opacity 2000ms ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.fl-slideshow-area.slick-slider .slick-slide.slick-active {
    opacity: 1;
    z-index: 2;
}

.fl-slideshow-area.slick-slider .slick-slide.slick-current {
    opacity: 1;
    z-index: 2;
}

/* フェード中のスライド */
.fl-slideshow-area.slick-slider .slick-slide {
    transform: scale(1);
    transition: transform 4s linear;
}
.fl-slideshow-area.slick-slider .slick-slide[aria-hidden="false"] {
    opacity: 1;
    z-index: 2;
}

/* キャプション */
.fl-slideshow-caption {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
    width: auto;
}

.fl-slideshow-caption-line {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    padding: 5px 10px;
    display: inline-block;
    white-space: nowrap;
    box-sizing: border-box;
}

#sNav {
	bottom: 10px;
    position: absolute;
	font-size: 12px;
}

#sNav a {
	padding-top: 5px;
	padding-bottom: 5px;
}

/* === 「ひみつ基地」メニューに鍵アイコンを追加 === */
#menu-item-784 .menu-item-text::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	transform: translateY(-2px);
}

.pp-offcanvas-close {
	display: none !important;
}

/* === カスタムローディングアニメーション === */
#fl-loading-overlay {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

#fl-loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* プログレスバー（上部ボーダー） */
.fl-loading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, 
        #ff6b6b 0%, 
        #4ecdc4 25%, 
        #45b7d1 50%, 
        #96ceb4 75%, 
        #feca57 100%
    );
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    z-index: 100000;
}

/* ローディングコンテンツ */
.fl-loading-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    animation: fadeInContent 1.5s ease 0.8s forwards;
}

/* 画像コンテナ（フルスクリーン背景） */
.fl-loading-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.fl-loading-image img {
    width: 100vw;
    height: 100vh;
    object-fit: contain;
    object-position: center;
    filter: brightness(1.02) contrast(1.05);
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* 画像が読み込まれた状態 */
.fl-loading-image.loaded img {
    opacity: 1;
    animation: gentleZoomIn 6s ease-out forwards;
}

/* メッセージ画像 */
.fl-loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 80%;
    max-height: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

/* メッセージ表示状態 */
.fl-loading-message.show {
    opacity: 1;
    visibility: visible;
    animation: fadeInMessage 1.2s ease forwards;
}

.fl-loading-message img {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* アニメーション定義 */
@keyframes fadeInContent {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    1% {
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeInMessage {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

/* ズームインアニメーション */
@keyframes gentleZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .fl-loading-message {
        max-width: 90%;
        max-height: 25%;
    }
    
    .fl-loading-message img {
        max-width: 400px;
    }
    
    .fl-loading-progress {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .fl-loading-message {
        max-width: 95%;
        max-height: 20%;
    }
    
    .fl-loading-message img {
        max-width: 300px;
    }
    
    .fl-loading-progress {
        height: 5px;
    }
}

/* アニメーション無効化設定への対応 */
@media (prefers-reduced-motion: reduce) {
    .fl-loading-content,
    .fl-loading-message {
        animation: none;
        visibility: visible;
    }
    
    .fl-loading-message.show {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    
    .fl-loading-image.loaded img {
        animation: none;
        transform: scale(1);
        opacity: 1;
    }
    
    .fl-slideshow-item.zoom-active {
        animation: none;
        transform: scale(1);
    }
    
    #fl-loading-overlay {
        transition: opacity 0.3s ease;
    }
}

/* === コンテンツフェードイン表示 === */

/* ページ全体のコンテンツを最初は非表示 */
.fl-page {
    opacity: 0;
    transition: opacity 1.2s ease;
}

/* コンテンツ表示状態 */
.fl-page.content-loaded {
    opacity: 1;
}

/* サイドバーも同様にフェードイン */
.fl-sidebar-area {
    opacity: 0;
    transition: opacity 1.2s ease 0.2s; /* 少し遅延 */
}

.fl-sidebar-area.content-loaded {
    opacity: 1;
}

/* === Music Controller (左下固定/超シンプル) === */
#music-controller {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  user-select: none;
}

#music-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  color: #222;
  outline: none;
  padding: 0;
  margin: 0;
  transition: color 0.2s;
}
#music-toggle:hover {
  color: #4ecdc4;
  background: none;
}

#music-icon {
  display: inline-block;
  font-size: 20px;
  pointer-events: none;
}

#music-eq {
  display: flex;
  align-items: flex-end;
  height: 22px;
  gap: 2px;
  margin-left: 4px;
}

#music-eq .bar {
  width: 3px;
  height: 10px;
  background: #fff !important;
  border-radius: 1px;
  margin: 0 1px;
  opacity: 0.85;
  animation: eqAnim 1s infinite;
  animation-play-state: running;
}
#music-eq .bar:nth-child(1) { animation-delay: 0s; }
#music-eq .bar:nth-child(2) { animation-delay: 0.2s; }
#music-eq .bar:nth-child(3) { animation-delay: 0.4s; }
#music-eq .bar:nth-child(4) { animation-delay: 0.3s; }
#music-eq .bar:nth-child(5) { animation-delay: 0.1s; }

@keyframes eqAnim {
  0% { height: 10px; }
  20% { height: 18px; }
  40% { height: 8px; }
  60% { height: 14px; }
  80% { height: 12px; }
  100% { height: 10px; }
}

@media (max-width: 650px) {
  #music-controller {
    display: none !important;
  }
}

#gNav .current_page_item a {
    font-weight: bold;
}

#gNav .current-menu-item a {
    font-weight: bold;
}