@charset "UTF-8";

/* テキストの自動拡大を無効化 */
body {
	-webkit-text-size-adjust: none;
	text-size-adjust: none; 
}

/* 基本設定 */

* {
	margin: 0;
}

img {
	width: 100%;
	height: auto;
}


/* ページ全体の設定 */
body {
	display: grid;
	grid-template-columns: 20px 1fr 20px;
	grid-template-rows: 
		[head] 100px
		[title] auto
		[sub] auto
		[recent] auto
		[office] auto
		[foot] 350px;
	row-gap: 20px;
	font-family: sans-serif;
}


/* パーツの配置*/
body > * {
	grid-column: 2 / -2;
}


/* ヘッダー */
header {
	grid-row: head;
	justify-self: center;
	align-self: center;
	font-size: 40px;
	color: #555d6b;
	font-family: sans-serif;
}

header a {
	color: inherit;
	text-decoration: none;
}

/* ナビゲーションメニュー */
nav {
	grid-row: head;
	justify-self: center;
	align-self: end;
}

nav ul {
	list-style-type: none;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	column-gap: 20px;
}

nav a {
	color: #666666;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
}

nav a:hover {
	color: #ef9504;
}


/* ヒーローイメージ */
figure.hero {
	grid-column: 1 / -1;
	grid-row: title / span 2;
}

figure.hero img {
	height: 547px;
	object-fit: cover;
	vertical-align: bottom;
	filter: brightness(100%);
	z-index: -1;
	position: relative; /* Edge用の設定 */
}



/* タイトル */
.top h1 {
	grid-row: title;
	justify-self: center;
	align-self: center;
	color: #ffffff;
	font-size: 50px;
	font-weight: normal;
	line-height: 1.2;
	text-shadow: 0 0 5px #444444;
	text-align: center;
	font-family: sans-serif;
}

/* サブタイトル */
.top p {
	grid-row: sub;
	text-align: center;
}

.top p a {
	color: #ffffff;
	text-decoration: none;
	border: solid 1px #ffffff;
	padding: 10px 40px;
	display: inline-block;
	margin-top: 10px;
	border-radius: 10px;
	background-color: rgba(85, 93, 107, 0.5);
}

.top p a:hover {
	background-color: #ef9504;
}

.top p img {
	width: 250px;
}


/* 記事一覧 ＆ 記事ページの記事一覧 ＆ お支払いページ */
section, aside ul {
	grid-row: recent;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px 10px;
	gap: 20px 10px;
}

section a, aside a {
	color: #000000;
	text-decoration: none;
}

section a:hover, aside a:hover {
	text-decoration: underline;
}

section h3, aside h3 {
	font-size: 14px;
}

section h2 {
	grid-column: 1 / -1;
	font-family: sans-serif;
	font-size: 20px;
	font-weight: normal;
	text-align: center;
}

/* ピノウェル25の情報や地図 */
.info {
	grid-row: office;
	background-color: var(--primary);
	text-align: center;
}

.info .text {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.info .address {
	text-align: left;
	margin-top: 0.5rem;
}

.info .sns {
	display: flex;
	list-style: none;
	margin-top: 0.5rem;
}
.info .sns li:not(:first-child) {
	margin-left: 0.25rem;
}
.info .sns img {
	width: 3.5rem;
	opacity: 0.8;
}

.info .map {
	margin-top: 0.5rem;
}
.info .map iframe {
	width: 100%;
	height: 100%;
}

@media (min-width: 768px) {

	.info {
		display: flex;
	}
	
	.info .text {
		flex: 0 0 auto;
		width: calc( (var(--side) * 2 ) + 3.12rem );
		margin-right: 0.49rem;
		margin-top: 0.28rem;
		margin-bottom: 0.28rem;
		align-items: flex-start;
	}
	
	.info .map {
		flex: 1 1 auto;
		margin-top: 0;
	}

	.info .map iframe {
		height: 100%;
	}

	.info h2 + p {
		margin-left: 0.06rem;
	}
}


/* フッター */
.footer {
	padding: 40px 0px;
	grid-row: foot;
	grid-column: 1 / -1;
	background-color: #eeeeee;
	color: #000000;
	font-size: 13px;
}

.footer-container {
	display: grid;
	gap: 50px;
	justify-items: center;
}

@media (min-width: 768px) {
	.footer-container {
		grid-template-columns: auto auto;
		grid-template-rows: auto auto auto;
		gap: 20px;
	}

	.footer-site {
		margin-bottom: 20px;
	}
}


/* フッター：テキストメニュー */
.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	list-style-type: none;
	padding: 20px 5px 0px 0px;
}


.footer-menu a {
	color: inherit;
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}




/* 記事ページ */
.post {
	grid-template-rows: 
		[head] 100px
		[kiji] auto
		[submenu] auto
		[office] auto
		[foot] 350px;
}

