@charset "utf-8";
/* CSS Document */

main{
	font-family: Arial, sans-serif;
	width: 100%;
	height: 100%;
	background-color: #2E2E2E;
	color: #f9f9f7;
	margin: 0 auto;
	padding: 0;
}

.main, .shop, .flower_owner{
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.backimg{
	background-image: url("../img/first-view/y-carn2.jpg");
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
	background-size: cover;
	text-align: center;
	overflow: hidden;
	height: calc(100vh - 70px);
	opacity: 0;
	animation: fadeIn 2s ease-in-out forwards;
}

.top {
	width: 50px;
	height: 50px;
	position: fixed;
	bottom: 50px;
	right: 20px;
	z-index: 1000;
	cursor: pointer;
	transition: transform 0.2s ease;
}

html {
	scroll-behavior: smooth; /* スムーズスクロール */
}

.top {
	display: inline-block; /* 画像リンクをブロック化 */
	transition: transform 0.2s ease;
	cursor: pointer;
}

.top:active {
	transform: scale(0.8); /* 押した時に縮む */
}

header .logo{
	position: absolute; /*中央配置*/
  	top: 60%;
  	left: 50%;
  	transform: translate(-50%, -50%);/*要素の中心を基準に位置を調整*/
  	max-width: 450px; /* ロゴの大きさ */
	width: 40vw;
	height: auto;
	font-size: 5vw;
	text-align: center;
	opacity: 0;
  	animation: fadeIn 2s ease-in-out forwards;
	z-index: 5;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.nav-menu {
	display: flex;
 	align-items: center;
	position: sticky;
 	top: 0;
  	bottom: 0;
  	width: 100%;
  	background-color: #176B75;
  	padding: 10px 0;
	gap: 100px;
	flex-wrap: wrap; /* 小さい画面でも折り返し */
	z-index: 500;
}

.nav-menu .active-i{
	color: #B89B72;
}
.nav-menu .active-h{
	color: #B89B72;
}
.nav-menu .active-b{
	color: #B89B72;
}
.nav-menu .active-b{
	color: #B89B72;
}
.nav-menu .active-box{
	color: #B89B72;
}
.nav-menu .active-box{
	color: #B89B72;
}
.nav-menu .active-owner{
	color: #B89B72;
}
.nav-menu .active-t{
	color: #B89B72;
}

.logo-link{
	margin-left: 30px;
}

/* ロゴ画像 */
.logo {
  	height: 50px;
  	margin-right: 30px;
}
.nav-menu img:hover {
    transform:scale(1.05);
  }

.nav-menu img{
	transition: 0.5s;
  	backface-visibility: hidden;
}

/* nav メニュー全体 */
.nav-menu ul {
	display: flex;
  	list-style: none;
  	margin: 0;
  	padding: 0;
  	justify-content: center;
  	flex-wrap: wrap;
}

/* メニューアイテム */
.nav-menu ul li a {
  	display: block;
  	padding: 15px 20px;
  	color: #f9f9f7;
  	text-decoration: none;
  	transition: background-color 0.3s;
}

/* ホバー時 */
.nav-menu ul li a:hover {
	color: #B89B72;
}

/* ハンバーガー */
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	cursor: pointer;
	width: 30px;
	height: 25px;
	justify-content: center;
	align-items: center;
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: #f9f9f7;
	border-radius: 2px;
	transition: all 0.3s ease;
	display: block;
	position: relative;
}

/* バツへの変形 */
.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -6px);
}

/* ハンバーガーメニュー */
@media screen and (max-width: 600px) {
  .hamburger {
	  display: flex;
	  z-index: 1000;
  }

.nav-menu {
	display: none;
	flex-direction: column;
	align-items: flex-start;
	position: fixed;
	top: 0;
	left: 0;
	width: 70%;
	height: auto;
	background-color: #176B75;
	padding: 20px;
	z-index: 999;
  }
	
  .logo {
	height: 25px;
	margin-right: 5px;
  }
	
  .nav-menu.active { /*script 実行*/
	display: flex;
  }

  .nav-menu ul {
	flex-direction: column;
	width: 100%;
  }

  .nav-menu li {
	width: 100%;
	padding: 10px 0;
	border-bottom: 1px solid #f2ece3;  /* 縦ナビの罫線*/
	text-align: center;
  }

  .logo-link {
	margin-bottom: 20px;
  }
  .top-main{
		width: 100%;
  }
}	
/* ハンバーガーメニュー ここまで*/

h2{
	text-align: center;
	margin: 0;
	margin-bottom: 50px;
	padding-top: 110px;
	font-size: 22px;
}

h2 p{
	margin-bottom: 40px;
}

