@charset "utf-8";
/*---------------------------------------------
ヘッダー(navbar) 
===============================================*/
header {
	width: 100%;
	position: fixed;/*--headerを固定するかしないかの指示--*/
	z-index: 100;
	background-color: rgba(255, 255, 255, 1.0) !important;
	padding-bottom: 10px;
}

.navFrame {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

nav {
	display: flex;
	flex-direction: column;
}
ul.nav {
	align-items: center;
}
.navbar {
	background-color: rgba(255,255,255,0.0)!important;
	padding: 0;
}
.header-logo-bar {
	display: flex;
	flex-direction: row;
	align-items: center;
}
.header-logo-bar p {
	font-size: 110%;
	margin: 0;
	line-height: 1.4em;
}

.nav-item:nth-child(2n) p {
	margin: 0;
	padding: 0;
	font-size: 1.25rem;
}

.nav-item .nav-link {
	font-weight: 500;
}

.top-naviimg a img {
	width: 30px;
	/* margin: 10px 0 20px 0; */
}

.top-naviimg a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.header-comments {
	width:100%;
}

.header-comments p, .header-comments p span {
	margin: 0;
	padding: 0;
	font-size: 1.6rem;
}

.top-naviimg a {
    text-decoration: none;
    font-size: 26px;
    padding: 8px 0;
    color: #292929;
    font-weight: bold;
}


@media screen and (max-width: 575.98px) {
	header {
    	top: 0;
    	z-index: 15;
    	/* background-color: rgba(255, 255, 255, 0.0) !important; */
    	padding-bottom: 0;
 }
	
	#Page-menu header, #Page-reserve header, #Page-thanks header, #Page-php header, #Page-about header {
		position: relative;
	}
	
	.navbar {
		background-color: transparent!important;
	}
	
	nav {
		padding: 10px 0!important;
        
	}
	
	.navbar-toggler {
		font-size: 1rem!important;
	}
	
	.top-naviimg a img {
		width: 60px;
	}
	
	.top-naviimg {
		display: flex;
		align-content: flex-end;
		flex-wrap: wrap;
	}
	
	.top-naviimg span {
		display: block;
		align-self: flex-end;
    	padding-bottom: 5px;
	}
	
	.navbar{
		background-color: #fff;
	}
	
	.header-comments {
		width:100%;
	}
	
	.header-comments p, .header-comments p span {
		margin: 0;
		font-size: 1.2rem
	}

	nav.navbar {
		height: 100%;
		padding: 0 !important;
	}
	
	.top-naviimg a {
		text-decoration: none;
        font-size: 110%;
	}
	
	.top-naviimg a img {
		width: 80px;
		margin: 5px 0 5px 0;
	}
	
	.top-naviimg {
		display: flex;
		align-content: flex-end;
		flex-wrap: wrap;
	}
	
	.top-naviimg span {
		display: block;
		align-self: flex-end;
    	padding-bottom: 5px;
	}
	
	.top-naviimg a img {
    width: 30px;
    /* margin: 5px 0 10px 0; */
}
}


.navbar .navbar-collapse{
    flex-grow: 0;
}

.nav-link {
	color: #292929 !important;
	text-transform: uppercase;
}

.nav-item a.active {
	display: block;
	color: #292929!important;
}

a.nav-link:hover{
	opacity: 1.0;
}

.navbar .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(251,251,241,1);
}

p.top-small {
	font-size: 0.6rem;
	padding: 0; margin: 0px auto 5px auto;
}


/* ==============================
   ヒーローセクション専用スタイル
   （文字固定・背景スライド版）
   ============================== */
.top-hero {
    position: relative;
    width: 100%;
    height: 40vh; /* 画面高の40% */
    min-height: 600px;
    overflow: hidden;
    background-color: rgba(34,130,193,0.8);
    padding: 0;
}

