@charset "utf-8";
@import url("https://unpkg.com/sanitize.css");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+1+Code:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
@import url("https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.css");
@import url("animation.css");
@import url("inview.css");



html,body {
	margin: 0;padding: 0;
	font-size: 13px;	
	overflow-x: hidden;
}

body {
	font-family: "ヒラギノ角ゴ Pro", "Hiragino Maru Gothic Pro","ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;		
	-webkit-text-size-adjust: none;
	letter-spacing: 0.05em;
	background: #fff;	
	color: #555;		
	line-height: 2;		
}


figure {margin: 0;}
dd {margin: 0;}
nav {margin: 0;padding: 0;}


table {border-collapse:collapse;}


img {border: none;max-width: 100%;height: auto;vertical-align: middle;}


video {max-width: 100%;}


iframe {width: 100%;}


ul, ol {margin-bottom: 30px;}



a {
	color: #57524b;	
	transition: 0.3s;
}



section,
main > article {
	margin: 0 auto;
	padding: 5%;		
}



.c2 {
	display: flex;			
	flex-direction: column;	
}


.c2 h2 {
	font-size: 2em;
}


.c2 .image {
	order: -1;
}



header {
	display: flex;					
	justify-content: space-between;	
	align-items: center;			
	background: #0A3701;			
	position: relative; z-index: 1000;	
	width: 100%;
	padding: 0 3%;					
	height: 50px;					
}

header a {
	color: #fff;
}


header #logo img {display: block;}
header #logo {
	margin: 0;
	width: 250px;	
}



#mainimg {
	width: 100%;
	height: 0;
	padding: 0;
	padding-top: 56.25%;
	position: relative;
	top: 50px;	
	overflow: hidden;
	background: #4d770b url(../images/slide1.png) no-repeat center center / 100%;	
	color: #fff;	
}

#mainimg #text {
	position: absolute;
	left: 3%;		
	top: 0px;		
	width: 100%;	
	height: 100%;	
	display: flex;			
	align-items: center;	
}


#mainimg #text h2 {
	margin: 0;
	font-weight: 500;	
	font-size: 3.8vw;	
	text-shadow: 1px 1px 2px rgba(0,0,0,0.3);	
}


#mainimg #text p.text {
	font-size: 13px;		
	margin: 0 10px 30px;	
}



#menubar ul {list-style: none;margin: 0;padding: 0;}


#menubar {display: none;}


#menubar.db {display: block;}
#menubar.dn {display: none;}


#menubar a {
	display: block;text-decoration: none;
	text-align: center;		
	letter-spacing: 0.1em;	
	padding: 10px;			
}


.s #menubar.db {
	position: fixed;overflow: auto;z-index: 100;
	left: 0px;top: 0px;
	width: 100%;
	height: 100%;
	padding: 70px 20px;	
	background: rgba(0,0,0,0.9);		
	animation: animation1 0.2s both;	
	text-align: center;	
	color: #fff;		
}
.s #menubar.db a {
	display: block;
	color: #fff;	
}


#menubar_hdr.db {display: flex;}
#menubar_hdr.dn {display: none;}

#menubar_hdr {
	position: fixed;z-index: 101;
	cursor: pointer;
	right: 5px;			
	top: 2px;			
	padding: 16px 14px;	
	width: 46px;		
	height: 46px;		
	display: flex;					
	flex-direction: column;			
	justify-content: space-between;	
	background: rgba(0,0,0,0.5);	
	border-radius: 50%;				
}


#menubar_hdr span {
	display: block;
	transition: 0.3s;	
	border-top: 2px solid #fff;	
}

#menubar_hdr.ham span:nth-of-type(1),
#menubar_hdr.ham span:nth-of-type(3) {
	transform-origin: center center;	
	width: 20px;						
}


#menubar_hdr.ham span:nth-of-type(1){
	transform: rotate(45deg) translate(3.8px, 5px);	
}