.owner-photo-wrapper {
 	position: relative;
 	display: block;
	max-width: 100%;			/* サイズを画像に合わせる */
 	width: 468px; 				/* 元画像の幅に合わせる */
 	height: 360px; 				/* 元画像の高さに合わせる */
	margin: 0 auto;				/* 中央配置 */
}

.owner-text {
	width: 100%;
	max-width: 750px; 
	height: auto;
	text-align: center;
	padding-top: 70px;
 	margin: 20px auto;
	margin-top: 80px;	
	line-height: 2.5;
	font-size: 16px;
}

.owner p {
  	font-feature-settings: "palt"; /*カナの文字間を美しく*/
}

.hover-rose {
	position: absolute;
	top: 80%;      
	left: 33%;
	transform: translate(-50%, -50%);
	transform: scale(1.5);
	max-width: 144px;
	height: auto;
	opacity: 0;      			/* 初期非表示 */
	transition: opacity 0.5s ease;
	pointer-events: none; 		/* ホバー画像にマウスイベントを通さない */
	z-index: 10;
}

/* ホバー時に表示 */
.owner-photo-wrapper:hover .hover-rose {
	opacity: 1;
}


/*   gallery   */
.gallery, .flower_owner, .shop, footer{
	margin-top: 70px;
}

.gallery {
  	margin-top: 0px;
  	display: flex;
  	padding-left: 15px;
  	gap: 15px; 						/* カラム間の余白 */
  	flex-wrap: wrap; 				/* 画面幅狭い時は折り返し */
  	justify-content: space-between; /* 左右の余白均等 */
}

.gallery figure {
  	flex: 1 1 calc(33.333% - 20px); /* 幅は3分の1マイナス余白分 */
  	box-sizing: border-box;
  	background-color: #2E2E2E;
  	padding: 10px;
  	margin: 0;
}

.nav-flower, .nav-bouquet, .nav-box, .nav-ownerchoice{
	color: #f9f9f7;
	text-decoration: underline;
}

.nav-flower:hover,
.nav-bouquet:hover,
.nav-box:hover,
.nav-ownerchoice:hover {
    color: #B89B72;
}

h3 {
	padding-top: 20px;
	text-align: center;
	margin: 0;
	font-size: 18px;
}

.gallery img {
  	max-width: 100%; /* figureの幅に合わせる */
  	height: auto;
  	display: block;
  	margin-bottom: 10px;
  	border: 1px solid #B89B72;
}

.gallery img:hover {
    transform:scale(1.04);
  }
.gallery img{
	transition: 0.5s;
  	backface-visibility: hidden;
}

.gallery p {
  	font-size: 16px;
  	line-height: 1.5;
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
.gallery {
    justify-content: center; /* 横方向の中央寄せ */
  }

  .gallery figure {
  	flex: 0 1 80%;   		 /* 幅を90%、中央寄せ */
    margin-bottom: 20px;
	margin-left: 10px;
	margin-right: 10px;
	align-items: center;
  }
}

.flower_owner {
	display: flex;
  	align-items: flex-start; /* 上揃え */ 
  	justify-content: center;
  	gap: 100px; 		
  	background-color: #2E2E2E;
}

.flower_owner img {
	height: auto;
	display: block;
	margin-bottom: 30px;
	border: 1px solid #B89B72;
	transition: 0.5s;
	backface-visibility: hidden;
}

.flower_owner img:hover {
	transform: scale(1.02);
}

.flower_owner p {
	width: 100%;
	max-width: 320px;
	padding: 0;
	font-size: 16px;
	line-height: 1.5;
}

.kimagure{
	text-align: center;
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
  .flower_owner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .flower_owner p {
    max-width: 300px;
    text-align: center;
  }
}

.shop {
	display: flex;
	gap: 50px;
	text-align: center;
	align-items: flex-start; /* 縦の揃えを上揃えに */
	flex-wrap: wrap; /* 画面幅が狭い時は縦並びに切り替え */
}

.add {
	padding-top: 50px;
}

/* レスポンシブ */
@media screen and (max-width: 600px) {
	.shop {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}
	.map iframe, .add {
		width: 100%;
		margin-left: 0;
		margin-top: 0;
	}
}

/*footer の設定*/
footer{
	padding: 15px 0;      /* 内側余白で調整 */
	background-color: #176B75;
	font-size: 14px;
	color: #f9f9f7;
}

footer ul {
	display: flex;               
	justify-content: center;     
	gap: 30px;                   
	list-style: none;            
  	padding: 0;
  	margin: 0 0 10px 0;;
}

footer li {
	padding-top: 0px;
}

footer li a {
  color: #f9f9f7;
  text-decoration: none;
}

footer li a:hover {
  color: #B89B72;
  text-decoration: underline;
}

#copyright{
	text-align: center;
	padding-top: 20px;
}

 /* レスポンシブ */
@media screen and (max-width: 600px) {
  footer ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}