@charset "UTF-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
	font-size: 62.5%;
}

body {
	font-family: 'Noto Sans JP', sans-serif;
	font-size: 1.4rem;
	line-height: 2;
	color: #000;
	padding-bottom: 2rem;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	transition: .3s;
}


/* --------------------------------------------------

	layout

-------------------------------------------------- */

.container {
	display: flex;
	flex-direction: row-reverse;
	padding: 0 2rem;
}

.primary-content {
	padding: 0 2rem;
}

.page-top .primary-content { width: calc( 100% - 280px );}
.page-detail .primary-content { width: 100%;}

.secondary-content {
	width: 280px;
	padding: 0 2rem;
}

@media screen and (max-width: 767px) {
	
	.container {
		flex-direction: column-reverse;
	}
	
	.page-top .primary-content { width: 100%;}

	.secondary-content {
		width: 100%;
		margin-bottom: 4rem;
	}
	
}


/* --------------------------------------------------

	badge

-------------------------------------------------- */

.badge {
	display: inline-block;
	padding: 8px 12px;
	background-color: #e8e8e8;
	border-radius: 16px;
	line-height: 1;
	white-space: nowrap;
}
.badge[title="カラー変更"]{
  background-color: #F39C12;
  color: #fff;
  margin-right: 8px;
}

/* --------------------------------------------------

	HEADER

-------------------------------------------------- */

.siteblock-header {
	margin-bottom: 4rem;
	background-color: #000;
	color: #fff;
}

.page-detail .siteblock-header {
	margin-bottom: 0;
}

.logo {
	padding: 2rem;
	font-size: 2rem;
	font-weight: 700;
}

.logo__text > :last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 767px) {
	
	.siteblock-header {
		margin-bottom: 2rem;
	}
	
	.logo {
		font-size: 1.6rem;
		text-align: left;
	}
	
}


/* --------------------------------------------------

	FOOTER

-------------------------------------------------- */

.copyright {
	padding: .5rem 0;
	font-size: 1.2rem;
	color: #8e8e8e;
	text-align: center;
}

#cmsMobileButton {
	display: none;
}
.siteblock-footer {
    min-height: 2rem;
}

@media screen and (max-width: 767px) {
	
	.siteblock-footer {
		margin-top: 4rem;
	}
	
	.copyright {
		font-size: 1rem;
	}
	
}

.btn-pagetop {
	position: fixed;
	right: 10px;
    bottom: 10px;
	z-index: 2;
	display: none;
}

.btn-pagetop a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 80px;
	height: 80px;
	background-color: #000;
	border-radius: 5px;
	color: #fff;
	font-size: 1.2rem;
	line-height: 1.4;
	text-align: center;
	text-transform: uppercase; 
	text-decoration: none;
	transition: all 0.3s;
}

.btn-pagetop a:hover{
	background: #777;
}


/* --------------------------------------------------

	SIDE

-------------------------------------------------- */

.siteblock-side {
}

.btn-refine {
	display: none;
}

.siteblock-side__sub .search-box-wrap {
	padding-top: 40px;
	border-top: 1px solid #e8e8e8;
}

@media screen and (min-width: 480px) {
	
	.search-box-wrap {
		display: block !important;
	}
	
}

@media screen and (max-width: 479px) {
	
	.btn-refine {
		display: flex;
		align-items: center;
		justify-content: flex-end;
	}
	
	.search-box-wrap {
		display: none;
		margin-bottom: 2rem;
	}
	
}


.search-box {
	margin-bottom: 40px;
}

.search-box__title {
	margin: 0;
	padding: 0;
	font-size: 1.6rem;
	font-weight: 700;
}

.search-nav {
	margin: 0;
	padding: 0;
	list-style-image: none;
}

.search-nav li {
	margin: 0;
	padding: 0;
}

@media screen and (max-width: 479px) {
	
	.search-box__title {
		margin: 0 0 1rem;
	}
	
	.search-nav {
		display: flex;
		flex-wrap: wrap;
		margin: 0 -1rem -0.5rem;
	}
	
	.search-nav li {
		margin: 0 0 0.5rem;
		padding: 0 1rem;
	}
	
}

.ranking-nav {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: li;
}

.ranking-nav li {
	position: relative;
	margin: 8px 0;
	padding: 0 0 0 34px;
}

