﻿/*******************************************************/
/*                                                     */
/* トップページコンテンツの編集      　                */
/*                                                     */
/*******************************************************/
/********************************/
/*　パソコン画面サイズ          */
/********************************/
/*******************************************************/
/*                                                     */
/* パソコンフォーマット  		               */
/*                                                     */
/*******************************************************/

@media screen and (min-width: 768px)
{ 
	.contract-header
	{
		position: relative;       /* ← 重要 */
		margin: 0 auto; 
		text-align: center;
		max-width: 1100px;
		margin: 0 auto;
		text-align: center;
	}
	.contract-header img
	{
		width: 100%;
		height: auto;
		display: block;
	}

	/* 画像上のテキスト全体 */
	.contract-header-text
	{
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		padding: 15px 30px;
		background: rgba(20, 60, 120, 0.65); /* 青系・半透明 */
		color: #fff;
		border-radius: 6px;
		padding: 20px;
	}

	/* 1行目 */
	.contract-header-text .line1
	{
		font-size: 40px;
		font-weight: bold;
		margin: 0;
		letter-spacing: 1px;
		white-space: nowrap;
 	}

	/* 2行目 */
	.contract-header-text .line2
	{
		font-size: 24px;
		margin: 8px 0 0 0;
	}

	/* 3行目 */
	.contract-header-text .line3
	{
		font-size: 20px;
		margin: 8px 0 0 0;
		font-weight: bold;
	}

	.main-contents
	{
		margin: 0 auto; 
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto auto 1fr;
		max-width: 1100px;
		background: linear-gradient(to bottom, #f4f7fa 0%, #ffffff 100%);
	}

	.main-contents::after
	{
		content: "";
		display: block;
		max-width: 100%;
		height: 1px;
		background: #dde5ee;
		margin-top: 60px;
	}
/********************************************************/
/*
/* 契約までの流れの定義（パソコン版）
/*
/********************************************************/	
	.main-contents1
	{
		grid-column: 1;
		grid-row: 1;
		margin: 0 auto; 
		padding: 40px 40px 10px 40px;
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto  auto auto auto auto 1fr;
 		background-color: #f4f6f8;
	}
	.main-contents1-1
	{
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 30px;
		text-align: center;
	}
	.main-contents1-1 h2
	{
		font-size: 24px;
		font-weight: bold;
		white-space: nowrap;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}
	/* 会社概要　（前田住設専用） */
	.main-contents1-2
	{
		grid-column: 1;
		grid-row: 2;
		text-align: left;
		margin-bottom: 30px;
		border-bottom: 1px solid #ddd;
	}


	.contract-header-text-sm
	{
		display: none;
	}

	/* 1行目 */
	.contract-header-text-sm .line1
	{
		display: none;
 	}

	/* 2行目 */
	.contract-header-text-sm .line2
	{
		display: none;
	}

	/* 3行目 */
	.contract-header-text-sm .line3
	{
		display: none;
	}

	.hero
	{
		border: 1px solid #ddd;
		padding: 25px;
		border-radius: 6px;
		background:#fafafa;
		text-align: center;
	}
	.hero p
	{
		color: #124b73;
		font-size: 18px;
		display: inline-block;
		border-bottom: solid 2px #f70;
		font-weight: bold;
	}
	.main-contents1-3
	{
		grid-column: 1;
		grid-row: 3;
		margin: 20px 0 20px;
		padding: 10px 0;
		display: grid;
		grid-template-columns:  1fr;
		grid-template-rows: auto auto 1fr;
		border-bottom: 1px solid #ddd;
	}
	.main-contents1-3-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
		padding: 0 0 20px;
	}
	.section-title
	{
		font-size: 24px;
		color: #124b73;
	}
	.main-contents1-3-2
	{
		grid-column: 1;
		grid-row: 2;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 1fr;
		gap: 30px;
	}
	.main-contents1-3-2-1
	{
		grid-column: 1;
		grid-row: 1;
		padding-left: 20px;
	}
	.feature h3
	{
		font-size:18px;
		color: #124b73;
		margin-bottom: 10px;
	}
	.feature p
	{
		color: #5f6f7c;
	}
	.main-contents1-3-2-2
	{
		grid-column: 2;
		grid-row: 1;
		padding: 20px;
		border-radius :10px;
	}

	.feature h3
	{
		font-size: 18px;
	}

	.feature p
	{
		font-size: 18px;
	}

	.feature img
	{
		max-width: 100%;
		border-radius :10px;
	}

	.image-section
	{
		text-align: center;
	}

	.image-section img
	{
		max-width: 100%;
		border-radius :6px;
	}

	.main-contents1-4
	{
		grid-column: 1;
		grid-row: 4;
		margin: 20px 0;
		padding: 10px 0;
		display: grid;
		grid-template-columns:  1fr;
		grid-template-rows: auto auto 1fr;
	}
	.caption
	{
		margin-top :10px;
		color: #555;
		font-size: 15px;
	}
	.main-contents1-4
	{
		grid-column: 1;
		grid-row: 4;
		margin-bottom: 20px;
		text-align: center;
	}
	.main-contents1-5
	{
		grid-column: 1;
		grid-row: 5;
		margin-bottom: 20px;
		text-align: center;
	}
	.message 
	{
		margin-bottom: 40px;
	}

	.message h3
	{
		color: #124b73;
		margin-top: 40px;
		font-size:18px;
	}

	.message p
	{
		margin-bottom:20px;
		color: #5f6f7c;
		font-size: 18px;
	}

	.career
	{
		border-top: 1px solid #ddd;
		border-bottom: 1px solid #ddd;
		padding: 30px 0;
	}

	.career p
	{
		text-align: center;
		color: #5f6f7c;
		font-size: 18px;
	}

	.main-contents2
	{
		grid-column: 1;
		grid-row: 2;
		margin: 40px auto; 
		padding: 10px;
		text-align: center;
 		background-color: #f4f6f8;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto 1fr;
	}
	.main-contents2-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
	}
	.main-contents2-1 h2
	{
		font-size: 24px;
		font-weight: bold;
		white-space: nowrap;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}
	.main-contents2-2
	{
		grid-column: 1;
		grid-row: 2;
		text-align: center;
	}

	.table-wrap
	{
		margin: 0 auto;
		padding: 0 20px;     /* ← 左右20pxの余白 */
	}

	.table-wrap table
	{
		border-collapse: collapse;
		width: 1100px;   /* ページ幅に合わせる（任意） */
	}

	th,td
	{
		border: 1px solid #ccc;
		padding: 12px;
		vertical-align :top;
		color: #124b73;
		font-size: 18px;
		text-align: left;
	}
	th
	{
		width: 30%;
		background: #f3f3f3;
		text-align: left;
	}
	td
	{
		background: #fff;
		text-align: left;
	}
	.benef-wrap
	{
		display: none;
	}
	.main-contents2-3
	{
		grid-column: 1;
		grid-row: 3;
		text-align: center;
	}

	.recruit-flow
	{
		max-width: 1100px;
		margin: 80px auto 40px;
		padding: 40px 20px;
		background: #f8f9fa;
		border-radius: 8px;
	}

	.recruit-flow-title
	{
		text-align: center;
		font-size: 24px;
		margin-bottom: 40px;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}

	.flow-steps
	{
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}

	.flow-step
	{
		background: #fff;
		padding: 25px 20px;
		border-radius: 6px;
		text-align: center;
		box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	}

	.flow-number
	{
		font-size: 22px;
		font-weight: bold;
		color: #1a73b8;
		margin-bottom: 10px;
	}

	.flow-step h3
	{
		font-size: 16px;
		margin-bottom: 10px;
		color: #124b73;
	}

	.flow-step p
	{
		font-size: 16px;
		line-height: 1.6;
		color: #555;
		text-align: left;
	}

	.main-contents2-4
	{
		grid-column: 1;
		grid-row: 4;
		text-align: center;
	}

	.cta
	{
		background :#f7f7f7;
		text-align: center;
		margin: 40px auto 60px;
		max-width: 100%;
	}
	.cta p
	{
		font-size: 18px;
		margin-bottom: 20px;
		color: #124b73;
	}
	.cta img
	{
		width: 70%;
		border-radius: 30px;
	}
	.cta a
	{
		display: inline-block;
		background: linear-gradient(135deg, #1a73b8, #155a8a);
		color: #fff;
		font-size: 18px;
		font-weight: bold;
		padding: 18px 30px;
		border-radius: 999px;
		text-decoration: none;
		box-shadow: 0 6px 15px rgba(26, 115, 184, 0.35);
	}
	.cta a span
	{
		display: block;
		font-size: 14px;
		font-weight: normal;
		margin-top: 2px;
		opacity: 0.9;
	}
}