#menubar_hdr.ham span:nth-of-type(3){
	transform: rotate(-45deg) translate(3.8px, -5px);	
}

#menubar_hdr.ham span:nth-of-type(2){
	display: none;	
}

#menubar_hdr.ham {
  z-index: 3000 !important;   /* ← スライドより前・メニューより前 */
  position: fixed !important; /* ← 安定して最前面に */
}


main {
	padding: 50px 20px 20px 20px;
}


main h2 {
	margin: 0 0 1em;		
	line-height: 1.5;		
	font-size: 2em;			
	text-align: left;		
	letter-spacing: 0.2em;	
	color: #0A3701;
	font-family: 'Lato';	
	font-weight: 400;		
}


main h2 span {
	display: block;
	font-weight: normal;
	color: #777;		
	font-size: 13px;	
}


main h3 {
	margin: 0 0 1em;		
	color: #4d770b;			
}


main p {
	margin: 0 20px 30px;	
}
main p + p {margin-top: -15px;}



footer small {font-size: 100%;}

footer {
	font-size: 0.7rem;		
	text-align: center;		
	padding: 20px;			
	background: #0A3701;	
	color: #fff;			
}


footer a {text-decoration: none;color: #fff;}


footer .pr {display: block;}


#footermenu {
	background: #333;	
	color: #999;		
	font-size: 0.7em;	
	padding: 20px;		
	display: flex;		
	justify-content: space-between;	
	align-items: flex-start;		
}


#footermenu a {
	text-decoration: none;
	color: #999;	
}


#footermenu a:hover {
	color: #ccc;	
}


#footermenu ul {
	margin: 0;
	padding: 0 2px;
	flex: 1;
	list-style: none;
}


#footermenu .title {
	font-weight: bold;		
	color: #ccc;			
	padding-bottom: 5px;	
}


#new {
	margin: 0;
	display: flex;		
	flex-wrap: wrap;	
	padding: 0 20px;	
}


#new dt,
#new dd {
	padding: 5px 0;		
}


#new dt {
	width: 8em;	
}


#new dt span {
	display: none;	
}


#new dd {
	width: calc(100% - 8em);	
}


/*-------list関連------*/
.list-container {
	display: flex;		
	flex-wrap: wrap;	
	padding: 0 5px;	
}

.list {
	width: 100%;	
	height: 100%;
	margin-bottom: 15px;	
	margin-right: 2%;		
	padding: 10px;			
	position: relative;
	overflow: hidden;
	transition: 0.3s;		
	box-shadow: 0px 0px 10px rgba(0,0,0,0.1);	
	background: #fff;	
}
.list_ {
	width: 30%;	
	margin-bottom: 10px;	
	margin-right: 2%;		
	padding: 10px;			
	position: relative;
	overflow: hidden;
	transition: 0.3s;		
	box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
	background: #fff;	
}

.list:nth-of-type(even) {
	margin-right: 0;
}

.list:hover {
	box-shadow: 0px 0px 15px rgba(0,0,0,0.5);
}

.list a {
	text-decoration: none;
	color: #333;	
}

.list h4 {
	line-height: 1.5;	
	color: #0A3701;		
	margin: 5px 0;	
}


.list p {
	margin: 0!important;	
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;	
	font-size: 0.7rem;		
    line-height: 1.5em;		
    max-height: 4.5em;		
}
/*-------list関連------*/


.list2 {
	display: flex;	
	border-bottom: 1px solid #ccc;	
	padding: 25px 0;	
}

.list2 div {
	flex: 1;
}


.list2:nth-of-type(1) {
	border-top: 1px solid #ccc;	
}


.list2 figure {
	width: 20%;			
	margin-right: 20px;	
}


.list2 h4 {
	margin: 0;				
	margin-bottom: 10px;	
	color: #4d770b;			
}

.list2 h4 a {
	color: #4d770b;			
}

.list2 h4 a:hover {
	color: #333;			
}

