/*
Theme Name: SPM Theme
Author: the Takechan
Version: 1.0
*/

/*---------------------
リセット
---------------------*/

*,*::before,*::after {
	box-sizing: border-box
}
* {
	margin: 0
}
body {
	line-height: 1.5;
	-webkit-font-smoothing: antialiased
}
picture,video,canvas,svg {
	display: block;
	max-width: 100%
}
input,button,textarea,select {
	font: inherit
}
p,h1,h2,h3,h4,h5,h6 {
	overflow-wrap: break-word
}
ul,ol {
	padding-inline-start: 0;
}
#root,#__next {
	isolation: isolate
}


/*---------------------
基本設定
---------------------*/

html {
	font-family: 'M PLUS 2', sans-serif;
	font-size: 62.5%; /* ブラウザ標準の16pxを10px相当にする設定。子要素はrem指定することで「1.6rem = 16px」の様になる */
}
body {
	overflow-x: scroll;
	min-width: 340px;
	background-color: rgb(240,240,240);
	color: #000;
	font-family: Lato, sans-serif;
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1.7;
}
a:link,
a:visited {
	color: #000;
}
a:hover {
	color: #e60000;
}
a:active {
	color: #f00;
}
@keyframes fadeIn { /*全てのフェードインに影響*/
    0% {opacity: 0}
    100% {opacity: 1}
}


/*---------------------
ヘッダー
---------------------*/

body > header {
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	padding: 0 20px;
	background: #333;
	color: #fff;
}
body > header a:link,
body > header a:visited {
	color: #fff;
}
body > header h1 {
	color: #fff;
	font-size: 140%;
	font-weight: bold;
}
body > header span {
	margin-left: 20px;
	color: #aaa;
}

/* ヘッダースイッチ */
input.display_filter_per50,
input.display_full_all,
input.display_per100,
input.display_per0 {
	display: none;
}
label.display_filter_per50,
label.display_full_all,
label.display_per100,
label.display_per0 {
	position: fixed;
	top: 15px;
	z-index: 20;
	display: inline-block;
	font-weight: bold;
	font-size: 14px;
	line-height: 30px;
	cursor: pointer;
}

label.display_filter_per50::before,
label.display_full_all::before,
label.display_per100::before,
label.display_per0::before {
	padding: 4px 8px;
	border-radius: 6px 0 0 6px;
	background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2) inset;
	color: #888;
}
input.display_filter_per50 + label:hover::before,
input.display_full_all + label:hover::before,
input.display_per100 + label:hover::before,
input.display_per0 + label:hover::before {
	color: #444;
}
input.display_filter_per50:checked + label::before,
input.display_full_all:checked + label::before,
input.display_per100:checked + label::before,
input.display_per0:checked + label::before {
	content: '';
	background: #C30;
	color: #FFF;
	opacity: 1;
}

label.display_filter_per50::after,
label.display_full_all::after,
label.display_per100::after,
label.display_per0::after {
	content: '';
	padding: 4px 8px;
	border-radius: 0 6px 6px 0;
	background: #9C0;
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2) inset;
	color: #FFF;
}
input.display_filter_per50:checked + label::after,
input.display_full_all:checked + label::after,
input.display_per100:checked + label::after,
input.display_per0:checked + label::after {
	background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
	color: #000;
}

