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

@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-bottom: 10px;
		text-align: center;
	}

	.main-contents1-1 h2,
	.main-contents1-1 p
	{
		display: block;
		margin: 0;
		text-align: center;
	}

	.main-contents1-1 h2 span
	{
		display: inline-block;
		border-bottom: solid 3px #0d52b1;
		color: #124b73;
		font-size: 24px;
		font-weight: bold;
	}

	.main-contents1-1 p span
	{
		margin-top: 2px;
		display: inline-block;
		border-bottom: solid 2px #0d52b1;
		color: #124b73;
		font-size: 20px;
		font-weight: bold;
	}
/*
	.main-contents1-1 h2
	{
		font-size: 24px;
		font-weight: bold;
		border-bottom: solid 3px #0d52b1;
		color: #124b73;
		display: inline-block;
		margin-bottom: 0;
	}
	.main-contents1-1 p
	{
		margin-top: 0;
		font-size: 20px;
		color: #124b73;
		font-weight: bold;
		display: inline-block;
		border-bottom: solid 2px #0d52b1;
	}
*/
	.main-contents1-2
	{
		grid-column: 1;
		grid-row: 2;
		margin: 20px;
		text-align: center;
	}
	/* サイディング施工事例 */
	.case-detail
	{
		max-width: 1100px;
		margin: 0 auto;
		padding: 20px;
		line-height: 1.8;
		color: #124b73;
	}

	.case-title
	{
		font-size: 22px;
		margin-bottom: 20px;
	}

	.case-summary
	{
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		background: #f8f8f8;
		padding: 10px;
		border-radius: 6px;
		text-align: center;
	}

	.case-summary dl
	{
		margin: 0;
		font-size: 18px;
	}

	.case-summary dt
	{
		font-weight: bold;
		margin-top: 10px;
	}

	.case-summary dd
	{
		margin-left: 0;
	}

	.case-summary-images
	{
		display: flex;
		gap: 10px;
		font-size: 18px;
	}

	.case-summary-images img
	{
		width: 100%;
		border-radius: 4px;
	}

	.case-details
	{
		margin-top: 30px;
		font-size: 18px;
	}

	.case-details summary
	{
		cursor: pointer;
		font-weight: bold;
		padding: 10px;
		background: #eee;
		border-radius: 4px;
	}

	.case-step
	{
		margin-top: 20px;
	}

	.case-step img
	{
		max-width: 100%;
		margin-top: 10px;
		border-radius: 4px;
	}

	.case-note
	{
		margin-top: 30px;
		padding: 15px;
		background: #eaeaea;
		border-left: 4px solid #aaa;
		border-right: 4px solid #aaa;
	}



/********************************************************/
/*
/* ご案内の定義（パソコン版）
/*
/********************************************************/	
	.main-contents2
	{
		grid-column: 1;
		grid-row: 2;
		margin: 0 auto; 
		padding: 10px;
		text-align: center;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}
	.main-contents2-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
	}
	.next-action
	{
		max-width: 1100px;
		margin: 20px auto 10px;
		padding: 0 20px;
		gap: 10px;
	}

	.next-action a
	{
		display: inline-block;
		font-size: 18px;
		color: #234766;
		text-decoration: none;
		padding: 8px 12px;
		border-radius: 4px;
		transition: background-color 0.2s ease, color 0.2s ease;
		border: 1px solid #aaa;
	}

	.next-action a:hover
	{
		background-color: #7193a1;
		color: #fff;
	}

	.main-contents2-2
	{
		grid-column: 1;
		grid-row: 2;
		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-1 h2,
	.main-contents1-1 p
	{
		display: block;
		margin: 0;
		text-align: center;
	}

	.main-contents1-1 h2 span
	{
		display: inline-block;
		border-bottom: solid 3px #0d52b1;
		color: #124b73;
		font-size: 18px;
		font-weight: bold;
	}

	.main-contents1-1 p span
	{
		margin-top: 2px;
		display: inline-block;
		border-bottom: solid 2px #0d52b1;
		color: #124b73;
		font-size: 16px;
		font-weight: bold;
	}
/*
	.main-contents1-1
	{
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 10px;
		text-align: center;
	}
	.main-contents1-1 h2
	{
		font-size: 18px;
		font-weight: bold;
		white-space: normal;
		display: inline-block;
		border-bottom: solid 3px #0d52b1;
		color: #124b73;
		margin: 1px;
	}
	.main-contents1-1 p
	{
		margin-top: 0;
		font-size: 16px;
		color: #124b73;
		font-weight: bold;
		display: inline-block;
		border-bottom: solid 1px #0d52b1;
	}
*/
	.main-contents1-2
	{
		grid-column: 1;
		grid-row: 2;
		margin: 20px;
		text-align: center;
	}
	.main-contents1-2 img
	{
		width: 80%;
		height: auto;
	}
	.case-detail
	{
		font-size: 16px;
		color: #124b73;
	}

	.case-title
	{
		font-size: 16px;
		text-align: left;
	}
	.case-detail summary
	{
		background: #f0f0f0;
		margin-top: 20px;
		padding: 10px;
		text-align: center;
		font-size: 16px;
		font-weight: bold;
	}

	.case-summary-text dt
	{
		font-weight: bold;
	}

	.case-summary-text dd
	{
		text-align: left;
	}

	.case-filter
	{
		display: flex;
	flex-wrap: wrap;
	}

	.case-grid
	{
		grid-template-columns: 1fr;
	}

	.case-step p
	{
		text-align: left;
	}

	.case-note
	{
		text-align: left;
	}

	.case-card
	{
		display: none;
	}

	.case-card:nth-child(-n+3)
	{
		display: block;
	}

	.more-button
	{
		display: block;
	}
/********************************************************/
/*
/* ご案内の定義（スマホ版）
/*
/********************************************************/	
	.main-contents2
	{
		grid-column: 1;
		grid-row: 2;
		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-contents2-1
	{
		grid-column: 1;
		grid-row: 1;
		text-align: center;
	}
	.next-action
	{
		max-width: 100%;
		margin: 20px auto 10px;
		padding: 0 10px;
		gap: 10px;
	}

	.next-action a
	{
		display: inline-block;
		font-size: 14px;
		color: #234766;
		text-decoration: none;
		padding: 5px 10px;
		border-radius: 4px;
		transition: background-color 0.2s ease, color 0.2s ease;
		border: 1px solid #aaa;
		margin: 5px;
	}

	.next-action a:hover
	{
		background-color: #7193a1;
		color: #fff;
	}
	.main-contents2-2
	{
		grid-column: 1;
		grid-row: 2;
		text-align: center;
	}
	.case-summary
	{
		grid-template-columns: 1fr;
	}


}

