@charset "utf-8";

/* *****共通設定***** */

main{
    display: block;
    background-color: #fbfbf2;
    padding-top: 0px;
}
main .btn{
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    font-size: 1.5rem;
}
h1 { font-size: 4.5rem; }
h2, h3{
   color: #401f0f;
}
.gray {
    color: #6c757d;
}
.card{
    border-color: #e0c7b2;
    background-color: transparent !important; /* 背景を透明 */
}
.img-thumbnail {
    width: 100%;
    padding: .25rem;
    background-color: transparent;
    border: none;
}

/* カルーセル内の画像の下にできる数ピクセルの隙間を強制的に消す */
.carousel-item img {
    vertical-align: bottom;
}

/* ヘッダー(navbar) */
.navbar{
    border-bottom: 1px solid #000000;
    background-color: #000000;
}
.navbar .navbar-collapse{
    flex-grow: 0;
}
.navbar .navbar-brand{
    height: 50px;
}
.navbar .navbar-brand img{
    height: 100%;
}
.navbar .navbar-nav .active > .nav-link{
    color: #ffce11;
}
.navbar .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(251,251,241,1);
}

/* 文字を画像の上に綺麗に重ねるためのCSS設定 */
.main-visual-wrapper {
    overflow: hidden; /* スライドのアニメーションがはみ出ないようにする */
}
.slide-content-overlay {
    top: 0;
    left: 0;
    z-index: 10; /* 画像より手前に出す */
    background: rgba(0, 0, 0, 0.2); /* 画像を少し暗くして文字を読みやすくする */
}

/* Slickのドットナビゲーションの位置調整 */
.slick-dots {
    bottom: 20px !important; /* 画像の下の方に配置 */
    z-index: 11; /* 文字overlayより手前 */
}
/* ヘッダー全体の下マージンをリセット */
header.fixed-top {
    margin-bottom: 0 !important;
}

/* スマホ用ナビエリアが引き起こす意図しない高さをリセット */
.sp-tab {
    margin: 0 !important;
    padding: 0 !important;
}

/* 念のため、PC表示のとき（画面幅768px以上）は高さを完全に0にする */
@media (min-width: 768px) {
    .sp-tab {
        height: 0;
        overflow: hidden;
    }
}

/* フッター */
#footer{
    background-color: #000000;
}
#footer .container{
    color: #e0c7b2;
}
#footer .footer-ttl{
    font-size: 1rem;
    font-weight: bold;
    margin: 1.5rem 0;
    color: #ffce11;
}
#footer address p,
#footer #footer-news li{
    margin-bottom: 0.5rem;
}
#footer #footer-news ul{
    margin: 0;
    padding: 0
}
#footer #footer-news ul{
    list-style: none;
}
#footer #footer-news li span{
    display: inline-block;
    margin-right: 0.5rem;
}
#footer #copyright{
    border-top: 1px solid #774831;
    background-color: #401f0f;
    color: #e0c7b2;
}
#footer img {
	width: 360px;
}

/* *****トップページ***** */
/* メイン画像 */
h1{
    font-weight: bold !important;
    color: #ffce11;
}
#page-top h1 + span {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 110%;
    margin-top: 0.2rem;
    display: block;
}
#page-top .jumbotron-fluid{
    height: 640px;
    background-color: #f1efff;
    border-bottom: #dddddd;
    background: url("../img/top-main.jpg") no-repeat center center;
    background-size:cover;
}
#page-top .jumbotron-fluid .container{
    height: 100%;
}
#page-top .jumbotron-fluid .btn{
    padding-left: 3rem;
    padding-right: 3rem;
    margin-top: 1.5rem;
    font-weight: bold;
	border-width: 3px;
    border-color: #fff;
}

/* 各セクション */
#page-top section{
    border-bottom: 1px solid #fff8dc;
    background-color: #fbfbf2;
	padding: 5rem 0;
}
#page-top section:nth-child(odd){
    background-color: #fff8dc;
}
#page-top section .container > h2{
    margin-bottom: 30px;
    font-size: 2.5rem;
}
#page-top section .container > h2 + p{
    max-width: 700px;
	margin: 0 auto 50px;
}
#sec1 h3{
    font-size: 1.4rem;
}

