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

@media screen and (min-width: 768px)
{ 
	.contract-header
	{
		margin: 0 auto; 
		text-align: center;
		max-width: 1100px;
	}
	.main-contents
	{
		margin: 0 auto; 
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: 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 1fr;
	}
/*
	.main-contents1-1
	{
		grid-column: 1;
		grid-row: 1;
		margin: 20px 0;
		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;
		margin-bottom: 60px;
		text-align: center;
	}
	.flow-intro-inner
	{
 		margin: 0 auto;
		background: #ffffff;
		padding: 36px 40px;
		border-radius: 14px;
		box-shadow: 0 10px 30px rgba(0,0,0,.06);
		border-left: 6px solid #0d52b1;
		border-right: 6px solid #0d52b1;
		color: #234766;
	}

	.flow-intro-inner p
	{
		font-size: 18px;
		line-height: 1.9;
		margin-bottom: 18px;
	}

	.flow-intro-inner p:last-child
	{
		margin-bottom: 0;
	}

	.flow-intro-inner .em
	{
		color: #0d52b1;
		font-weight: 600;
	}

	.flow-intro-inner .strong
	{
		background: #f4f7fa;
		padding: 14px 18px;
		border-radius: 8px;
		font-weight: 600;
	}

	.flow-intro-inner .closing
	{
		text-align: center;
		font-weight: 600;
		margin-top: 24px;
	}
*/
	.main-contents1-3
	{
		grid-column: 1;
		grid-row: 3;
		margin-bottom: 10px;
		text-align: center;
	}
	.main-contents1-3 h2
	{
		font-size: 24px;
		font-weight: bold;
		white-space: nowrap;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}

	.flow-title
	{
		text-align: center;
		font-size: 28px;
		font-weight: 700;
		color: #124b73;
		margin-bottom: 50px;
		position: relative;
	}
	.flow-title::after
	{
		content: "";
		display: block;
		width: 80px;
		height: 4px;
		background: #0d52b1;
		margin: 18px auto 0;
		border-radius: 2px;
	}

	.main-contents1-4
	{
		grid-column: 1;
		grid-row: 4;
		text-align: left;
		margin: 20px 0;
	}


	.flow-list
	{
		width: 100%;
		margin: 0 auto;
	}

	.flow-item
	{
		display: grid;
		grid-template-columns: 50px 1fr 220px;
		gap: 20px;
		align-items: flex-start;
		margin-bottom: 20px;

		background: #ffffff;
		border-radius: 12px;
		padding: 20px;
		box-shadow: 0 10px 28px rgba(0,0,0,.08);
		border-left: 5px solid #0d52b1;
		border-right: 5px solid #0d52b1;
	}
	.flow-item:last-of-type
	{
		margin-bottom: 0;
		border-left-color: #6a8fb3;
		background: linear-gradient(to right, #ffffff 0%, #f7fafc 100%);
	}
	.flow-icon
	{
		width: 40px;
		height: 40px;
		background: #0d52b1;
		color: #fff;
		border-radius: 50%;
		text-align: center;
		line-height: 36px;
		font-weight: bold;
		font-size: 18px;
	}

	.flow-content
	{
		text-align: left;
	}
	.flow-content h3
	{
		margin: 0;
		font-size: 20px;
		color: #234766;
	}

	.flow-content p
	{
		margin: 6px 0 0;
		font-size: 18px;
		color: #5f6f7c;
	}

	.flow-photo img
	{
		width: 50%;
		margin-top: 4px;
		border-radius: 10px;
		box-shadow: 0 6px 18px rgba(0,0,0,.12);
	}
*/
	.flow-sub-images
	{
		flex-direction: column;
		gap: 10px;
	}

	.flow-sub-images img
	{
		max-width: 300px;
		height: auto;
		padding-top:10px;
	}
	/* ? 矢印 */
	.flow-arrow
	{
		text-align: center;
		font-size: 26px;
		color: #8fa6bc;
		margin: 10px 0 25px;
		letter-spacing: .2em;
	}
	.flow-arrow:last-of-type
	{
		margin-bottom: 10px;
		color: #c2cfdb;
	}
/********************************************************/
/*
/* ご案内の定義（パソコン版）
/*
/********************************************************/	
/*
	.main-contents2
	{
		grid-column: 1;
		grid-row: 1;
		margin: 0 auto; 
		padding: 10px;
		text-align: center;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 1fr;
	}
	.main-contents2-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
	}
	.main-contents2-2
	{
		grid-column: 2;
		grid-row: 1;
		text-align: center;
	}
*/
}



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

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

@media screen and (max-width: 768px)
{ 
	.contract-header
	{
		max-width: 100%;
		margin: 0 auto;
	}
	.contract-header img
	{
		width: 100%;
		height: auto;
	}
	.main-contents
	{
		max-width: 100%;
		margin: 0 auto; 
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto 1fr;
		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 1fr;
	}

	.main-contents1-3
	{
		grid-column: 1;
		grid-row: 3;
		margin-bottom: 10px;
		text-align: center;
	}
	.main-contents1-3 h2
	{
		font-size: 18px;
		font-weight: bold;
		white-space: normal;
		display: inline-block;
		color: #124b73;
		border-bottom: solid 3px #0d52b1;
	}

	.flow-title
	{
		text-align: center;
		font-size: 18px;
		font-weight: 700;
		color: #124b73;
		margin-bottom: 50px;
		position: relative;
	}
	.flow-title::after
	{
		content: "";
		display: block;
		width: 80px;
		height: 4px;
		background: #0d52b1;
		margin: 18px auto 0;
		border-radius: 2px;
	}

	.main-contents1-4
	{
		grid-column: 1;
		grid-row: 4;
		text-align: left;
		margin: 20px 0;
	}




	.flow-item
	{
	display: grid;              /* ← 必須 */
	align-items: start;
	grid-template-columns: 30px 1fr;
	grid-template-areas:
	"icon content"
	"photo photo";
	gap: 10px;
	}


/*
	.flow-item
	{
		align-items: start;
		grid-template-columns: 50px 1fr;
		grid-template-areas:
	}
*/
	.flow-item:last-of-type
	{
		margin-bottom: 0;
		border-left-color: #6a8fb3;
		background: linear-gradient(to right, #ffffff 0%, #f7fafc 100%);
	}

	.flow-photo
	{
		grid-area: photo;
		margin-top: 10px;
	}
	.flow-icon
	{
		grid-area: icon;
		width: 30px;
		height: 30px;
		background: #0d52b1;
		color: #fff;
		border-radius: 50%;
		text-align: center;
		line-height: 36px;
		font-weight: bold;
		font-size: 12px;
		padding-bottom: 10px;
	}
	.flow-content
	{
		grid-area: content;
		text-align: left;
	}
	.flow-content h3
	{
		margin: 0;
		font-size: 18px;
		color: #234766;
	}

	.flow-content p
	{
		margin: 6px 0 0;
		font-size: 14px;
		color: #5f6f7c;
	}
	.flow-photo
	{
		grid-area: photo;
		text-align: center;
	}
	.flow-photo img
	{
		width: 50%;
		margin-top: 4px;
		border-radius: 10px;
		box-shadow: 0 6px 18px rgba(0,0,0,.12);
	}

	.flow-sub-images
	{
		flex-direction: column;
		gap: 10px;
	}

	.flow-sub-images img
	{
		width: 100%;
		height: auto;
		padding-top:10px;
	}
*/
	/* ? 矢印 */
	.flow-arrow
	{
		text-align: center;
		font-size: 26px;
		color: #8fa6bc;
		margin: 10px 0 25px;
		letter-spacing: .2em;
	}

	.flow-arrow:last-of-type
	{
		margin-bottom: 10px;
		color: #c2cfdb;
	}
}

