@charset "utf-8";

/* 
page-archive.css - サイト固有のクラスで今後変更がないもの
プレフィックス：p-
編集者 人間：編集する（微調整程度）
	   AI ：編集する（cursorエージェントが自由に編集をがりがり進める）
役割：ページ固有スタイル。レスポンシブもこのファイル内で完結。
禁止：c- の上書き（原則禁止）
	 共通化すべきスタイル
	 layout構造の再定義
*/

/* Error page (system) */
html.error-page {
	padding: 10px;
}
body.error-page {
	width: 550px;
	padding: 20px;
	border: 1px solid #666;
}
body.error-page h1 {
	line-height: 1.0;
	margin: 0;
	padding-bottom: 5px;
	border-bottom: 1px solid #999;
}
body.error-page :is(h2, h3, h4, h5, h6) {
	font-size: 120%;
}
body.error-page address {
	padding-top: 10px;
	border-top: 1px solid #999;
}

/* 管理画面の編集リンク */
ul.edit-link li {
	position: fixed;
	bottom: 4px;
	right: 4px;
	list-style: none;
	z-index: 9999;
}
ul.edit-link li img {
	width: 30px;
	height: auto;
}

/* regulation */
#regulation :is(h2, h3, h4, h5, h6) a {
	text-decoration: none;
}
pre {
	height: 0;
	overflow: hidden;
	padding: 0;
	transition: .3s;
}
pre.show {
	height: auto;
	max-height: 90vh;
	overflow: auto;
	padding: 20px;
	white-space: pre;
	line-height: 1.6;
}
pre.show+p img {
	margin-top: 60px;
}

.copy-button {
	background: #ccc;
	color: #333;
	border: none;
	padding: 5px 10px;
	cursor: pointer;
	margin-top: 5px;
	transition: .3s;
}
.copy-button:hover {
	background: #aaa;
}
.copy-button.copied {
	background: #28a745;
	color: #fff;
}
.copied-message {
	display: none;
	font-size: 1.4rem;
	color: #28a745;
	margin-top: 5px;
}
.copied + .copied-message {
	display: inline;
}

.regulation-htmlbut {
	border: none;
	padding: 10px;
	margin-top: 0.3rem;
	transition: .3s;
	background: #ddd;
	cursor: pointer;
}
.regulation-htmlbut:hover {
	background: #eee;
}
.regulation-htmlbut.show {
	background: #111;
	color: #fff;
}
.regulation-htmlbut.show:hover {
	background: #222;
}

/* search result */
main#search article {
	counter-reset: h1;
}
main#search article section h2::before {
	counter-increment: h1;
	content: counter(h1) ". ";
	font-size: 80%;
}

#search p em {
	font-weight: bold;
	font-size: 150%;
	color: #009bde;
}
p.search-jump {
	display: none;
}
.search-btn {
	margin: 15px auto;
	width: 80%;
	max-width: 500px;
	text-align: center;
}
.search-btn input {
	background: #ddd;
	color: #333;
	padding: 1rem 2.4rem;
	font-size: 1.8rem;
	width: 100%;
	border: none;
	display: block;
	text-decoration: none;
	cursor: pointer;
	transition: .5s;
}
.search-btn input:hover {
	opacity: .5;
}

.hidden-box {
	margin: 1.0rem 0;
}
.hidden-box label.search-label {
	padding: 5px;
	text-align: center;
	margin: 0 auto;
	font-weight: bold;
	border-radius: 5px;
	cursor: pointer;
	display: block;
	transition: .5s;
}
.hidden-box label.search-label::before {
	display: inline-block;
	content: '\f078';
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	padding-right: 5px;
	transition: 0.2s;
}
.hidden-box label.search-label:hover {
	background: #eee;
}
.hidden-box input:checked ~ label.search-label:before {
	content: '\f00d';
	-webkit-transform: rotate(360deg);
	transform: rotate(360deg);
}
.hidden-box > input {
	display: none;
}
.hidden-box .hidden-show {
	height: 0;
	padding: 0;
	overflow: hidden;
	opacity: 0;
	transition: 0.5s;
}
.hidden-box input:checked ~ .hidden-show {
	padding: 10px 0;
	height: auto;
	opacity: 1;
}

ul.tags {
	display: flex;
}
ul.tags li {
	text-align: center;
	list-style: none;
	margin-right: 8px;
}
ul.tags li a {
	background: #f0f2f4;
	color: #333;
	border-radius: 5px;
	padding: 2px 8px 4px;
	font-size: 1.4rem;
}
ul.tags li a::before {
	content: "#";
}