.ranking-nav > li:before {
	position: absolute;
	counter-increment: li;
	content: counter(li) "";
	left: 0;
	top: 0;
	width: 24px;
	height: 24px;
	background-color: #000;
	color: #fff;
	font-size: 14px;
	text-align: center;
	border-radius: 2px;
	line-height: 24px;
	font-weight: bold;
}


/* --------------------------------------------------

	MODULE:blog_search

-------------------------------------------------- */

.blog-search {
	margin: 0 0 2rem;
}

.blog-search-text {
	width: 100%;
	padding: 8px;
	background-color: #e8e8e8;
	border-radius: 4px;
	line-height: 1;
	font-size: 1.4rem;
	outline: none;
}


/* --------------------------------------------------

	MODULE:blog-entry

-------------------------------------------------- */

.preview-wrap {
	width: 100%;
}

.preview-wrap .logo__text {
	font-size: 1.875rem;
	font-weight: 700;
	padding: 1rem 0 0;
}

.blog-individual-wrap {
    border: 1px solid #dedede;
	height: calc(100vh - 68px);
	width: 100%;
	background-color: #d7d7d7;
	overflow: hidden;
}

.preview-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	padding: 0 0 1rem;
	background-color: #fff;
	border-bottom: 1px solid #e8e8e8;
}

.preview-head__title {
	display: flex;
	align-items: center;
	flex: 1;
}

.preview-head__title-wrap {
	margin: 0 1rem 0 0;
}

.preview-head__title-name {
	margin: 0;
	font-size: 1.675rem;
	line-height: 1;
	font-weight: 700;
}

.preview-head__template-name {
	margin: 0 1rem 0 0;
	color: #8e8e8e;
}

@media screen and (max-width: 479px) {

	.preview-head__title-name {
		font-size: 1.4rem;
	}

}


.preview-head__title-cat {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 1.5rem;
	flex-direction: row-reverse;
}

.preview-head__title-cat li {
	padding: 0 0.2rem;
}

.btn-preview {
	display: flex;
	justify-content: center;
	align-content: center;
	margin: 0 -1rem 0 2rem;
	padding: 0;
	list-style: none;
}

.btn-preview li {
	padding: 0 1rem;
}

.btn-preview a {
	display: flex;
	align-items: center;
	padding: .6rem 2rem;
	background-color: #e8e8e8;
	border-radius: .4rem;
	font-weight: 700;
	line-height: 1;
}

.btn-preview a.is-active,
.btn-preview a:hover {
	background-color: #000;
	color: #fff;
}

.btn-preview a span {
	margin-right: .4rem;
}

.preview-head__btn {
	display: flex;
	justify-content: flex-end;
	flex: 1;
}

.preview-head__btn a {
	display: flex;
	align-items: center;
	color: #000;
}

.preview-head__btn a:hover {
	color: #666;
}

@media screen and (max-width: 479px) {

	.preview-head {
		padding: 2rem 0;
		border-bottom: none;
	}

	.preview-head__title {
		flex-direction: column;
		align-items: flex-start;
	}

	.btn-preview {
		display: none;
	}

}


.blog-individual {
	position: relative;
	max-width: 100%;
	height: 100%;
	margin: 0 auto;
	transition : all 0.5s ease 0s;
}

.blog-individual.preview-sp {
	width: 520px;
}

.blog-individual.preview-pc {
	width: 100%;
}

.blog-individual iframe {
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
}
.blog-individual.preview-sp iframe {
    box-shadow: 0px 0px 16px -6px rgba(0,0,0,.8);
}


/* --------------------------------------------------

	MODULE:blog-entry

-------------------------------------------------- */

.is-hide {
	display: none;
}


.template-list {}
.template-list-row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -1.5rem -4rem;
}

.template-list-col {
	width: 20%;
	margin: 0 0 4rem;
	padding: 0 1.5rem;
}

@media screen and (max-width: 1800px) {
	
	.template-list-col {
		width: 25%;
	}
	
}

@media screen and (max-width: 1280px) {
	
	.template-list-col {
		width: 33.33333333%;
	}
	
}

@media screen and (max-width: 980px) {
	
	.template-list-col {
		width: 50%;
	}
	
}

@media screen and (max-width: 479px) {
	
	.template-list-col {
		width: 100%;
	}
	
}


.template-list-box {
	display: block;
}

.template-list-box__photo {
	overflow: hidden;
	margin-bottom: 1rem;
	background-color: #f1f1f1;
	border-radius: 8px;
}