#sec2 {
    line-height: 180%;
}
#sec2 .row{
    min-height: 160px;
    color: #2f2f2f;
}

/* カード内の画像を自動で中央寄せにする */
.card .card-img-top {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
/* 念のため、中の文字エリアも確実に透明にする */
#sec4 .card-body {
    background-color: transparent !important;
}
#sec4 .card-body .clearfix p,
#sec4 .card-body .clearfix h3{
    margin-left: 115px;
    line-height: 130%;
}
#sec4 .card-body .card-title{
    margin-bottom: 5px;
    color: #401f0f;
}
#sec4 .card-body .card-subtitle{
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #968075;
}
#sec4 img {
    width: 100%;
}
#sec4 .btn {
    width: 100%;
	background-color: #401f0f;
	border: none;
	padding: 1rem 0;
}

#sec5 article > .row {
    border: 1px solid #dddddd;
}
#sec5 > div:nth-child(1) img {
    width: 100%;
}
/*#sec4 > div:nth-child(2){
    margin-left: 220px;
}*/
#sec5 h3{
    margin-bottom: 0.1rem;
}
#sec5 article > div div header {
	padding: 10px;
}

/* *****下層ページ***** */

#breadcrumb-wrapper{
    border-bottom: 1px solid #a29080;
}
#breadcrumb-wrapper,
.breadcrumb{
    font-size: 0.9rem;
    background-color: #563322;
}
.breadcrumb a{
    color: rgba(255,255,255,.5);
}
.breadcrumb a:hover,
.breadcrumb a:focus{
    color: rgba(255,255,255,1);
}
.breadcrumb-item+.breadcrumb-item::before{
    content: ">";
    padding-right: 1rem;
    color: rgba(255,255,255,.5);
}
.breadcrumb-item.active{
    color: #ffffff;
}
h1.page-ttl {
    font-size:2rem; 
}
#page h1 + span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 110%;
    margin-top: 0.2rem;
    display: block;
}

#page article {
    padding: 5rem 0;
}

#page section {
    padding-bottom: 5rem;
}
#page section:last-child {
    padding-bottom: 0rem;
}

#page h1 + small {
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 110%;
    margin-top: 0.2rem;
}
#page .jumbotron{
    background-color: #f1efff;
    border-bottom: #dddddd;
    background: url("../img/top-main.jpg") no-repeat center center;
    background-size:cover;
    border-radius: initial;
}
#page .jumbotron .container{
    padding: 0;
}
#page .jumbotron .container p{
    margin-bottom: 0;
}
#page h2 + p{
    margin: 0 0 1.2rem;
}
#page main img{
    max-width: 100%;
}
#page .sample-title{
    display: flex;
    align-items: center;
    text-align: center;	
}

#page .sample-title::after {
    border-top: 3px dotted;
    content: "";
    display: inline; /* for IE */
    flex-grow: 1;
    margin-left: 0.5em;
}
#page .sample-title span{
    background-color: #fbfbf2;
}
#page .sample-subtitle{
    font-size: 1.5rem;
    font-weight: bold;
    color: #401f0f;
}

/* *****フォーム***** */

.form1 label{
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.form1 input,
.form1 textarea,
.form1 select{
    max-width: 768px;
}
.form1 .form-group{
    margin-bottom: 2rem;
}

/* スライドショー全体の高さを画像ぴったりに固定し、はみ出しをカットする */
.main-visual-wrapper {
    position: relative;
    overflow: hidden;
    height: auto;
}

/* 文字を重ねる枠（黒い座布団）が画像より下にはみ出さないように固定 */
.slide-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important; /* 画像の高さに完全に合わせる */
    z-index: 10;
}

/* スライドショーの中の画像自体に無駄な下の隙間を作らせない */
.carousel-inner img,
.slider img {
    display: block;
    width: 100%;
    height: auto;
    /* display: block があるため、vertical-align は不要なので削除してもOKです */
}