/* エリア /area */
.p-area__map{
    position: relative;
    z-index: 1;
}
.p-area__map a {
	text-decoration: none;
}
.p-area__map > ul{
    list-style: none;
}
.p-area__map > ul > li{
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.p-area__map>ul>li>a {
	display: block;
	padding: 8px 5px;
	width: 12rem;
	background: var(--color-area-kanto-bg);
	position: relative;
	transition: color .3s, background .3s;
	flex-shrink: 0;
}
.p-area__map>ul>li>a::after {
	position: absolute;
	content: '';
	border-left: 10px solid var(--color-area-kanto-bg);
	border-bottom: 10px solid transparent;
	border-top: 10px solid transparent;
	top: 50%;
	right: -9px;
	transform: translateY(-50%);
	transition: .3s;
}
.p-area__map>ul>li>ul {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding-left: 10px;
}
.p-area__map>ul>li>ul>li:not(:last-child) {
	margin-right: 10px;
}
.p-area__map>ul>li>ul>li.here>a {
	background: #ccc;
}
.p-area__map>ul>li>ul>li>a{
    display: block;
    border-radius: 4px;
    border: 1px solid var(--color-area-prefecture-border);
    padding: 8px 5px;
    transition: color .3s, background .3s;
    position: relative;
    z-index: 2;
}
.p-area__map>ul>li>ul>li>a:hover {
	background: var(--color-area-prefecture-hover-bg);
	color: var(--color-area-prefecture-hover-txt);
	text-decoration: none;
	opacity: 1;
}

#mapSvg {
    z-index: 1;
}
#mapSvg g path {
    cursor: pointer;
    fill:var(--color-area-jpmap-bg);
    stroke:var(--color-area-jpmap-border);
    stroke-width:1.0;
    stroke-miterlimit:10;
    transition:fill .3s;
}
#mapSvg g.here path{
    fill:#80d0cc;
}
#mapSvg g line {
    fill: #ccc;
    stroke:#ccc;
    stroke-width:2.0;
    stroke-miterlimit:10;
}

.p-area__map--active {
	fill: var(--color-area-prefecture-hover-bg) !important;
	background: var(--color-area-prefecture-hover-bg) !important;
	color: var(--color-area-prefecture-hover-txt) !important;
}

.p-area__map-prefecture ul{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
.p-area__map-prefecture ul > li{
    text-align: center;
    margin-bottom: 1rem;
}
.p-area__map-prefecture ul > li:not(:last-child){
    margin-right: 10px;
}
.p-area__map-prefecture ul > li > a{
    display: block;
    border-radius: 4px;
    border:1px solid #eee;
    padding:8px 5px;
    transition:color .3s, background .3s;
	text-decoration: none;
}
.p-area__map-prefecture ul > li > a:hover{
	background:var(--color-area-prefecture-hover-bg);
    color: #fff;
    opacity: 1;
}

.p-area__cities-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5%;
}
.p-area__cities-container ul {
    width: 19%;
    margin: 0 0.5% 3%;
}
.p-area__cities-container ul li {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}
.p-area__cities-container ul li.here{
	background: var(--color-txtlink);
	color: rgba(255,255,255,0.6);
}
.p-area__cities-container ul li.here::before{
	content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding-right: 3px;
    padding-left: 2px;
    color: #fff;
}
.p-area__cities-container ul li.here a {
    color: #fff;
}
.p-area__cities-container ul li a {
    color: var(--color-txtlink);
    text-decoration: none;
}
.p-area__cities-container ul li strong{
    display: flex;
    align-items: center;
}
.p-area__cities-container ul li strong::before,
.p-area__cities-container ul li strong::after{
    border-top: 1px solid;
    content: "";
    flex-grow: 1;
}
.p-area__cities-container ul li strong::before {
    margin-right: 1rem;
}
.p-area__cities-container ul li strong::after {
    margin-left: 1rem;
}

.p-area__map-chomei{
	display: flex;
	flex-wrap: wrap;
	margin: 0 -0.5%;
	list-style: none;
}
.p-area__map-chomei li{
	width: 15.6666%;
	margin: 0 0.5% 1%;
}
.p-area__map-chomei li::before{
	content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding-right: 3px;
}