.template-list-box .template-list-box__photo img {
	display: block;
	max-width: 100%;
	height: auto;
	transition: 0.3s;
}

.template-list-box:hover .template-list-box__photo img {
	transform: scale(1.4);
}

.template-list-box__title {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
}

.template-list-box__name {
	font-size: 1.2rem;
	color: #8e8e8e;
}

.template-cat {
	display: flex;
	flex-wrap: wrap;
	margin: 1rem -2px 0;
	padding: 0;
	list-style: none;
	font-size: 1.2rem;
}

.template-cat li {
	padding: 2px;
}




/* --------------------------------------------------

	2026年改良時追加分

-------------------------------------------------- */

/* =========================================================
   Category List（3階層ナビ：開閉／選択／アニメーション）
   ========================================================= */
.category-list{
  padding-bottom: 40px;
}
.category-list > ul {
    margin-left: -8px;
}
.category-list > ul > li {
    padding-right: 16px;
}

/* 機能カテゴリー非表示 */
.category-list > ul > li:last-child {
    display: none;
}

/* 2階層目の li を基準にする */
.category-list > ul > li > ul > li{
  margin-right: -16px;
  padding-right: 16px;
  position: relative;
}

/* 3階層目（ul ul ul）＝右にフライアウト */
.category-list > ul > li > ul > li > ul{
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 50;

  /* 見た目（お好みで） */
  min-width: 220px;
  padding: 8px;
  margin: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);

  /* 閉じ状態（アニメーション） */
  opacity: 0;
  transform: translateX(-6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}
.category-list > ul > li > ul > li.has-children::after{
  content:"";
  position:absolute;
  top: 0;
  right: -16px;     /* 子ULが右に出る方向へ伸ばす */
  width: 16px;      /* ブリッジの厚み */
  height: 100%;
}

/* 開いた状態（あなたのJSが付ける is-open を利用） */
.category-list > ul > li > ul > li.is-open > ul{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* 3階層目の中身の整形（任意） */
.category-list > ul > li > ul > li > ul > li{
  margin: 0;
  white-space: nowrap;
}

/* リンク */
.category-list a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px;
  width: 100%;
}
.category-list a:hover {
    background-color: #efefef;
}
.category-list a.category-list--select{
    background-color: #efefef;
    font-weight: 700;
}

/* hover（任意） */
.category-list ul ul > li > a{
  transition: background-color 150ms ease;
}
.category-list ul ul > li > a.is-hovering{
  background-color: rgba(0, 0, 0, 0.04);
}

/* 矢印 */
.category-list--arrow {
  position: relative;
  display: inline-block;
  width: 5.9px;
  height: 10.9px;
  margin-left: 8px;
}

.category-list > ul > li > ul > li > ul .category-list--arrow {
    display: none;
}

.category-list--arrow::before,
.category-list--arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 6px;
  height: 2px;
  border-radius: 9999px;
  background-color: #999;
  transform-origin: calc(100% - 0.5px) 50%;
}
.category-list--arrow::before {
  transform: rotate(45deg);
}
.category-list--arrow::after {
  transform: rotate(-45deg);
}

.category-list a:hover .category-list--arrow::before,
.category-list a.category-list--select .category-list--arrow::before,
.category-list a:hover .category-list--arrow::after,
.category-list a.category-list--select .category-list--arrow::after{
  background-color: #000;
}


/* =========================================================
   iframe Loading Overlay
   ========================================================= */
.blog-individual{
  position: relative;
}
.blog-individual iframe{
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-loading{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spinner{
  width: 32px;
  height: 32px;
  border: 3px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}


/* =========================================================
   Typography（追加分）
   ========================================================= */
h1{
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}


/* =========================================================
   Page Fade-in only（表示時のみ）
   ========================================================= */
/* 初期は表示（フェールセーフ） */
html.is-page-fade body{ opacity: 0; }
html.is-page-fade body.is-fade-ready{
  opacity: 1;
  transition: opacity 320ms ease;
}
body{ opacity: 1; }

/* フェードを有効にする時だけ 0→1 をやる */
html.is-page-fade body{
  opacity: 0;
}

html.is-page-fade body.is-fade-ready{
  opacity: 1;
  transition: opacity 2400ms ease; /* ← ここを変えると必ず体感変わる */
}