.list2 p {
	margin: 0;
	font-size: 0.7em;		
}


dl.line {
	margin: 0;
	display: flex;		
	flex-wrap: wrap;	
	font-size: 0.7em;	
	border-top: 1px solid #ccc;	
}


dl.line dt, dl.line dd {
	border-bottom: 1px solid #ccc;	
	padding: 0 5px;					
}


dl.line dt {
	width: 8em;				
	background: #f0f0f0;	
}

dl.line dd {
	width: calc(100% - 8em);	
}


.list2 dl.line dt:nth-of-type(1), .list2 dl.line dd:nth-of-type(1),
.list2 dl.line dt:nth-of-type(2), .list2 dl.line dd:nth-of-type(2) {
	border-top: none;
}



.list-slide .list {
	margin: 10px;	
}



.faq {
	padding: 0 5px;	
}


.faq dt {
	border-radius: 3px;		
	margin-bottom: 20px;	
	background: linear-gradient(#fff, #f7f7f7);	
	text-indent: -2em;				
	padding: 5px 1em 5px 3em;		
	border: 1px solid #e4e2d7;		
}


.faq dt::before {
	font-family: "Font Awesome 5 Free";	
	content: "\f059";		
	color: #4d770b;			
	padding-right: 1em;		
}


.faq dd {
	padding: 5px 1em 30px 3em;		
}

.openclose {
	cursor: pointer;	
}

.faq dt span {text-indent: 0;}



.icon {
	display: inline-block;
	margin: 1px;
	line-height: 1.5;
	padding: 0px 10px;
	border: 1px solid #999;
	color: #999;
	font-weight: normal;
	font-size: 0.8em;
}
.icon.newicon {
	border-color: transparent;
	background: #f00;
	color: #fff;
}
.icon.upicon {
	border-color: transparent;
	background: #54b1ff;
	color: #fff;
}

.btn {
	text-align: center;	
	font-size: 1.2rem;	
}

a.btn1, a.btn2 {
	display: inline-block;text-decoration: none;
	letter-spacing: 0.1em;
	border-radius: 3px;
	padding: 5px 30px;
	font-size: 1.2em;
	box-shadow: 1px 2px 3px rgba(0,0,0,0.2);
}
a.btn1 {
	background: #ffce2b;
	color: #444;
}
a.btn2 {
	background: #308396;
	color: #fff;
}
.radius {
	border-radius: 100px !important;
}
a.btn1 i, a.btn2 i {
	margin-left: 20px;
}
a:hover.btn1, a:hover.btn2 {
	transform: scale(1.03);
	filter: brightness(1.1);
}
.btn input {
	display: inline-block;text-decoration: none;border: none;
	background: #0A3701;	
	color: #fff;			
	border-radius: 5px;		
	padding: 5px 10px;		
	box-shadow: 2px 2px 4px rgba(0,0,0,0.2);	
}


.ta1 caption {
	font-weight: bold;		
	padding: 10px 5px;		
	background: #eee;		
	margin-bottom: 15px;	
}


.ta1 {
	border-top: 1px solid #ccc;	
	width: 100%;
	margin: 0 auto 30px;		
}

.ta1 tr {
	border-bottom: 1px solid #ccc;	
}

.ta1 th, .ta1 td {
	padding: 10px 5px;		
	word-break: break-all;	
}


.ta1 th {
	width: 30%;			
	text-align: left;	
}


.bg1 {
	background: #eee;
}
.bg3 {
	background: #ffce2b;
}
.bg3 h2 {
	color: #555;
}


.pagetop-show {display: block;}

.pagetop a {
	display: block;text-decoration: none;text-align: center;z-index: 99;
	position: fixed;	
	right: 20px;		
	bottom: 20px;		
	color: #fff;		
	font-size: 1.5em;	
	background: rgba(0,0,0,0.2);	
	width: 60px;		
	line-height: 60px;	
	border-radius: 50%;	
}


.clearfix::after {content: "";display: block;clear: both;}
.color-theme, .color-theme a {color: #4d770b !important;}
.color-check, .color-check a {color: #f00 !important;}
.c {text-align: center !important;}
.ws {width: 95%;display: block;}
.wl {width: 95%;display: block;}
.mb30 {margin-bottom: 30px !important;}
.mt30 {margin-top: 30px !important;}
.look {display: inline-block;padding: 0px 10px;background: #eee; border: 1px solid #ccc; border-radius: 3px;margin: 2px 0; word-break: break-all;}
.small {font-size: 0.6em; letter-spacing: normal !important;}
.large {font-size: 1.8em !important;}
.block {display: block !important;}
.sh {display: block;}
.pc {display: none;}
.hidden {position: absolute; top: -9999px; left: -9999px;}




@media screen and (max-width:400px) {



a.btn1, a.btn2 {
	padding: 0px 15px;
}
a.btn1 i, a.btn2 i {
	margin-left: 10px;
}


}



@media screen and (min-width:900px) {


html, body {
	font-size: 15px;	
}



.c2 {
	flex-direction: row;			
	justify-content: space-between;	
	align-items: center;			
	
	margin-left: -6%;
	margin-right: -6%;
}

.c2 .image {
	width: 60%;
}

.c2 .text {
	width: 40%;
	padding: 0 3%;
}

.c2 .l {
	order: -1;
}

.c2 .image.r {
	overflow: hidden;
	
	border-radius: 100px 0px 0px 100px;	
}

.c2 .image.l {
	overflow: hidden;
	border-radius: 0px 100px 100px 0px;	
}


#mainimg #text {
	width: 50%;		
}


#menubar {
	font-size: 0.85em;	
}
#menubar ul {
	display: flex;	
}

#menubar a {
	padding: 10px 15px;	
}


#menubar_hdr {display: none;}


#new dt {
	width: 14em;	
	display: flex;	
	justify-content: space-between;	
}