/* --- ここから下が Slick のガタつきを直す修正版です --- */

.slider {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
}

/* すべてのスライドを強制的に同じ位置に重ね合わせます（縦並びを防止） */
.slider .slick-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  opacity: 0; /* 基本は透明にしておく */
  z-index: 1;
}

/* 現在表示されている画像だけを表に出す */
.slider .slick-slide.slick-active {
  position: relative !important; /* 1枚目だけは relative にして高さを確保する */
  opacity: 1 !important;
  z-index: 2 !important;
  display: block !important;
}

/* 念のため、Slick全体の高さを保持する器の設定 */
.slider .slick-list {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
}
/* ハニーポット */
.honey-container {
    display: none !important;
}

/* 基本設定（スマホサイズ） */
.p-side-img {
    display: block;
    margin: 0 auto;
    width: 35%;
    min-width: 80px;
    max-width: 120px;
    height: auto;
    object-fit: contain;
    
    /* ★超重要：文字量が多くても、画像を絶対に押しつぶさない命令 */
    flex-shrink: 0; 
}

/* PCサイズ（画面幅768px以上）の設定 */
@media (min-width: 768px) {
    .p-side-img {
        display: inline-block;
        
        /* ★超重要：widthとmax-widthを同じにすることで、サイズを「〇〇px」に完全固定 */
        width: 250px;       /* もしこれでも小さければ 160px や 180px に数値を大きくしてください */
        max-width: 250px;   
        margin-right: 40px;
    }
}

.back-to-top {
  /* ...他の設定... */
  z-index: 999999 !important; /* !important をつけて最前面に強制する */
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #333333;
  color: #ffffff;
  text-align: center;
  line-height: 50px;
  font-size: 24px;
  text-decoration: none;
  border-radius: 50%;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  
  /* じわっと表示させるための設定 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

/* このクラスがjQuery/JSで付与されたら表示する */
.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
}

html {
  scroll-behavior: smooth;
}

/* ==========================================
   PCサイズのとき（基本のスタイル）
========================================== */
#sec6 img {
    /* 【修正】PCのときは、元の画像サイズ（960px）で表示させるように直接指定 */
    width: 960px !important; 
    max-width: 100% !important; /* 画面が960pxより小さくなったら縮むように */
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ==========================================
   スマホサイズ（画面幅767px以下）のとき
========================================== */
@media (max-width: 767px) {
    main {
        padding-top: 80px !important; 
    }
    
    /* スマホの時は、960pxを無視して画面幅100%に強制変更 */
    #sec6 img {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =======================================================
   【最終手段】スマホでのスライドショーのガタつきを強制停止する
   ======================================================= */
@media screen and (max-width: 767px) {
  
  /* 1. スライドショーを包むすべての枠の「高さ」を250pxに完全に固定する */
  .main-visual-wrapper,
  .slider,
  .slider .slick-list,
  .slider .slick-track,
  .carousel-inner {
    height: 250px !important;     /* ★スマホ画面での高さを250pxに固定 */
    max-height: 250px !important; /* これ以上絶対に広がらないようにロック */
    min-height: 250px !important; /* これ以下に絶対に縮まないようにロック */
    overflow: hidden !important;  /* はみ出た一瞬の挙動を完全に隠す */
  }

  /* 2. 中の画像も、その250pxの高さに合わせて綺麗にフィットさせる */
  .slider img,
  .carousel-inner img,
  .slider .slick-slide img {
    width: 100% !important;
    height: 250px !important;     /* 上の枠と同じ高さにする */
    object-fit: cover !important; /* 画像が縦潰れ・横伸びしないように自動トリミング */
    position: static !important;  /* 位置のブレをリセット */
  }
}

/* ==========================================
   【追加】セクションごとの背景色交互設定
========================================== */
/* 偶数（白系） */
#sec1, #sec3, #sec5 {
    background-color: #ffffff !important;
}

/* 奇数（黄系） */
#sec2, #sec4, #sec6 {
    background-color: #fff8dc !important; /* 元のテンプレートで使われていた薄い黄色 */
}