/*
Theme Name: SOKO+
Theme URI: https://example.com/
Author: SOKO+
Description: 倉庫建設会社「SOKO+」オリジナルWordPressテーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sokoplus
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
	--color-navy: #002870;
	--color-navy-dark: #001c50;
	--color-green: #aace36;
	--color-green-dark: #91af2e;
	--color-bg-gray: #f2f2f2;
	--color-bg-gray-dark: #e0e0e0;
	--color-text: #1a1a1a;
	--color-text-light: #5a5f6b;
	--color-white: #ffffff;
	--color-border: #d9dce2;

	--font-en: "tt-commons-pro", "Zen Kaku Gothic New", sans-serif;
	--font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

	--frame-side-width: 17px;
	--frame-top-height: 17px;
	--header-height: 96px;

	--container-width: 1332px;
	--container-padding: 24px;
}

@media screen and (max-width: 767px) {
	:root {
		--frame-side-width: 8px;
		--frame-top-height: 8px;
		--header-height: 64px;
		--container-padding: 16px;
	}
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-jp);
	color: var(--color-text);
	background: var(--color-white);
	line-height: 1.7;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	padding-left: var(--frame-side-width);
	padding-right: var(--frame-side-width);
	overflow-x: hidden;
}

/* Safari collapses the space above the fixed top frame bar behind its own
   toolbar/address-bar chrome; push body content down to compensate.
   (-webkit-named-image detection targets Safari only, incl. desktop macOS Safari) */
@supports (background: -webkit-named-image(i)) {
	body {
		padding-top: var(--frame-top-height);
	}
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
p {
	margin: 0;
}

button {
	font-family: inherit;
	cursor: pointer;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   Frame bars (門型フレーム) — fixed to viewport edges, always visible
   ========================================================================== */
.site-frame-top,
.site-frame-left,
.site-frame-right {
	position: fixed;
	background: var(--color-navy);
	z-index: 9999;
	pointer-events: none;
}

.site-frame-top {
	top: 0;
	left: 0;
	right: 0;
	height: var(--frame-top-height);
}

.site-frame-left {
	top: 0;
	left: 0;
	bottom: 0;
	width: var(--frame-side-width);
}

.site-frame-right {
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--frame-side-width);
}

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
	position: relative;
	border: 2px solid var(--color-navy);
	border-top: none;
	background: var(--color-bg-gray);
}

.site-header__inner {
	padding: 10px 15px;
	margin-top: 17px;
	display: flex;
}

.site-header__logo {
	position: absolute;
	top: -2px;
	left: -2px;
	display: flex;
	align-items: center;
	background-color: #f2f2f2;
	padding: 16px 12px;
	border: 2px solid #002870;
}

.site-logo-mark {
	height: 50px;
	width: auto;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-logo__mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 52px;
	height: 52px;
	border: 1px solid var(--color-navy);
	padding: 4px;
}

.site-logo__kana {
	font-size: 6px;
	letter-spacing: 0.03em;
	color: var(--color-navy);
	white-space: nowrap;
}

.site-logo__text {
	font-family: var(--font-en);
	font-weight: 500;
	font-size: 26px;
	color: var(--color-navy);
	letter-spacing: 0.02em;
}

.site-logo__plus {
	color: var(--color-green);
}

.header-nav {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	overflow-x: auto;
	border-left: 2px solid var(--color-navy);
	padding-left: 28px;
	margin-right: 24px;
}

.header-nav__list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: nowrap;
}

.header-nav__list a {
	font-size: clamp(13px, calc(13px + (100vw - 1366px) * 0.009), 18px);
	font-weight: 500;
	color: var(--color-navy);
	white-space: nowrap;
}

.header-nav__list a:hover {
	color: var(--color-green-dark);
}

.site-header__cta {
	display: flex;
	border-left: 1px solid var(--color-navy);
}

.btn-contact {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: var(--color-navy);
	color: var(--color-white);
	font-weight: 500;
	font-size: clamp(15px, calc(15px + (100vw - 1366px) * 0.009), 20px);
	padding: 6px 10px;
	white-space: nowrap;
}