#new dt span {
	display: inline-block;	
	width: 6em;				
	background: #999;		
	color: #fff;			
	font-size: 0.8em;		
	text-align: center;		
	margin-right: 1em;		
	align-self: flex-start;	
	line-height: 1.8;		
	position: relative;top: 0.4em;	
}

#new dt span.icon-bg1 {
	background: #4d770b;	
}

#new dd {
	width: calc(100% - 14em);	
}


#footermenu {
	font-size: 0.8em;	
	padding: 20px 50px;	
}

/*-------list関連------*/
.list {
    width: 44%;
    margin-bottom: 25px;
    margin-right: 2.66%;
}
	
.list:nth-of-type(even) {
	margin-right: 2.66%;	
}

.list:nth-of-type(4n) {
	margin-right: 0;
}
/*-------list関連------*/
	
	
.list2 {
	padding-left: 10px;	
}

.list2 dl.line dd {
	width: calc(50% - 8em - 10px);	
	margin-right: 10px;				
}

.list2 dl.line {border-top: none;}

.list2 dl.line dt:nth-of-type(1), .list2 dl.line dd:nth-of-type(1),
.list2 dl.line dt:nth-of-type(2), .list2 dl.line dd:nth-of-type(2) {
	border-top: 1px solid #ccc;
}



.ta1 caption {
	padding: 5px 15px;		
}


.ta1 th, .ta1 td {
	padding: 20px 15px;	
}

.ta1 th {
	width: 20%;	
}


.ws {width: 48%;display: inline;}
.sh {display: none;}
.pc {display: inline-block;}
	
	