/* 50%以上のみ表示スイッチ */
label.display_filter_per50 {
	right: 396px;
}
label.display_filter_per50::before,
input.display_filter_per50:checked + label::after{
	content: '50%以上のみ表示';
}
input.display_filter_per50:checked ~ #primary > div.per0,
input.display_filter_per50:checked ~ #primary > div.per10,
input.display_filter_per50:checked ~ #primary > div.per30,
input.display_filter_per50:checked ~ label.display_per0 {
	display: none;
}
/* 全件フル表示スイッチ */
label.display_full_all {
	right: 270px;
}
label.display_full_all::before,
input.display_full_all:checked + label::after{
	content: '全件フル表示';
}
/* 成約済みも表示スイッチ */
label.display_per100 {
	right: 130px;
}
label.display_per100::before,
input.display_per100:checked + label::after{
	content: '成約済みも表示';
}
#primary > div.per100 {
	display: none;
}
input.display_per100:checked ~ #primary > div.per100 {
	display: block;
}
/* 0%も表示スイッチ */
label.display_per0 {
	right: 20px;
}
label.display_per0::before,
input.display_per0:checked + label::after{
	content: '0%も表示';
}
#primary > div.per0 {
	display: none;
}
input.display_per0:checked ~ #primary > div.per0 {
	display: block;
}


/*---------------------
プライマリー
---------------------*/
/* 大枠 */
#primary {
	float: left;
	padding: 80px 0 20px 20px;
}
#primary > div {
	position: relative;
	float: left;
	margin-right: 20px;
	margin-bottom: 20px;
	width: 416px;
	height: 430px;
	animation: fadeIn 1s ease 0s 1 normal;
}
#primary > div > section {
	float: left;
	padding: 10px 10px 0;
	width: 416px;
	background: rgb(250,250,250);
	border-radius: 5px;
	box-shadow: 0 1px 8px rgba(0,0,0,0.08);
}
#primary > div:hover,
#primary > div:active {
	z-index: 1;
}
section > section {
	overflow: hidden;
	background: white;
	border-radius: 5px;
	margin-bottom: 10px;
}
section.possibility {
	float: left;
	width: 195px;
	background: none;
}
label.display_full {
	float: right;
}
section.utility {
	float: right;
	background: none;
}
section.customer {
	clear: both;
	float: left;
	width: 195px;
}
section.consider {
	float: right;
	width: 195px;
}
section.possession {
	clear: right;
	float: right;
	width: 195px;
}
section.nextaction {
	float: left;
	width: 400px;
}
section.note {
	float: left;
	width: 400px;
}
section.process {
	float: left;
	width: 400px;
	background: none;
}
section > div.title {
	background: #777;
	color: #fff;
	text-align: center;
	font-size: 90%;
	font-weight: bold;
}

dl {
	float: left;
}
dt {
	float: left;
	padding: 2px 3px;
	background: #999;
	border-bottom-right-radius: 4px;
	color: #fff;
	text-align: center;
	font-size: 80%;
	line-height: 100%;
}
dd {
	float: left;
	padding: 2px 5px;
}
section.customer dd,
section.consider dd,
section.possession dd {
	max-width: 185px;
}
dl.more,
section.more {
	display: none;
}
.icon {
	vertical-align: middle;
}
section.process .icon {
	margin: 0 5px;
}
section.process div:nth-of-type(n+4) {
	display: none;
}
#primary > div > section:hover dl.more,
#primary > div > section:active dl.more,
input.display_full:checked ~ section dl.more,
input.display_full_all:checked ~ div dl.more,
#primary > div > section:hover section.more,
#primary > div > section:active section.more,
input.display_full:checked ~ section.more,
input.display_full_all:checked ~ div section.more,
#primary > div > section:hover section.process div:nth-of-type(n+4),
#primary > div > section:active section.process div:nth-of-type(n+4),
input.display_full:checked ~ section.process div:nth-of-type(n+4),
input.display_full_all:checked ~ div section.process div:nth-of-type(n+4) {
	display: block;
    animation: fadeIn 1s ease 0s 1 normal;
}
input.display_full_all:checked ~ #primary > div {
	height: 600px !important;
}

/* メイン担当者 */
.mainstaff {
	position: absolute;
	top: -7px;
	left: 10px;
	width: 50px;
	height: 7px;
	border-top-left-radius: 3px;
	border-top-right-radius: 3px;
}
.mainstaff_kawanamia {
	background: #ff3333;
}
.mainstaff_kawanamik {
	background: #ff66d1;
}
.mainstaff_yoshimura {
	background: #3377ff;
}
.mainstaff_takeda {
	background: #ff9333;
}