/********************************/
/*　スマホ画面サイズ            */
/********************************/

/*******************************************************/
/*                                                     */
/* スマフォ・タブレットフォーマット	               */
/*                                                     */
/*******************************************************/

@media screen and (max-width: 768px)
{ 
	.contract-header
	{
		max-width: 100%;
		padding: 12px 15px;;
	}
	.contract-header img
	{
		width: 100%;
		height: auto;
	}

	/* 画像上のテキスト全体 */
	.contract-header-text
	{
		display: none;
	}

	/* 1行目 */
	.contract-header-text .line1
	{
		display: none;
 	}

	/* 2行目 */
	.contract-header-text .line2
	{
		display: none;
	}

	/* 3行目 */
	.contract-header-text .line3
	{
		display: none;
	}

	.main-contents
	{
		margin: 0 auto; 
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto 1fr;
		max-width: 100%;
		background: linear-gradient(to bottom, #f4f7fa 0%, #ffffff 100%);
	}

	.main-contents::after
	{
		content: "";
		display: block;
		max-width: 100%;
		height: 1px;
		background: #dde5ee;
		margin-top: 60px;
	}
/********************************************************/
/*
/* 募集要項の定義（フマホ版）
/*
/********************************************************/	
	.main-contents1
	{
		grid-column: 1;
		grid-row: 1;
		margin: 0 auto; 
		padding: 20px 20px 10px 20px;
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto auto 1fr;
 		background-color: #f4f6f8;
	}
	.main-contents1-1
	{
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 20px;
		text-align: center;
	}
	.main-contents1-1 h2
	{
		font-size: 18px;
		font-weight: bold;
		white-space: nowrap;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}
	/* 会社概要　（前田住設専用） */
	.main-contents1-2
	{
		grid-column: 1;
		grid-row: 2;
		text-align: left;
		margin-bottom: 15px;
	}




	.contract-header-text-sm
	{

/*		max-width: 100%;
		margin: 0 auto; 
		padding: 20px;
		background: rgba(20, 60, 120, 0.65); 
		color: #fff;
		border-radius: 6px;
		text-align: center;
*/
		display: block;
		width: 100%;
		margin: 15px auto;
		padding: 15px;
		box-sizing: border-box;
		border-radius: 6px;
		background: rgba(20, 60, 120, 0.65); 
		color: #fff;
		text-align: center;
	}

	/* 1行目 */
	.contract-header-text-sm .line1
	{
/*
		font-size: 16px;
		font-weight: bold;
		margin: 0;
		letter-spacing: 1px;
		white-space: nowrap;


*/
		font-size: 16px;
		white-space: normal;   /* ← スマホでは改行OK */
		line-height: 1.4;
 	}

	/* 2行目 */
	.contract-header-text-sm .line2
	{
/*
		font-size: 14px;
		margin: 8px 0 0 0;
*/
		font-size: 14px;
		line-height: 1.6;
	}

	/* 3行目 */
	.contract-header-text-sm .line3
	{
/*
		font-size: 14px;
		margin: 8px 0 0 0;
		font-weight: bold;
*/
		font-size: 14px;
		margin-top: 10px;
	}
	.hero
	{
		border: 1px solid #ddd;
		padding: 20px;
		border-radius: 6px;
		background:#fafafa;
		text-align: center;
	}
	.hero p
	{
		color: #124b73;
		font-size: 14px;
		display: inline-block;
		border-bottom: solid 2px #f70;
		font-weight: bold;
		text-align: left;
	}
	.main-contents1-3
	{
		grid-column: 1;
		grid-row: 3;
		max-width: 100%;
		margin: 20px 0 10px;
		padding: 10px 0;
		display: grid;
		grid-template-columns:  1fr;
		grid-template-rows: auto auto 1fr;
		border-top: 1px solid #ddd;
		border-bottom: 1px solid #ddd;
	}
	.main-contents1-3-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
		padding: 0 0 15px;
	}
	.section-title
	{
		font-size: 16px;
		color: #124b73;
		text-align: center;
	}
	.main-contents1-3-2
	{
		grid-column: 1;
		grid-row: 2;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
		gap: 30px;
	}
	.main-contents1-3-2-1
	{
		grid-column: 1;
		grid-row: 1;
		padding-left: 10px;
	}
	.feature h3
	{
		font-size:16px;
		color: #124b73;
		margin-bottom: 10px;
	}
	.feature p
	{
		color: #5f6f7c;
		text-align: left;
	}
	.main-contents1-3-2-2
	{
		grid-column: 1;
		grid-row: 2;
		padding: 10px;
		border-radius :10px;
		min-width: 0; 
	}
	.feature-photo
	{
		max-width: 100%;
		height: auto;
		display: block;
	}
	.feature h3
	{
		font-size: 16px;
	}

	.feature p
	{
		font-size: 14px;
	}

	.feature img
	{
		max-width: 100%;
		border-radius :10px;
	}

	.image-section
	{
		text-align: center;
	}

	.image-section img
	{
		max-width: 100%;
		border-radius :6px;
	}

	.main-contents1-4
	{
		grid-column: 1;
		grid-row: 4;
		padding: 10px 0;
		display: grid;
		grid-template-columns:  1fr;
		grid-template-rows: auto auto 1fr;
	}
	.caption
	{
		margin-top :10px;
		color: #555;
		font-size: 15px;
	}
	.main-contents1-4
	{
		grid-column: 1;
		grid-row: 4;
		margin-bottom: 20px;
		text-align: center;
	}
	.main-contents1-5
	{
		grid-column: 1;
		grid-row: 5;
		margin-bottom: 20px;
		text-align: center;
	}

	.message 
	{
		margin-bottom: 40px;
		text-align: left;
	}

	.message h3
	{
		color: #124b73;
		margin-top: 40px;
		font-size:16px;
	}

	.message p
	{
		margin-bottom:15px;
		color: #5f6f7c;
		font-size: 14px;
		text-align: left;
	}

	.career
	{
		border-top: 1px solid #ddd;
		border-bottom: 1px solid #ddd;
		padding: 15px 0;
	}

	.career p
	{
		text-align: left;
		color: #5f6f7c;
		font-size: 14px;
	}
/*
	.main-contents2
	{
		grid-column: 1;
		grid-row: 2;
		margin: 20px auto; 
		padding: 10px;
		text-align: center;
 		background-color: #f4f6f8;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto 1fr;
	}
	.main-contents2-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
	}
	.main-contents2-1 h2
	{
		font-size: 16px;
		font-weight: bold;
		white-space: nowrap;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}
	.main-contents2-2
	{
		grid-column: 1;
		grid-row: 2;
		text-align: center;
	}

	.table-wrap
	{
		max-width: 100%;
		margin: 0 auto;
		padding: 0 10px;     
	}

	.table-wrap table
	{
		border-collapse: collapse;
		max-width: 100%;   
	}

	th,td
	{
		border: 1px solid #ccc;
		padding: 10px;
		vertical-align :top;
		color: #124b73;
		font-size: 14px;
		text-align: left;
	}
	th
	{
		width: 100%;
		background: #f3f3f3;
		text-align: left;
	}
	td
	{
		background: #fff;
		text-align: left;
	}

	.cta
	{
		background :#f7f7f7;
		text-align: center;
		padding: 60px 20px;
	}
	.cta p
	{
		font-size: 14px;
		margin-bottom: 25px;
		color: #124b73;
	}
	.cta a
	{
		display: inline-block;
		padding: 15px 45px;
		background: #1f2a36;
		color: #fff;
		text-decoration: none;
		border-radius: 30px;
	}

	.table-wrap
	{
		padding: 0 10px;
	}

	th, td
	{
		font-size: 15px;
	}
*/

	/* 全体余白調整 */
	.main-contents2
	{
		margin: 20px auto;
		padding: 5px;
		grid-column: 1;
		grid-row: 2;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto auto 1fr;
	}

	/* 見出し */
	.main-contents2-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
	}
	.main-contents2-1 h2
	{
		font-size: 20px;
		color: #124b73;
	}

	.main-contents2-2
	{
		grid-column: 1;
		grid-row: 2;
		text-align: center;
	}

	/* table全体 パソコン画面 */
	.table-wrap
	{
		display: none;
/*
		margin: 0 auto;
		padding: 0 10px;
		text-align: center;
*/
	}
	.table-wrap table
	{
		margin: 0 auto;
	}
	.table-wrap table,
	.table-wrap tr,
	.table-wrap th,
	.table-wrap td
	{
		display: block;
		width: 100%;          /* ← 固定1100pxを解除 */
	}

	.table-wrap tr
	{
		background: none;
		border-bottom: none;
		padding-bottom: 6px;
		font-size: 14px;
		color: #124b73;
		text-align: center;
	}

	.table-wrap tr
	{
		border-bottom: 1px solid #e0e0e0;
		padding-top: 15px;
		font-size: 14px;
		color: #124b73;
	}

	/* th / td */
	th, td
	{
		font-size: 14px;
		color: #124b73;
	}

	th
	{
		text-align: center;
	}

	.benef-wrap
	{
		margin: 0 auto;
		padding: 0 10px;
		text-align: center;
		color: #124b73;
	}
	.benef-wrap h4
	{
		margin: 10px 0 4px;
		font-size: 16px;
	}
	.benef-wrap p
	{
		margin: 0 0 8px;
		font-size: 14px;
		border-bottom: 1px solid #e0e0e0;
 	}
	.main-contents2-3
	{
		grid-column: 1;
		grid-row: 3;
		text-align: center;
	}

	.recruit-flow
	{
		margin-top: 60px;
	}

	.recruit-flow-title
	{
		text-align: center;
		font-size: 18px;
		margin-bottom: 40px;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}

	.flow-steps
	{
		grid-template-columns: 1fr;
		gap: 12px; /* ← カード間隔を縮める */
	}

	.flow-step
	{
		background: #fff;
		padding: 20px 16px;
		border-radius: 6px;
	 	text-align: center;
		box-shadow: 0 2px 6px rgba(0,0,0,0.05);
	}

	.flow-number
	{
		font-size: 22px;
		font-weight: bold;
		color: #1a73b8;
		margin-bottom: 0;
	}

	.flow-step h3
	{
		font-size: 16px;
		margin-bottom: 0;
		color: #222;
	}

	.flow-step p
	{
		font-size: 14px;
		line-height: 1.6;
		color: #555;
		text-align: left;
	}

	.main-contents2-4
	{
		grid-column: 1;
		grid-row: 4;
		text-align: center;
	}
	/* CTA */
	.cta
	{
		margin: 40px;
		padding: 20px;
	}

	.cta p
	{
		font-size: 15px;
	}

	.cta img
	{
		width: 100%;
		border-radius: 30px;
	}

	.cta a
	{
		display: inline-block;
		background: linear-gradient(135deg, #1a73b8, #155a8a);
		color: #fff;
		font-size: 16px;
		font-weight: bold;
		padding: 15px 20px;
		border-radius: 999px;
		text-decoration: none;
		box-shadow: 0 6px 15px rgba(26, 115, 184, 0.35);
	}
	.cta a span
	{
		display: block;
		font-size: 13px;
		font-weight: normal;
		margin-top: 6px;
		opacity: 0.9;
	}






}