/* 全体レイアウト（PC: 横並び / SP: 縦） */
  .about-wrap {
    display: flex;
    padding: 30px 5%;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  /* 左側タイトル（縦書き） */
  .about-title {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 28px;
    font-weight: bold;
    white-space: nowrap;
  }

  /* 中央テキスト */
  .about-text {
    flex: 1;
    max-width: 500px;
  }

  /* 右側画像 */
  .about-image img {
    width: 360px;
    max-width: 100%;
    border-radius: 6px;
  }

  /* ---- スライド ---- */
 /* 全体を重ねるコンテナ（スマホも共通） */
.hero-slider {
  width: 100%;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}

/* すべてのスライドを重ねる（スマホも PC も同じ） */
.slide {
  position: absolute !important; /* ←絶対に重ねる */
  inset: 0;                      /* top:0, left:0, right:0, bottom:0 */
  opacity: 0;
  animation: fadeZoom 16s infinite;
}

/* PC/スマホ共通：余白なく画像全体表示 */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ←トリミングなし全体表示 */
  background: #000;      /* ←余白をなくす（黒で埋める） */
}

/* アニメーション */
@keyframes fadeZoom {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; transform: scale(1.02); }
  25%  { opacity: 1; transform: scale(1.06); }
  30%  { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}

/* 4枚の時間差 */
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }
	 
/* ---- スライド ---- */
	
/* PC表示（元のまま） */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

/* 画像自体のマージン・パディングはゼロを徹底 */
.works-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 0 !important; /* ← ゼロを徹底 */
  padding: 0 !important; /* ← ゼロを徹底 */
}

@media (max-width: 768px) {
  /* section.bg2 の代わりに ID を使うことで、最上位の詳細度で適用 */
  #works-section .works-grid > img {
    margin-bottom: 40px !important;
  }
  
  #works-section .works-grid > img:last-child {
    margin-bottom: 0 !important;
  }
}
	
	.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);      /* 最初は少し引いた状態（1.1） */
  transition: transform 6s linear;  /* ゆっくり寄る（ズーム） */
}

/* アクティブスライドだけズームインさせる */
.swiper-slide-active img {
  transform: scale(1);        /* ズームイン（寄り） */
}

	
	
	/* 投稿間の余白を調整 */
.slide-item {
    margin: 0 10px; /* スライドコンテンツの左右に10pxの余白 */
}

/* Slickの矢印やドットの位置調整が必要な場合、ここでカスタマイズ */
.slick-prev:before, 
.slick-next:before {
    color: #333; /* 矢印の色 */
}
	
	/* before after */
	
/* --------------------------------- */
/* ➡️ PC表示時 (横向き矢印のスタイルと初期表示設定) */
/* --------------------------------- */
.arrow-separator {
    font-weight: bold;
    color: #333;       
    text-align: center;
    line-height: 1;
}

.arrow-pc {
    font-size: 2em;       /* PC用の大きなサイズ */
    padding: 0 10px;
    display: block;       /* PC時は表示 */
}

.arrow-sp {
    display: none;        /* 初期設定（PC時）は非表示 */
}	
	
	
/* ベーススタイル（共通） */
.before-after-container {
    max-width: 1000px; 
    margin: 0 auto;    
    padding: 20px;
    display: flex;     
    align-items: center; 
    gap: 10px;         
}

/* （その他の .before-after-item, .item-title などのスタイルは前回と同様） */
.before-after-item {
    flex: 1;           
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
}
.item-title {
    background-color: #0A3701; 
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 0;
    font-size: 1.2em;
}
	
	.item-title-a {
    background-color: #F44B00; 
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 0;
    font-size: 1.2em;
}
.item-image {
    width: 100%;       
    height: auto;      
    display: block;
}
.item-caption {
    padding: 5px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
}
	
.photo-gallery-container {
    max-width: 1000px; /* 全体の最大幅 (before/afterと揃える) */
    margin: 40px auto; 
    padding: 20px;
}

.gallery-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}

.gallery-grid {
    /* CSS Gridを使用して4列のレイアウトを作成 */
    display: grid;
    /* PCでは4列: 使える横幅を4等分する */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
}