/* 成約見込み */
section.possibility div {
	float: left;
	width: 65px;
	height: 30px;
	background: #999;
	border-top-left-radius: 4px;
	border-bottom-left-radius: 4px;
	color: #fff;
	text-align: center;
	font-size: 90%;
	font-weight: bold;
	line-height: 30px
}
section.possibility table {
	float: left;
	width: 130px;
	height: 30px;
	background: #ccc;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
}
section.possibility td {
	background: #ddd;
}
section.possibility td:last-of-type {
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
}
section.possibility table.per10 td:nth-of-type(-n+1) {
	background: #ffbc99;
}
section.possibility table.per30 td:nth-of-type(-n+3) {
	background: #ffbf7f;
}
section.possibility table.per50 td:nth-of-type(-n+5) {
	background: #ff9966;
}
section.possibility table.per70 td:nth-of-type(-n+7) {
	background: #ff6b4c;
}
section.possibility table.per90 td:nth-of-type(-n+9) {
	background: #ff3333;
}
section.possibility table.per100 td {
	background: #ff0;
}

/* フル表示スイッチ */
input.display_full {
	display: none;
}
label.display_full {
	display: inline-block;
	margin-left: 3px;
	font-weight: bold;
	font-size: 14px;
	line-height: 30px;
	cursor: pointer;
}

label.display_full::before {
	padding: 4px 8px;
	content: 'フル表示';
	border-radius: 6px 0 0 6px;
	background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2) inset;
	color: #888;
}
input.display_full + label:hover::before {
	color: #444;
}
input.display_full:checked + label::before {
	content: '';
	background: #C30;
	color: #FFF;
	opacity: 1;
}

label.display_full::after {
	content: '';
	padding: 4px 8px;
	border-radius: 0 6px 6px 0;
	background: #9C0;
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2) inset;
	color: #FFF;
}
input.display_full:checked + label::after {
	content: 'フル表示';
	background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
	color: #000;
}