/* industry 業種別 */
.p-industry__container a{
    text-decoration: none;
}
.p-industry__container > ul{
    list-style: none;
}
.p-industry__container > ul > li{
	margin-bottom: 4rem;
	text-align: center;
}
.p-industry__container > ul > li > a{
    display: block;
    padding:1rem;
    width: 100%;
    background:#eee;
    position: relative;
    transition: .3s;
    font-size: 2.0rem;
}
.p-industry__container > ul > li > a:hover::after{
    border-top: 10px solid #eee;
}
.p-industry__container > ul > li.here > a{
	font-weight: bold;
	background:#237cd5;
	color:#fff;
}
.p-industry__container > ul > li.here > a::before{
	position: absolute;
    content: '';
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;/*底辺*/
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}
.p-industry__container > ul > li > ul{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin:1rem -1% 0;
}
.p-industry__container > ul > li > ul > li{
    text-align: left;
    margin: 0 1% 1%;
    width: 23%;
}
.p-industry__container > ul > li > ul > li > a{
    display: block;
    padding:8px 5px;
    border:1px solid #ccc;
    position: relative;
}
.p-industry__container > ul > li > ul > li > a:hover{
    text-decoration: none;
}

.p-industry__container > ul > li > ul > li.here > a{
	padding-left: 16px;
	font-weight: bold;
	background:#237cd5;
	color:#fff;
	border: none;
}
.p-industry__container > ul > li > ul > li.here > a::after{
	position: absolute;
    content: '';
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #fff;/*底辺*/
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
}

.p-industry__container > ul > li > ul > li > ul{
	margin:0.2rem 0 1rem;
	list-style: none;
}
.p-industry__container > ul > li > ul > li > ul > li{
	line-height: 1.4;
}
.p-industry__container > ul > li > ul > li > ul > li::before{
	content:"├"
}
.p-industry__container > ul > li > ul > li > ul > li:last-child::before{
	content:"└"
}
.p-industry__container > ul > li > ul > li > ul > li > a{
	font-size: 1.4rem;
}

/* SDGs */
.p-sdgs__about div.img img{
	width: 100%;
	height: auto;	
}
.p-sdgs__declare ul{
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1%;
}
.p-sdgs__declare ul li{
	list-style: none;
	width: 18%;
	margin: 0 1%;
}
.p-sdgs__declare ul li img{
	width: 100%;
	height: auto;
}

@media screen and (max-width: 1279px) {
	.p-area__cities-container ul {
		width: 24%;
	}

	.p-industry__container>ul>li>ul>li {
		width: 31.3333%;
	}
}/* max-width 1279px */

@media screen and (max-width: 1025px) {
	.p-area__cities-container ul {
		width: 32.3333%;
		margin: 0 0.5% 3%;
	}

	pre.show {
		max-height: 80vh;
	}
	p.search-jump {
		display: inherit;
		margin: -2.0rem 0;
	}
	p.search-jump a {
		padding: 5px;
		text-align: center;
		margin: 0 auto;
		font-weight: bold;
		border-radius: 5px;
		cursor: pointer;
		display: block;
		transition: .5s;
	}
	p.search-jump a::before {
		display: inline-block;
		content: '\f078';
		font-family: "Font Awesome 6 Free";
		font-weight: 900;
		padding-right: 5px;
		transition: 0.2s;
	}
	p.search-jump a:hover {
		background: #eee;
	}
}/* max-width 1025px */

@media screen and (max-width: 600px) {
	pre.show {
		white-space: pre-line;
	}
	.regulation-color-container ul li {
		width: 48%;
	}
	.p-area__map>ul>li {
		display: block;
		text-align: center;
	}
	.p-area__map>ul>li>a {
		display: block;
		width: 100%;
	}
	.p-area__map>ul>li>a::after {
		border-top: 10px solid #f0f0f0;
		border-right: 10px solid transparent;
		border-left: 10px solid transparent;
		top: inherit;
		left: 50%;
		right: inherit;
		bottom: -20px;
		transform: translateX(-50%);
	}
	.p-area__map>ul>li>ul {
		padding-left: 0;
	}

	.p-area__cities-container {
		margin: 0 -1%;
	}
	.p-area__cities-container ul {
		width: 48%;
		margin: 0 1% 3%;
	}

	.p-area__map-chomei li {
		width: 31.3333%;
		margin: 0 1% 3%;
	}

	.p-industry__container>ul>li>ul>li {
		width: 48%;
	}

	.p-sdgs-02-container ul li {
		width: 23%;
		margin: 0 1% 3%;
	}

	.p-area__cities-container ul {
		width: 32.3333%;
		margin: 0 0.5% 3%;
	}
}/* max-width 600px */
