/*
Theme Name: GYRO Factory
Theme URI: https://www.gyro-factory.jp/
Description: GYRO Factory ジャイロファクトリー ケイエムオート 専用テーマ（旧テーマの外観を独自コードで再構築）
Author: JC Service
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: gyrofactory
*/

/* ==========================================================
   Base
   ========================================================== */
:root {
	--gf-primary: #2305ba;
	--gf-hover: #999999;
	--gf-border: #dddddd;
	--gf-gray: #f7f7f7;
	--gf-font: Arial, "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
	--gf-adminbar: 0px;
}
.admin-bar { --gf-adminbar: 32px; }
@media screen and (max-width: 782px) { .admin-bar { --gf-adminbar: 46px; } }
@media screen and (max-width: 600px) { .admin-bar { --gf-adminbar: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	position: relative;
	font-family: var(--gf-font);
	font-size: 14px;
	line-height: 1;
	color: #000;
	background: #fff;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
h1 { font-size: 24px; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; border: 0; }
a { color: inherit; text-decoration: none; transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
a:hover { color: var(--gf-hover); }
button { font-family: inherit; }
input, textarea, select { font-family: var(--gf-font); font-size: inherit; }
table { border-collapse: collapse; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.l-inner { position: relative; width: 88.8889%; max-width: 1200px; margin-left: auto; margin-right: auto; }

.u-visible-sm, .u-visible-md { display: none !important; }
@media screen and (max-width: 991px) {
	.u-hidden-md { display: none !important; }
	.u-visible-md { display: block !important; }
}
@media screen and (max-width: 767px) {
	.u-hidden-sm { display: none !important; }
	.u-visible-sm { display: block !important; }
	span.u-visible-sm { display: inline !important; }
}
@media screen and (max-width: 575px) { .u-hidden-xs { display: none !important; } }

/* icons (CSS only) */
.p-button span::after,
.p-breadcrumb__item + .p-breadcrumb__item::before,
.p-pagetop a::before,
.p-entry__nav-item a::before {
	content: "";
	display: inline-block;
	width: 7px; height: 7px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* ==========================================================
   Header
   ========================================================== */
.l-header { position: relative; z-index: 999; background: rgba(255, 255, 255, .8); }
.p-header__top { border-bottom: 1px solid var(--gf-border); }
.p-header__top__inner { display: flex; justify-content: space-between; }
.p-header-description { padding: 15px 0; line-height: 28px; }
.l-header__bar { position: relative; z-index: 998; border-bottom: 1px solid var(--gf-border); background: rgba(255, 255, 255, .8); }
.l-header__bar__inner { display: flex; justify-content: space-between; align-items: center; height: 100px; }
.p-logo { flex: 0 0 auto; margin-right: 30px; line-height: 0; }
.p-logo a { display: inline-block; }
.p-logo__sp { display: none; }
.p-menu-button { display: none; }

.p-global-nav { display: flex; border-left: 1px solid var(--gf-border); }
.p-global-nav > li { position: relative; line-height: 28px; }
.p-global-nav > li > a {
	position: relative;
	display: flex; justify-content: center; align-items: center;
	height: 101px; margin-bottom: -1px;
	padding: 0 20px;
	border-right: 1px solid var(--gf-border);
	text-align: center;
	overflow: hidden;
}
.p-global-nav > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: 0; background: #000;
	transition: height .2s;
}
.p-global-nav > li > a:hover { color: #000; }
.p-global-nav > li > a:hover::after,
.p-global-nav > li.current-menu-item > a::after { height: 5px; }
.p-global-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px;
	background: var(--gf-gray); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
}
.p-global-nav li:hover > .sub-menu { visibility: visible; opacity: 1; }
.p-global-nav .sub-menu a { display: block; padding: 15px 20px; line-height: 1.4; }
.p-global-nav .sub-menu a:hover { background: #006689; color: #fff; }

.l-header.is-header-fixed .l-header__bar {
	position: fixed; top: var(--gf-adminbar); left: 0; width: 100%;
	animation: gfHeaderIn .3s ease;
}
@keyframes gfHeaderIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }

@media screen and (max-width: 991px) {
	.l-header__bar__inner { height: 59px; }
	.p-logo { margin-right: 0; }
	.p-logo__pc { display: none; }
	.p-logo__sp { display: inline-block; width: 100px; height: auto; }
	.p-menu-button {
		display: block; position: absolute; top: 0; right: 0;
		width: 69px; height: 59px; padding: 0; margin: 0;
		border: 0; border-left: 1px solid var(--gf-border); background: transparent; cursor: pointer;
	}
	.p-menu-button span,
	.p-menu-button span::before,
	.p-menu-button span::after {
		position: absolute; left: 50%; width: 16px; height: 2px; margin-left: -8px; background: #000; transition: transform .2s, opacity .2s;
	}
	.p-menu-button span { top: 50%; margin-top: -1px; }
	.p-menu-button span::before, .p-menu-button span::after { content: ""; left: 0; margin-left: 0; }
	.p-menu-button span::before { top: -5px; }
	.p-menu-button span::after { top: 5px; }
	.p-menu-button.is-active span { background: transparent; }
	.p-menu-button.is-active span::before { transform: translateY(5px) rotate(45deg); background: #000; }
	.p-menu-button.is-active span::after { transform: translateY(-5px) rotate(-45deg); background: #000; }
	.p-global-nav__container { position: static; }
	.p-global-nav {
		display: none;
		position: absolute; top: 59px; left: 0; z-index: 1000;
		width: 100%;
		max-height: calc(100vh - 59px); overflow-y: auto;
		border: 0; background: rgba(247, 247, 247, .8);
	}
	.l-header__bar__inner { position: static; }
	.l-header__bar { position: relative; }
	.p-global-nav.is-open { display: block; }
	.p-global-nav > li { line-height: 1.4; }
	.p-global-nav > li > a { display: block; height: auto; margin: 0; padding: 13px 41px 13px 22px; border: 0; text-align: left; }
	.p-global-nav > li > a::after { display: none; }
	.p-global-nav a:hover { background: rgba(0, 102, 137, .8); color: #fff; }
	.p-global-nav .sub-menu { position: static; visibility: visible; opacity: 1; background: transparent; }
	.p-global-nav .sub-menu a { padding: 13px 41px 13px 40px; }
	.p-header__bottom { border-bottom: 1px solid var(--gf-border); }
	body:not(.home) .p-header__bottom { display: none !important; }
	.p-header__bottom .p-header-description { padding: 8px 0; font-size: 12px; line-height: 1.8; }
}

/* ==========================================================
   Page header / breadcrumb
   ========================================================== */
.p-page-header { background: var(--gf-gray); border-bottom: 1px solid var(--gf-border); }
.p-page-header__inner { display: flex; align-items: center; min-height: 100px; padding: 30px 0; }
.p-page-header__title { flex: 0 0 auto; max-width: 50%; font-size: 32px; line-height: 1.2; color: var(--gf-primary); }
.p-page-header__desc { margin-left: 30px; line-height: 2.2; }
.p-breadcrumb { margin-bottom: 60px; border-bottom: 1px solid var(--gf-border); }
.p-breadcrumb__inner { padding: 14px 0; line-height: 1.7; }
.p-breadcrumb__item { display: inline; }
.p-breadcrumb__item + .p-breadcrumb__item::before {
	width: 5px; height: 5px; border-width: 1px; margin: 0 8px 2px 4px; vertical-align: middle;
}
.p-breadcrumb__item--home a {
	display: inline-block; width: 14px; height: 14px; vertical-align: -1px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 0 8h2v7h4.5v-4.5h3V15H14V8h2z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1 0 8h2v7h4.5v-4.5h3V15H14V8h2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.p-breadcrumb__item--home a:hover { background: var(--gf-hover); }

@media screen and (max-width: 767px) {
	.p-page-header__inner { display: block; min-height: 0; padding: 7px 0; }
	.p-page-header__title { max-width: 100%; font-size: 20px; line-height: 36px; }
	.p-page-header__desc { margin: 0 0 5px; font-size: 12px; line-height: 1.8; }
	.p-breadcrumb { margin-bottom: 28px; }
	.p-breadcrumb__inner { padding: 0; font-size: 12px; line-height: 40px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.p-breadcrumb__item--home a { width: 12px; height: 12px; }
}

/* 404 */
.p-page-header-image { position: relative; background-size: cover; background-position: 50% 50%; }
.p-page-header-image__overlay { display: flex; align-items: center; min-height: 740px; background: rgba(0, 0, 0, .2); }
.p-page-header-image__inner { padding: 30px 0; text-align: center; color: #fff; }
.p-page-header-image__title { font-size: 30px; line-height: 1.2; }
.p-page-header-image__desc { margin-top: 7px; line-height: 2; }
@media screen and (max-width: 767px) { .p-page-header-image__overlay { min-height: 400px; } .p-page-header-image__title { font-size: 22px; } }

/* ==========================================================
   Buttons / hover
   ========================================================== */
.p-button {
	display: inline-block; min-width: 180px; padding: 0 20px;
	line-height: 50px; text-align: center; color: #fff !important;
	background: var(--gf-primary); overflow: hidden;
}
.p-button:hover { background: var(--gf-hover); }
.p-button span::after { width: 6px; height: 6px; margin: 0 -4px 1px 10px; border-width: 1.5px; vertical-align: middle; }
@media screen and (max-width: 767px) { .p-button { min-width: 160px; line-height: 45px; } }

.p-hover { display: block; }
.p-hover__image { position: relative; overflow: hidden; }
.p-hover__image img { transition: transform .75s, opacity .75s; }
.p-hover:hover .p-hover__image img,
.gf-box:hover img,
.gf-banner--link:hover img { transform: scale(1.2) rotate(2deg); }

/* ==========================================================
   Front page
   ========================================================== */
/* slider */
.p-index-slider { position: relative; overflow: hidden; }
.p-index-slider__track { display: flex; transition: transform 1s ease; will-change: transform; }
.p-index-slider__item { flex: 0 0 100%; min-width: 100%; }
.p-index-slider__item img { display: block; width: 100%; height: auto; }
.p-index-slider__item a { display: block; }
.p-index-slider__dots { position: absolute; left: 0; right: 0; bottom: 21px; margin: 0 auto; text-align: right; line-height: 0; }
.p-index-slider__dots ul { display: inline-flex; }
.p-index-slider__dots li { margin-left: 10px; }
.p-index-slider__dots button {
	display: block; width: 15px; height: 15px; padding: 0;
	border: 1px solid var(--gf-border); border-radius: 50%; background: #fff; cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.p-index-slider__dots button:hover { background: var(--gf-hover); border-color: var(--gf-hover); }
.p-index-slider__dots button.is-active { background: var(--gf-primary); border-color: var(--gf-primary); }

/* content builder sections */
.gf-cb { position: relative; width: 88.8889%; max-width: 1200px; margin: 0 auto 80px; }
.l-main--front > .gf-cb:first-child,
.p-index-slider + .gf-cb { margin-top: 80px; }
.gf-cb.has-bg { padding: 80px 0; }
.gf-cb.has-bg::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1;
	width: 100vw; margin-left: -50vw; background: var(--gf-gray);
}
.l-main--front { position: relative; z-index: 0; }
.gf-bg-f7::before { background: #f7f7f7 !important; }
.gf-bg-ea::before { background: #eaeaea !important; }
.gf-bg-cc::before { background: #cccccc !important; }
.gf-cb.gf-join { margin-top: -80px; }

/* three boxes */
.gf-boxes { display: flex; justify-content: space-between; }
.gf-box { position: relative; width: 31.6667%; overflow: hidden; }
.gf-box::before { content: ""; display: block; padding-top: 63.158%; }
.gf-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .75s, opacity .75s; }
.gf-box p:empty { display: none; }
.gf-box__body {
	position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%;
	display: flex; flex-direction: column; justify-content: flex-start;
	padding: 20px 25px; color: #fff;
}
.gf-box__desc { font-size: 14px; line-height: 1.6; text-shadow: 2px 2px 2px #000; }
.gf-box__headline { margin-top: 4px; font-size: 34px; line-height: 1.2; }
.gf-box__headline a { color: #fff; }
.gf-box__headline a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.gf-box__headline a:hover { color: #fff; }

/* free space */
.gf-cb--free .p-entry__body { margin-top: 30px; }
.gf-cb--free .p-entry__body > :first-child { margin-top: 0; }

/* banner */
.gf-banner { position: relative; overflow: hidden; }
.gf-banner__image { overflow: hidden; line-height: 0; }
.gf-banner__image img { width: 100%; transition: transform .75s, opacity .75s; }
.gf-banner__body {
	position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100%;
	display: flex; align-items: center; padding: 0 5.6589%;
}
.gf-banner__headline { font-size: 34px; line-height: 1.4; }
.gf-banner__headline a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.gf-banner__headline a:hover { color: inherit; }
.gf-banner__desc { margin-top: 10px; line-height: 2; }

/* posts */
.gf-cb__header { display: flex; align-items: center; margin-bottom: 40px; }
.gf-cb__headline { font-size: 34px; font-weight: 500; line-height: 1.2; }
.gf-cb__desc { flex: 1 1 auto; margin-left: 15px; line-height: 1.8; }
.gf-cb__link { flex: 0 0 auto; margin-left: 15px; }
.gf-cb__link-sp { margin-top: 24px; text-align: center; }
.gf-cb--posts .p-blog-archive { margin-bottom: -36px; }

@media screen and (max-width: 767px) {
	.gf-cb, .gf-cb.has-bg { margin: 0 auto; padding: 29px 0 30px; }
	.gf-cb.has-bg { padding: 29px 0; }
	.gf-cb.gf-join { margin-top: 0; }
	.l-main--front > .gf-cb:first-child,
	.p-index-slider + .gf-cb { margin-top: 0; }
	.gf-cb::after {
		content: ""; position: absolute; bottom: 0; left: 50%;
		width: 100vw; margin-left: -50vw; border-top: 1px solid var(--gf-border);
	}
	.gf-cb:last-child::after { display: none; }
	.gf-cb:last-child { padding-bottom: 0; }
	.p-index-slider { border-bottom: 1px solid var(--gf-border); }
	.p-index-slider__dots { bottom: 8px; }
	.p-index-slider__dots button { width: 10px; height: 10px; }
	.p-index-slider__dots li { margin-left: 6px; }

	.gf-boxes { display: block; }
	.gf-box { width: 100%; }
	.gf-box + .gf-box { margin-top: 29px; }
	.gf-box__body { padding: 5.27% 6.58%; }
	.gf-box__desc { font-size: 12px; line-height: 1.5; }
	.gf-box__headline { font-size: 30px; }

	.gf-cb--free .p-entry__body { margin-top: 20px; line-height: 2.2; }

	.gf-banner__body { position: static; display: block; height: auto; margin-top: 13px; padding: 0; text-align: center; }
	.gf-banner__headline { margin-bottom: -4.5px; font-size: 18px; line-height: 1.5; text-align: left; }

	.gf-cb__header { display: block; margin-bottom: 22px; }
	.gf-cb__headline { display: inline-block; font-size: 26px; }
	.gf-cb__desc { margin: 10px 0 0; }
}

/* ==========================================================
   Archive
   ========================================================== */
.p-blog-archive { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: -36px; }
.p-blog-archive::after { content: ""; display: block; width: 31.6667%; }
.p-blog-archive__item { width: 31.6667%; margin-bottom: 36px; }
.p-blog-archive__item-thumbnail { margin-bottom: 14px; padding-top: 60.51%; background: #eee; }
.p-blog-archive__item-thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.p-blog-archive__item-title { font-size: 14px; line-height: 1.8; font-weight: 400; }
.p-archive__none { line-height: 2; }

.p-pager { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 46px; }
.p-pager__item .page-numbers {
	display: inline-block; min-width: 40px; height: 40px; padding: 0 4px;
	line-height: 38px; text-align: center; border: 1px solid var(--gf-border);
}
.p-pager__item .current { color: #fff; background: var(--gf-primary); border-color: var(--gf-primary); }
.p-pager__item a:hover { color: #fff; background: var(--gf-hover); border-color: var(--gf-hover); }
.p-pager__item .prev, .p-pager__item .next { position: relative; }
.p-pager__item .prev::before, .p-pager__item .next::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -4px 0 0 -5px;
	border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg);
}
.p-pager__item .prev::before { margin-left: -2px; transform: rotate(-135deg); }

@media screen and (max-width: 991px) {
	.p-blog-archive__item, .p-blog-archive::after { width: 46.875%; }
}
@media screen and (max-width: 767px) {
	.p-blog-archive { display: block; margin-bottom: 0; }
	.p-blog-archive::after { display: none; }
	.p-blog-archive__item { width: 100%; margin-bottom: 0; }
	.p-blog-archive__item + .p-blog-archive__item { margin-top: 22px; }
	.gf-cb--posts .p-blog-archive { margin-bottom: 0; }
	.p-blog-archive__item-thumbnail { margin-bottom: 10px; }
	.p-pager { justify-content: center; gap: 0; margin-top: 40px; }
	.p-pager__item { margin: 3px 0 0 -1px; }
}

/* ==========================================================
   Entry
   ========================================================== */
.p-entry__inner { padding: 50px; border: 1px solid var(--gf-border); }
.p-entry__thumbnail { position: relative; margin: -51px -51px 40px; }
.p-entry__thumbnail img { display: block; width: 100%; height: auto; }
.p-entry__thumbnail-cat {
	position: absolute; left: 51px; bottom: 0;
	padding: 0 30px; font-size: 12px; line-height: 45px; color: #666; background: #fff;
}
.p-entry__title { font-size: 32px; font-weight: 500; line-height: 1.5; }

.p-share { min-height: 37px; margin: 30px 0; }
.p-share ul { display: flex; flex-wrap: wrap; gap: 3px; }
.p-share li { flex: 1 1 0; max-width: 100px; }
.p-share a {
	display: flex; justify-content: center; align-items: center; height: 32px;
	font-family: Arial, sans-serif; font-size: 12px; border-radius: 3px;
}
.p-share a::before { content: ""; display: inline-block; margin-right: 5px; background-repeat: no-repeat; background-size: contain; }
.p-share__line a { color: #fff; background: #00b900; }
.p-share__line a::before { width: 16px; height: 16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2C6.5 2 2 5.6 2 10.1c0 4 3.6 7.4 8.4 8 .3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s5.9-3.5 8.1-6C21.7 13.4 22 11.8 22 10.1 22 5.6 17.5 2 12 2zM7.9 12.6H5.9c-.3 0-.5-.2-.5-.5V8.2c0-.3.2-.5.5-.5s.5.2.5.5v3.4h1.5c.3 0 .5.2.5.5s-.2.5-.5.5zm2.1-.5c0 .3-.2.5-.5.5s-.5-.2-.5-.5V8.2c0-.3.2-.5.5-.5s.5.2.5.5zm4.7 0c0 .2-.1.4-.3.5h-.2c-.2 0-.3-.1-.4-.2l-2-2.7v2.4c0 .3-.2.5-.5.5s-.5-.2-.5-.5V8.2c0-.2.1-.4.3-.5h.2c.2 0 .3.1.4.2l2 2.7V8.2c0-.3.2-.5.5-.5s.5.2.5.5zm3.2-2.5c.3 0 .5.2.5.5s-.2.5-.5.5h-1.5v.9h1.5c.3 0 .5.2.5.5s-.2.5-.5.5h-2c-.3 0-.5-.2-.5-.5V8.2c0-.3.2-.5.5-.5h2c.3 0 .5.2.5.5s-.2.5-.5.5h-1.5v.9z'/%3E%3C/svg%3E"); }
.p-share__note a { color: #000; background: #fff; border: 1px solid var(--gf-border); }
.p-share__note a::before { width: 12px; height: 12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 2h8.2C13 2 14 3.6 14 6.2V14h-3V6.5c0-1.2-.4-1.6-1.4-1.6H5V14H2z'/%3E%3C/svg%3E"); }
.p-share a:hover { opacity: .7; }
.p-share__line a:hover { color: #fff; }

.p-entry__body { margin-top: 30px; line-height: 2.4; word-wrap: break-word; }
.p-entry__body p { margin-bottom: 2em; }
.p-entry__body > :last-child { margin-bottom: 0; }
.p-entry__body a { color: var(--gf-primary); }
.p-entry__body a:hover { color: var(--gf-hover); }
.p-entry__body h1, .p-entry__body h2, .p-entry__body h3, .p-entry__body h4, .p-entry__body h5, .p-entry__body h6 { line-height: 1.4; margin-bottom: 1.33em; font-weight: 400; }
.p-entry__body h1 { font-size: 24px; }
.p-entry__body h2 { font-size: 1.6em; }
.p-entry__body h3 { font-size: 1.3em; }
.p-entry__body h4 { font-size: 1.2em; }
.p-entry__body h5 { font-size: 1.1em; }
.p-entry__body h6 { font-size: 1em; }
.p-entry__body ul, .p-entry__body ol { margin: 0 0 2em 1.5em; }
.p-entry__body ul { list-style: disc; }
.p-entry__body ol { list-style: decimal; }
.p-entry__body li { line-height: 2; }
.p-entry__body table { width: 100%; margin-bottom: 24px; }
.p-entry__body th, .p-entry__body td { padding: 10px 15px; line-height: 2; border: 1px solid var(--gf-border); }
.p-entry__body th { background: var(--gf-gray); }
.p-entry__body td { background: #fff; }
.p-entry__body blockquote { margin: 0 0 2em; padding: 20px 30px; background: var(--gf-gray); border-left: 4px solid var(--gf-border); }
.p-entry__body img.aligncenter, .p-entry__body .aligncenter { display: table; margin: 7px auto; }
.p-entry__body .alignleft { float: left; margin: 7px 20px 7px 0; }
.p-entry__body .alignright { float: right; margin: 7px 0 7px 20px; }
.p-entry__body .wp-caption { max-width: 100%; }
.p-entry__body .wp-caption-text { font-size: 12px; line-height: 1.8; text-align: center; }
.p-entry__body iframe { max-width: 100%; }
.p-entry__body::after { content: ""; display: block; clear: both; }
.p-entry-page__body { margin-top: 30px; }
.p-entry-page .p-entry__body > .panel-layout { margin-top: 0; }

.p-page-links { margin: 30px 0 0; }
.p-page-links span { display: inline-block; min-width: 40px; line-height: 38px; text-align: center; border: 1px solid var(--gf-border); }
.p-page-links > span { color: #fff; background: var(--gf-primary); border-color: var(--gf-primary); }

.p-entry__meta { display: flex; flex-wrap: wrap; margin-top: 30px; padding: 22px 20px 17px; font-size: 12px; line-height: 1; background: var(--gf-gray); }
.p-entry__meta-item { position: relative; margin: 0 12px 5px 0; padding: 0 12px 0 20px; border-right: 1px solid var(--gf-border); }
.p-entry__meta-item:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.p-entry__meta-item::before {
	content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; background: #aaa;
	-webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat;
}
.p-entry__meta-item--author { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='4.5' r='3.5'/%3E%3Cpath d='M1 16c0-4 3-6.5 7-6.5s7 2.5 7 6.5z'/%3E%3C/svg%3E"); }
.p-entry__meta-item--category { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 2h6l2 2h8v11H0z'/%3E%3C/svg%3E"); }
.p-entry__meta-item--comment { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 1h16v10H6l-4 4v-4H0z'/%3E%3C/svg%3E"); }

.p-entry__nav { display: flex; margin: 50px -50px -50px; border-top: 1px solid var(--gf-border); }
.p-entry__nav-item { position: relative; flex: 1 1 0; line-height: 28px; }
.p-entry__nav-item--prev { border-right: 1px solid var(--gf-border); }
.p-entry__nav-item a { position: relative; display: flex; align-items: center; height: 118px; padding: 0 14% 0 16%; }
.p-entry__nav-item a::before { position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-width: 1.5px; }
.p-entry__nav-item--prev a::before { left: 7%; transform: rotate(-135deg); }
.p-entry__nav-item--next a { justify-content: flex-end; text-align: right; padding: 0 16% 0 14%; }
.p-entry__nav-item--next a::before { right: 7%; }
.p-entry__nav-item span.u-hidden-sm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.p-entry__related { margin: 50px 0 40px; }
.p-headline { padding: 17px 22px; font-size: 14px; font-weight: 500; line-height: 1.2; color: #fff; background: var(--gf-primary); }
.p-entry__related-items { display: flex; flex-wrap: wrap; justify-content: space-between; margin-top: 5px; }
.p-entry__related-items::after { content: ""; display: block; width: 30.8333%; }
.p-entry__related-item { width: 30.8333%; margin-top: 22px; }
.p-entry__related-item__thumbnail { padding-top: 61.08%; background: #eee; }
.p-entry__related-item__thumbnail img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.p-entry__related-item__title { margin-top: 11.2px; font-size: 14px; line-height: 1.8; }

@media screen and (max-width: 767px) {
	.p-entry__inner { padding: 0; border: 0; }
	.single .p-breadcrumb { margin-bottom: 0; }
	.p-entry__thumbnail { margin: 0 -6.25% 26px; }
	.p-entry__thumbnail-cat { left: 5.5556%; padding: 0 18px; line-height: 40px; }
	.p-entry__title { font-size: 20px; }
	.p-entry__body { line-height: 2.2; }
	.p-entry__meta { padding: 15px 15px 10px; row-gap: 8px; }
	.p-entry__nav { margin: 14px 0 0; border-bottom: 1px solid var(--gf-border); }
	.p-entry__nav-item a { height: 50px; padding: 0 20px 0 40px; }
	.p-entry__nav-item--next a { padding: 0 40px 0 20px; }
	.p-entry__nav-item--prev a::before { left: 20px; }
	.p-entry__nav-item--next a::before { right: 20px; }
	.p-entry__related { margin: 30px 0; }
	.p-entry__related-item, .p-entry__related-items::after { width: 46.85%; }
	.p-entry__related-item__title { font-size: 14px; line-height: 1.8; }
}


/* ==========================================================
   Comments
   ========================================================== */
.c-comment { margin-top: 50px; font-size: 12px; line-height: 1; }
.c-comment__tab { display: flex; margin-bottom: 25px; }
.c-comment__tab-item { flex: 1 1 0; display: flex; text-align: center; }
.c-comment__tab-item a { position: relative; flex: 1; padding: 15px; font-size: 11px; line-height: 1.8; color: #333; border: 1px solid var(--gf-border); }
.c-comment__tab-item.is-active a { color: #fff; background: var(--gf-primary); border-color: var(--gf-primary); }
.c-comment__tab-item.is-active a::after {
	content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -6px;
	border: 6px solid transparent; border-top-color: var(--gf-primary);
}
.c-comment__tab-item a:hover { color: #fff; background: var(--gf-primary); border-color: var(--gf-primary); }
.c-comment__panel { display: none; }
.c-comment__panel.is-active { display: block; }
.c-comment__list .comment, .c-comment__list-item, .c-comment__list .pingback, .c-comment__list .trackback {
	margin-bottom: 15px; padding: 15px 20px 0; color: #777; border: 1px solid var(--gf-border); list-style: none;
}
.c-comment__list p { margin-bottom: 15px; line-height: 2.4; }
.c-comment__list .children { margin: 15px 0 0 20px; }
.c-comment__list .comment-meta { margin-bottom: 10px; line-height: 1.8; }
.c-comment__list .comment-author img { float: left; margin-right: 10px; }
.c-comment__trackback-url { margin-bottom: 15px; }
.c-comment__trackback-url label { display: block; margin-bottom: 8px; }
.c-comment__trackback-url input { width: 100%; padding: 8px; border: 1px solid var(--gf-border); }
.c-comment__form-wrapper { padding: 15px; border: 1px solid var(--gf-border); }
.c-comment__form-wrapper .comment-reply-title { margin-bottom: 11px; font-size: 11px; }
.c-comment__form-wrapper .logged-in-as, .c-comment__form-wrapper .comment-notes { margin-bottom: 15px; font-size: 11px; line-height: 1.6; color: #666; }
.c-comment__form-wrapper label { display: block; margin-bottom: 5px; line-height: 1.6; }
.c-comment__form-wrapper input[type="text"], .c-comment__form-wrapper input[type="email"], .c-comment__form-wrapper input[type="url"], .c-comment__form-wrapper textarea {
	width: 100%; margin-bottom: 15px; padding: 8px; border: 1px solid var(--gf-border); border-radius: 0;
}
.c-comment__form-wrapper textarea { height: 100px; }
.c-comment__form-wrapper .comment-form-cookies-consent label { display: inline; }
.c-comment__form-wrapper .form-submit { text-align: center; }
.c-comment__form-submit {
	width: 200px; height: 46px; border: 0; color: #fff; background: #333; font-size: 14px; cursor: pointer; transition: background-color .2s;
}
.c-comment__form-submit:hover { background: var(--gf-primary); }

/* ==========================================================
   Footer
   ========================================================== */
.l-footer { margin-top: 150px; }
.error404 .l-footer { margin-top: 0; }
.p-footer-widget-area { background: var(--gf-gray); color: #000; }
.p-footer-widget-area__inner { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 75px 0; overflow: hidden; }
.p-widget-footer { width: 30%; padding: 25px 0; font-size: 12px; line-height: 1.8; }
.p-widget-footer a { color: #000; }
.p-widget-footer a:hover { color: #ce0b41; }
.p-widget-footer .p-widget__title { margin-bottom: 20px; font-size: 16px; font-weight: 500; }
.p-widget-footer h1 { font-size: 24px; line-height: 1.8; }
.p-widget-footer strong { font-weight: 700; }
.p-widget-footer p { margin-bottom: .4em; }
.p-widget-footer .p-siteinfo__desc { line-height: 2; }
.p-widget-footer ul li { line-height: 1.8; }
.p-copyright { font-size: 12px; line-height: 58px; text-align: center; border-top: 1px solid var(--gf-border); overflow: hidden; }

@media screen and (max-width: 767px) {
	.l-footer { margin-top: 30px; }
	.p-footer-widget-area__inner { display: block; padding: 10px 0; overflow: visible; }
	.p-widget-footer { position: relative; width: 100%; padding: 30px 0; }
	.p-widget-footer + .p-widget-footer::before {
		content: ""; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; border-top: 1px solid var(--gf-border);
	}
	.p-copyright { padding: 13px 0; line-height: 1.7; }
}

/* page top */
.p-pagetop { position: fixed; right: 0; bottom: 0; z-index: 90; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.p-pagetop.is-visible { opacity: 1; visibility: visible; }
.p-pagetop a { display: flex; justify-content: center; align-items: center; width: 58px; height: 58px; color: #fff; background: #000; }
.p-pagetop a::before { width: 10px; height: 10px; margin-top: 5px; border-width: 1.5px; transform: rotate(-45deg); }
.p-pagetop a:hover { color: #fff; background: var(--gf-hover); }
@media screen and (max-width: 767px) { .p-pagetop a { width: 50px; height: 50px; } }

/* ==========================================================
   Plugin / site specific (旧テーマのカスタムCSSから移植)
   ========================================================== */
.c-shopdetail_tel_table th { width: 130px; }
.p-entry__body .c-shopdetail_tel_table th { text-align: center; }
.wpcm-vehicle-listings .wpcm-vehicle-filters .wpcm-filter input { color: #fff; background-color: #ce0b41; }
.wpcm-button.wpcm-contact-button { background-color: #ce0b41; color: #fff; font-weight: bold; }
.so-widget-sow-image .sow-image-container { display: flex; align-items: flex-start; }
.so-widget-sow-image .sow-image-container > a { display: inline-block; max-width: 100%; }
.so-widget-sow-image .sow-image-container .so-widget-image { display: block; height: auto; max-width: 100%; }