/* ユーティリティー */
section.utility div {
	float: right;
	margin-left: 3px;
	padding: 0 8px;
	border-radius: 6px;
	background: linear-gradient(to bottom, #F0F0F0 0%, #DDD 100%);
	box-shadow: 0px 0px 3px 0px rgba(0,0,0,0.2) inset;
	color: #000;
	font-weight: bold;
	line-height: 30px;
}
section.utility a:last-of-type div {
	margin: 0;
}


/* 顧客情報 */

/* dlとddを縦に並べる */
section.customer dl:nth-of-type(1) dd,
section.customer dl:nth-of-type(2) dd,
section.customer dl:nth-of-type(7) dd {
	clear: left;
}
section.customer dl:nth-of-type(1) {
	margin-right: 2px;
}
/* クリア */
section.customer dl:nth-of-type(3),
section.customer dl:nth-of-type(4),
section.customer dl:nth-of-type(5),
section.customer dl:nth-of-type(7),
section.customer dl:nth-of-type(8),
section.customer dl:nth-of-type(10) {
	clear: left;
}
/* 顧客名 */
section.customer dl:nth-of-type(2) span:nth-of-type(2) {
	font-size: 110%;
	font-weight: bold;
}
section.customer dl:nth-of-type(2) span:nth-of-type(3) {
	font-size: 80%;
}
/* よみがな、〒 */
section.customer dl:nth-of-type(2) span:nth-of-type(1),
section.customer dl:nth-of-type(7) span:nth-of-type(1) {
	position: absolute;
	top: 1px;
	left: 35px;
	width: 120px;
	font-size: 75%;
	word-break: keep-all;
}
section.customer dl:nth-of-type(2),
section.customer dl:nth-of-type(7) {
	position: relative;
}
/* メール */
section.customer dl:nth-of-type(5) dd {
	word-wrap: break-word;
}
/* 住所 */
section.customer dl:nth-of-type(7) span:nth-of-type(2) {
	font-size: 90%;
}



/* 検討車両 */

/* dlとddを縦に並べる */
section.consider dl:nth-of-type(2) dd,
section.consider dl:nth-of-type(3) dd,
section.consider dl:nth-of-type(4) dd,
section.consider dl:nth-of-type(5) dd,
section.consider dl:nth-of-type(6) dd,
section.consider dl:nth-of-type(7) dd,
section.consider dl:nth-of-type(8) dd {
	clear: left;
}
section.consider dl:nth-of-type(2),
section.consider dl:nth-of-type(3),
section.consider dl:nth-of-type(4),
section.consider dl:nth-of-type(5),
section.consider dl:nth-of-type(7) {
	margin-right: 2px;
}
/* クリア */
section.consider dl:nth-of-type(2),
section.consider dl:nth-of-type(7) {
	clear: left;
}
/* 車両名 */
section.consider dl:nth-of-type(1) span {
	font-size: 110%;
	font-weight: bold;
	word-wrap: break-word;
}
div.per100 section.consider dl:nth-of-type(7),
div.per100 section.consider dl:nth-of-type(8){
	display: none;
}



/* 現在車両 */

/* dlとddを縦に並べる */
section.possession dl:nth-of-type(2) dd,
section.possession dl:nth-of-type(3) dd {
	clear: left;
}
section.possession dl:nth-of-type(2) {
	margin-right: 2px;
}
/* クリア */
section.possession dl:nth-of-type(2) {
	clear: left;
}


/* 次回アクション */
section.nextaction div.title {
	background: #ff7f7f;
}
section.nextaction div:nth-of-type(2) {
	padding: 2px 5px;
}
section.nextaction .undecided {
	color: #f00;
	font-weight: bold;
}
div.per100 section.nextaction {
	display: none;
}

/* プロセス */
section.process div.title ~ div {
	margin: 1px 0;
	padding: 0 5px;
	background: #fff;
}
section.process .kawanamia {
	border-left: 5px solid #ff3333;
}
section.process .kawanamik {
	border-left: 5px solid #ff66d1;
}
section.process .yoshimura {
	border-left: 5px solid #3377ff;
}
section.process .takeda {
	border-left: 5px solid #ff9333;
}
section.process span {
	color: #555;
	font-style: italic;
	font-weight: bold;
}x


/* 本文 */




small {
	font-size: 70%;
}
em {
	font-weight: bold;
}
em.attention {
	color: #f00;
}
strong {
	background: url("/wp-content/themes/atsu-theme/images/strong_bg.png") bottom left repeat-x;
	font-weight: bold;
}
#content table,
#content th,
#content td {
	border: 1px solid #ccc;
	border-collapse: collapse;
	text-shadow: none;
}
#content table {
	width: 100%;
}
#content th,
#content td {
	padding: 2px 5px;
	vertical-align: middle;
}
#content table th {
	background: #666;
	color: #fff;
	text-align: right;
	white-space: nowrap; /* 最小幅にしつつ改行させないため */
}
#content td {
	width: 100%; /* thを最小幅にするため */
	background: #fff;
	text-align: left;
}
#content thead th {
	background: #444;
	text-align: center;
}
#content th a:link,
#content th a:visited { /* th内のリンクの文字色 */
	color: #fff;
}
#content tr:nth-child(even) td {
	background: rgb(248,248,248);
}



/*---------------------
セカンダリー
---------------------*/



/*---------------------
フッター
---------------------*/



/*---------------------
管理
---------------------*/
.edit-link {
	display: none !important;
	position: absolute;
	top: 0;
	right: 30px;
	padding: 5px;
	background: #ff0;
}

/* レスポンシブ */
@media screen and ( max-width:999px ) {

}