/* --- 背景スライダーの設定 --- */
.top-hero-slider {
    position: absolute; /* 背面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-hero-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.top-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.top-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
    opacity: 0.7;
}

.top-hero-inner {
    height: 100%;
    width: 100%;
}

/* --- 【重要】固定表示するコンテンツ部分 --- */
.top-hero-content {
    position: absolute; /* スライダーの上に重ねる */
    top: 0;
    left: 0;
    z-index: 2; /* スライダー(z-index:1)より前面に */
    width: 92%;
    max-width: 1100px;
    height: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    pointer-events: none; /* 下のスライダー操作（ドラッグ等）を邪魔しない */
    position: absolute; /* 画像の上に重ねる場合 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* これで真ん中になります */
}

/* コンテンツ内部はクリック可能にする */
.top-hero-content .container {
    pointer-events: auto;
}

/* --- タイポグラフィ --- */
.top-hero-label {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
    color: #228cc1; /* 建設業らしい緑、または既存の赤(#d32f2f) */
    margin-bottom: 15px;
}

.top-hero-title {
    font-size: 3rem;
    line-height: 1.4; /* 少しゆとりを持たせる */
    margin-bottom: 25px;
    font-weight: 900;
    text-align: left;
}

.top-hero-title__main,
.top-hero-title__sub {
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 視認性向上のため影を強化 */
    background: linear-gradient(#fff, #aaa 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    color: #fff;
}

.top-hero-title__main {
    font-size: 0.7em;
    font-weight: 500;
}

.top-hero-title__sub {
    font-size: 1em;
}

.top-hero-title__main span,
.top-hero-title__sub span {
  /* background: linear-gradient(#fff,#aaa  99%);
  -webkit-background-clip: text;
  background-clip: text; */
  color: transparent;
  color: #fff;
  display: inline-block;
  /* position: absolute; */
  /* right: 0; */
  /* bottom: 0px; */
  z-index: 11;
  /* -webkit-text-stroke: 0.5px rgba(0,0,0,0.05); */
}

/* Swiperページネーション（ドット）の位置調整 */
.top-hero .swiper-pagination {
    z-index: 3; /* コンテンツよりさらに前面 */
    bottom: 20px !important;
}

.top-hero .swiper-pagination-bullet-active {
    background: #228cc1 !important; /* アクティブカラー */
}

/* --- 背景スライダーの設定 --- */
.top-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.top-hero-slide {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* ↓追加：フェード時に重なりを制御するために必須 */
    opacity: 0 !important;
    transition: opacity 2s ease;
}

/* ↓追加：アクティブなスライドだけを表示させる */
.top-hero-slide.swiper-slide-active {
    opacity: 1 !important;
}

.top-hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* 背景画像が確実に表示されるように */
    display: block;
}

.top-news-flip {
  padding: 60px 20px;
}

.top-news-flip__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.top-news-flip__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
}

.top-news-flip__archive {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.top-news-flip__stage {
  position: relative;
  overflow: hidden;
  /* min-height: 96px; */
  /* border-top: 1px solid #d9d9d9; */
  /* border-bottom: 1px solid #d9d9d9; */
}

.top-news-flip__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 45px;
  perspective: 1200px;
}

.top-news-flip__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-origin: center center;
  transform: rotateX(-90deg);
  transition: transform 3s cubic-bezier(.22, 1, .36, 1),
    opacity 0.8s ease,
    visibility 0s linear 1s;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.top-news-flip__item.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateX(0deg);
  transition:
    transform 1s cubic-bezier(.22, 1, .36, 1),
    opacity 0.8s ease,
    visibility 0s linear 0s;
  z-index: 2;
}

.top-news-flip__item.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: rotateX(90deg);
  z-index: 1;
}

.top-news-flip__link {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 15px 0;
  color: inherit;
  text-decoration: none;
}

.top-news-flip__date {
  flex: 0 0 0px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.top-news-flip__text {
  flex: 1;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.top-news-flip__empty {
  margin: 0;
  padding: 24px 0;
}

@media (max-width: 767px) {
  .top-news-flip__stage,
  .top-news-flip__list {
    /* min-height: 60px; */
  }

  .top-news-flip__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
  }

  .top-news-flip__date {
    flex: none;
  }

  .top-news-flip__text {
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    margin: 0;
  }

  .top-hero-title__main {
    display:block;
}
}

@media (prefers-reduced-motion: reduce) {
  .top-news-flip__item {
    transition: opacity 0.3s ease;
    transform: none;
  }

  .top-news-flip__item.is-active {
    transform: none;
  }

  .top-news-flip__item.is-leaving {
    transform: none;
  }
}

/* --- スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .top-hero {
        height: 60vh; /* スマホで見やすい高さに調整 */
        min-height: 450px;
    }
    
    .top-hero-content {
        /* background: rgba(0,0,0,0.4); */ /* 全体を薄暗くして文字を浮かせる */
        text-align: center;
    }

    .top-hero-title {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .top-hero-title__main,
    .top-hero-title__sub {
        display: inline; /* スマホでは一行に収める場合はinline、改行するならblock */
    }
}