/* 記事ページ：記事 */
.post article {
	grid-row: kiji;
}

.post article > * {
	margin-top: 1em;
	margin-bottom: 1em;
	display: block;
}

.post article p {
	line-height: 2;
}

/* 記事ページ：バー */
.post::before {
	content: '';
	background: #eeeeee;
	height: 2px;
	grid-column: 1 / -1;
	grid-row: kiji;
}



/* 記事ページ：サブメニュー */
.post .sub-menu {
	grid-row: submenu;
}

aside {
	border: solid 1px #dddddd;
	padding: 20px;
	margin-top: 30px;
	margin-bottom: 30px;
	text-align: center;
}

aside h2 {
	border-bottom: solid 1px #dddddd;
	padding-bottom: 20px;
	margin-bottom: 20px;
	color: #888888;
	font-weight: normal;
	font-family: sans-serif;
}

aside p {
	font-size: 14px;
	text-align: left;
}

aside:first-child img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
}

.circlelink {
	width: 120px;
	height: 120px;
	display: inline-block;
	overflow: hidden;
	border-radius: 50%;
}

aside ul {
	list-style-type: none;
	padding: 0;
	text-align: left;
}



/* お支払いページ構成 */
.checkout {
	grid-template-rows: 
		[head] 100px
		[sentence] auto
		[payment] auto
		[office] auto
		[foot] 350px;
}
.checkout section {
	grid-row: payment;
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 20px 10px;
	gap: 20px 10px;
	justify-self: center;
}
@media (min-width: 500px) {
.checkout section {
	grid-template-columns: 1fr 1fr;
	justify-self: stretch;
}
}

@media (min-width: 1200px) {
.checkout section {
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 20px;
	column-gap: 20px;
}
}


/* お支払いページ内容 */

.checkout .pay {
	grid-row: sentence;
} 
.checkout .pay  > * {
	margin-top: 1em;
	margin-bottom: 1em;
	display: block;
}
.checkout .pay  p {
	line-height: 2;
} 
.checkout section {
	grid-row: payment;
}

/* お支払いページ：バー */
.checkout::before {
	content: '';
	background: #eeeeee;
	height: 2px;
	grid-column: 1 / -1;
	grid-row: sentence;
}



/* カウンセリングメニューページ */
table {
	border-collapse: collapse;
}

th, td {
	border: solid 1px #cccccc;
	padding: 20px;
}

th {
	width: 4em;
	text-align: left;
	background-color: #555d6b;
	color: #ffffff;
}

td {
	background-color: #e8eef9;
}





/* ラインのボタン設定 */
.linefriends {
	height: 36px;
	width: 108px;
}

/* ===== PC版の設定 ===== */
@media (min-width: 768px) {

/* PC版：ページ全体の設定 */
body {
	grid-template-columns: 0.2fr repeat(6,1fr) 0.2fr;
	grid-column-gap: 5%;
	column-gap: 5%;
	grid-template-rows: 
		[head] 100px
		[title sub] auto
		[recent] auto
		[office] auto
		[foot] 180px;
}

/* PC版：ヒーローイメージ */
figure.hero {
	grid-row: title;
	margin-top: -20px;
}

/* PC版：タイトル */
.top h1 {
	grid-column: 2 / span 3;
	max-width: 460px;
}

/* PC版：サブタイトル */
.top p {
	grid-column: 5 / span 3;
	align-self: center;
}

.top p img {
	width: 80%;
	max-width: 460px;
}

/* PC版：ヘッダー */
header {
	justify-self: start;
}

/* PC版：ナビゲーションメニュー */
nav {
	justify-self: end;
	align-self: center;
}

/* PC版：お支払いページ構成 */
.checkout {
	grid-template-rows: 
		[head] 100px
		[sentence] auto
		[payment] auto
		[office] auto
		[foot] 180px;
}

/* PC版：記事一覧 */
section {
	grid-template-columns: repeat(4, 1fr);
	grid-column-gap: 20px;
	column-gap: 20px;
}

/* PC版：記事ページ */
.post {
	grid-template-rows: 
		[head] 100px
		[kiji submenu] auto
		[office] auto
		[foot] 180px;
}

/* PC版：記事ページ：記事：お支払いページ */
.post article {
	grid-column: 2 / span 4;
}

.post article h1, .checkout .pay h1 {
	font-size: 42px;
}

.post article p, .checkout .pay p {
	font-size: 18px;
}

/* PC版：記事ページ：サブメニュー */
.post .sub-menu {
	grid-column: 6 / span 2;
}

/* PC版：記事ページ＆お支払いページ：バー */
.post::before, .checkout::before {
	margin-top: -20px;
}

/* PC版：電話番号クリック不可*/
	a[href^="tel:"]{
	pointer-events: none;
	}

}
/* ===== PC版の設定ここまで ===== */