.btn-contact:hover {
	background: var(--color-navy-dark);
}

.header-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: auto;
	height: auto;
	background: transparent;
	border: none;
	flex-shrink: 0;
}

.header-nav-toggle__dots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	width: 30px;
	height: 30px;
}

.header-nav-toggle__dots span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--color-green);
}

.header-nav-toggle__label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--color-navy);
}

.header-nav-toggle.is-active .header-nav-toggle__dots span {
	background: var(--color-navy);
}

.header-nav-toggle.is-active .header-nav-toggle__dots span:nth-child(even) {
	visibility: hidden;
}

.header-nav-toggle.is-active .header-nav-toggle__label {
	font-size: 0;
}

.header-nav-toggle.is-active .header-nav-toggle__label::after {
	content: "CLOSE";
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
}

@media screen and (max-width: 1024px) {
	.header-nav {
		padding-left: 18px;
	}

	.header-nav__list {
		gap: 18px;
	}

	.header-nav__list a {
		font-size: 13px;
	}

	.btn-contact {
		padding: 0 18px;
		font-size: 14px;
	}
}

@media screen and (max-width: 767px) {
	.site-logo__text {
		font-size: 20px;
	}

	.site-header__inner {
		padding: 6px 8px;
		margin-top: 0;
		min-height: auto;
		justify-content: space-between;
	}

	.site-header__logo {
		position: static;
		padding: 0;
		border: none;
		width: 167px;
	}

	.site-logo-mark {
		width: 100%;
		height: auto;
	}

	.header-nav-toggle {
		margin: 0;
	}

	.header-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		border-left: none;
		padding-left: 0;
		background: var(--color-bg-gray);
		border-top: 1px solid var(--color-border);
		border-bottom: 1px solid var(--color-navy);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.header-nav.is-open {
		z-index: 100;
		width: 100%;
		height: 100vh;
		max-height: 350px;
		overflow-y: auto;
	}

	.header-nav__list {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 0;
		padding: 8px 0;
	}

	.header-nav__list a {
		display: block;
		padding: 12px var(--container-padding);
		border-bottom: 2px solid var(--color-navy);
	}

	.site-header__cta {
		display: none;
	}

	.header-nav-toggle {
		display: flex;
		margin-left: auto;
		margin-right: 0;
	}
}

/* ==========================================================================
   Container
   ========================================================================== */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ==========================================================================
   Buttons — plus-mark button component
   ========================================================================== */
.btn-plus {
	display: inline-flex;
	align-items: stretch;
	border: none;
	overflow: hidden;
}

.btn-plus__label {
	display: flex;
	align-items: center;
	padding: 14px 24px;
	font-weight: 500;
	font-size: 15px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.btn-plus__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	font-size: 22px;
	font-weight: 500;
	flex-shrink: 0;
}

.btn-plus--navy .btn-plus__label {
	background: var(--color-white);
	color: var(--color-navy);
}

.btn-plus--navy .btn-plus__icon {
	background: var(--color-navy);
	color: var(--color-white);
}

.btn-plus--navy:hover .btn-plus__icon {
	background: var(--color-navy-dark);
}

.btn-plus--green .btn-plus__label {
	background: var(--color-navy);
	color: var(--color-white);
}

.btn-plus--green .btn-plus__icon {
	background: var(--color-green);
	color: var(--color-navy);
}

.btn-plus--green:hover .btn-plus__icon {
	background: var(--color-green-dark);
}

.btn-plus--outline .btn-plus__label {
	background: transparent;
	color: var(--color-navy);
	border: 1px solid var(--color-navy);
	border-right: none;
}

.btn-plus--outline .btn-plus__icon {
	background: var(--color-navy);
	color: var(--color-white);
}

.tag-icon-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--color-green);
	color: var(--color-navy);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	flex-shrink: 0;
}

/* ==========================================================================
   Site footer
   ========================================================================== */