.gallery-item {
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
	margin-bottom: 5px;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
	padding: 10px 5px;
	margin-bottom: 5px;
    transition: transform 0.3s ease;
}

.gallery-caption {
    padding: 10px 5px;
    font-size: 0.9em;
    color: #555;
}


/* レスポンシブ対応 (スマホでは2列に切り替え) */
@media (max-width: 768px) {
    .gallery-grid {
        /* 画面幅が768px以下の場合、グリッドを2列に変更 */
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }
}
	
	hr {
		width: 1000px;
		background-color: #c0c0c0;
	    border-top: 2px dashed #000000;
	}
	
.triple-photo-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    
    /* 🔴 これが横並びの土台です */
    display: flex;     
    
    /* 🔴 横並びの設定を確認 */
    flex-direction: row; /* (デフォルト値ですが明示してもOK) */
    
    align-items: center; 
    gap: 15px;         
}	
	
	.photo-item {
    flex: 1;           
    border: 1px solid #ddd;
    
    /* 🔴 必須: これがないとネガティブマージンで画面が横にスクロールします */
    overflow: hidden; 
    
    /* 必須: 角丸の見た目を実現 */
    border-radius: 8px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
	

/* --------------------------------- */
/* 📸 3列アイテムの帯の色分け */
/* --------------------------------- */

/* 🔴 1番目のアイテム (例: 計画/Before) */
.triple-photo-container .photo-item:nth-child(1) .item-caption {
    background-color: #0A3701; /* 青系 */
    color: white;
	font-weight: bold;
}

/* 🟠 2番目のアイテム (例: 施工中/Middle) */
.triple-photo-container .photo-item:nth-child(3) .item-caption {
    background-color: #f39c12; /* 黄色・オレンジ系 */
    color: white; /* 文字色は黒系に調整 */
	font-weight: bold;
}

/* 🟢 3番目のアイテム (例: 完工/After) */
.triple-photo-container .photo-item:nth-child(5) .item-caption {
    background-color: #F44B00; /* 緑系 */
    color: white;
	font-weight: bold;
}
	.item-caption {
    /* ... 略 ... */
    margin-left: -10px; 
    margin-right: -10px; 
		font-size: 1.2em;
    
    /* 🔴 削除または 0 に修正: 基本スタイルでは角丸を持たせない */
    border-top-left-radius: 0; 
    border-top-right-radius: 0; 
    /* 🔴 帯内の文字が帯の下に作る隙間をゼロにする */
    line-height: 1; 
    padding: 15px 5px; /* 上下のパディングは維持 */
    
    /* 🔴 画像と帯の間の白い線を完全に消すための設定（最重要） */
    margin-bottom: -1px !important;
		/* 🔴 文字を中央に配置 */
    text-align: center;
}
	
/* 🔴 STEP 1: 左上の角丸を確定させる */
/* 🔴 STEP 1: 左端のアイテム */
.triple-photo-container .photo-item:nth-child(1) .item-caption {
    border-top-left-radius: 8px !important; 
    border-top-right-radius: 0 !important; 
}

/* 🔴 STEP 2: 中央のアイテム */
.triple-photo-container .photo-item:nth-child(3) .item-caption {
    border-radius: 0 !important; 
}

/* 🔴 STEP 3: 右端のアイテム */
.triple-photo-container .photo-item:nth-child(5) .item-caption {
    border-top-right-radius: 8px !important; 
    border-top-left-radius: 0 !important; 
}
	
	
	
	/*ケアー*/
/* ======================================= */
/* 0. 共通ベーススタイル */
/* ======================================= */
.vertical-ba-container {
    max-width: 800px; /* 見やすい幅に制限 */
    margin: 40px auto;
    padding: 20px;
    display: flex;     
    flex-direction: column; /* 縦積みで固定 */
    align-items: center; /* 中央揃え */
    gap: 15px;         /* アイテム間の隙間 */
}

/* アイテム共通設定 */
.vertical-ba-item {
    width: 100%; /* 親要素の幅いっぱいに広げる */
    border-radius: 8px; /* 全体に角丸 */
    overflow: hidden;   /* 角丸の内側にはみ出しを隠す */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* タイトル帯の設定 */
.item-title {
    width: 100%;       
    display: block;    
    text-align: center; 
    font-weight: bold;
    font-size: 1.5em;
    padding: 15px 5px;
    
    /* 🔴 隙間解消の設定 */
    margin: 0;
    line-height: 1.2; 
    
    /* 帯と画像を密着させる */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: -1px; /* 隙間を確実に埋める */
    
    /* 帯の角丸（常に角丸あり） */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* 画像設定 */
.item-image {
    width: 100%;       
    height: auto;      
    display: block;    
}

/* --------------------------------- */
/* ➡️ 矢印のスタイル設定 (下向き) */
/* --------------------------------- */
.vertical-arrow-separator {
    font-size: 4em;        /* 矢印を大きく */
    font-weight: bold;
    color: #333;           /* 矢印の色 */
    line-height: 1;        
    margin: 10px 0;        /* 上下のアイテムから少し離す */
}

/* --------------------------------- */
/* 🎨 写真AとBの帯の背景色 (黒帯に白文字) */
/* --------------------------------- */
.vertical-ba-item .item-title {
    background-color: #F44B00;
    color: white;
}
	
	/* 🔴 写真 A (上部) - BEFOREのイメージ（赤系） */
.vertical-ba-item.photo-a .item-title {
    background-color: #0A3701; /* 赤系（例：テラコッタ） */
    color: white;
}
/* --------------Flow------------------- */	
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  font-weight: 300;
  letter-spacing: 2px;
}

.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 75px;
}

.number {
  font-size: 46px;
  font-weight: 300;
  white-space: nowrap;
}

.title-box {
  min-width: 260px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}

.title-box::after {
  content: "";
  display: block;
  width: 220px;
  height: 1px;
  background: #e5e5e5;
  position: absolute;
  left: 0;
  bottom: -14px;
}

.text {
  font-size: 15px;
  line-height: 2;
  color: #555;
  padding-top: 4px;
}

/* スマホレイアウト */
@media (max-width: 768px) {
  .flow-item {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 50px;
  }
  .number {
    font-size: 50px;
  }
  .title-box {
    font-size: 17px;
  }
  .title-box::after {
    width: 100%;
  }
  .text {
    font-size: 15px;
  }
}
	
	/* ----------------------------------------------------
   PC：ヘッダー固定
---------------------------------------------------- */
@media screen and (min-width: 769px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  /* 固定ヘッダーがあるので下のコンテンツが隠れないよう余白追加 */
  body {
    padding-top: 50px;
  }

  /* PC では通常のメニューバーを表示 */
  #menubar {
    display: block !important;
  }

  /* PC ではハンバーガーを消す */
  #menubar_hdr {
    display: none !important;
  }
}

/* ----------------------------------------------------
   スマホ：ハンバーガーを常に右上表示
---------------------------------------------------- */
@media screen and (max-width: 768px) {

  /* スマホは固定のまま常に表示状態 */
  #menubar_hdr {
    display: flex !important;
    position: fixed;
    right: 10px;
    top: 10px;
    z-index: 2000;
  }

  /* スマホはメニュー本体は非表示 */
  #menubar {
    display: none;
  }
}
.greeting {
  overflow: hidden;
}

.greeting-photo {
  float: right;
  width: 40%; /* 大きめに */
  max-width: 350px; /* PC時にしっかり大きく表示 */
  margin-left: 20px;
  margin-bottom: 10px;
  height: auto;
}

.greeting-text {
  font-size: 1rem;
  line-height: 1.6;
}

/* スマホでは画像が下に来るように回り込み解除 */
@media screen and (max-width: 768px) {
  .greeting-photo {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 15px 0;
    display: block;
  }
}