.site-footer {
	background: var(--color-white);
	color: var(--color-navy);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding: 0;
}

.site-footer .container {
	max-width: none;
	padding: 0;
}

.site-footer__main {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding: 31px 33px;
}

.site-footer__brand {
	flex: 0 0 401px;
	display: flex;
	flex-direction: column;
}

.site-footer__logo-img {
	width: 401px;
	height: auto;
	max-width: 100%;
}

.site-footer__tagline {
	margin-top: 16px;
	font-family: var(--font-en);
	font-size: 14px;
	line-height: 1.5;
	color: var(--color-text-light);
}

.site-footer__powered {
	margin-top: auto;
	padding-top: 24px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--color-text-light);
}

.site-footer__powered-logo {
	width: 62px;
	height: auto;
}

.site-footer__nav {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
}

.site-footer__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.site-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-navy);
}

.site-footer__list a:hover {
	color: var(--color-green-dark);
}

.site-footer__list-heading {
	font-weight: 700;
}

.site-footer__list--types a {
	font-weight: 500;
}

.site-footer__list--types .site-footer__list-heading a {
	font-weight: 600;
}

.site-footer__list-icon {
	width: 12px;
	height: auto;
}

.site-footer__side-col {
	flex: 0 0 340px;
	display: flex;
	flex-direction: column;
	border-left: 2px solid var(--color-navy);
}

.site-footer__side {
	padding: 23px 30px;
}

.site-footer__tagline-en {
	font-family: var(--font-en);
	font-size: 38px;
	font-weight: 500;
	line-height: 1;
	color: var(--color-bg-gray-dark);
}

.site-footer__tagline-jp {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--color-navy);
}

.site-footer__bottom {
	margin-top: auto;
	border-top: 2px solid var(--color-navy);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 30px;
	font-size: 12px;
	color: var(--color-text-light);
}

.site-footer__privacy {
	color: var(--color-navy);
}

@media screen and (max-width: 767px) {
	.site-footer__inner {
		flex-direction: column;
		gap: 24px;
	}

	.site-footer__main {
		padding: 16px;
	}

	.site-footer__brand {
		flex: 1 1 auto;
		order: 1;
	}

	.site-footer__nav {
		order: 0;
	}

	.site-footer__logo-img {
		width: 100%;
		max-width: 401px;
	}

	.site-footer__side-col {
		flex: 1 1 auto;
		border-left: none;
		border-top: 2px solid var(--color-navy);
	}

	.site-footer__side {
		display: none;
	}

	.site-footer__bottom {
		border-top: none;
		gap: 8px;
		padding: 20px 16px;
	}
}

/* ==========================================================================
   Generic content (page.php / single.php / archive.php)
   ========================================================================== */
.generic-content {
	padding: 64px 0;
	max-width: 860px;
}

.generic-content .entry-title {
	font-size: 28px;
	font-weight: 500;
	color: var(--color-navy);
	margin-bottom: 24px;
}

.generic-content .entry-date {
	font-family: var(--font-en);
	font-size: 13px;
	color: var(--color-text-light);
	margin-bottom: 8px;
}

.generic-content .entry-thumbnail {
	margin-bottom: 24px;
}

.generic-content .entry-content {
	font-size: 15px;
	line-height: 1.9;
}

.generic-content .entry-content>*+* {
	margin-top: 1.4em;
}

.archive-list__item {
	display: block;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.archive-list__date {
	font-family: var(--font-en);
	font-size: 12px;
	color: var(--color-text-light);
	margin-bottom: 6px;
}

.archive-list__title {
	font-size: 16px;
	font-weight: 500;
	color: var(--color-navy);
}

.archive-pagination {
	margin-top: 32px;
}

/* ==========================================================================
   Placeholder media (used until real photos are supplied)
   ========================================================================== */
.ph-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: repeating-linear-gradient(45deg,
			#dde1e8,
			#dde1e8 10px,
			#e6e9ee 10px,
			#e6e9ee 20px);
	color: #8b90a0;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-align: center;
}