/* ========================================
   HIDESIGN COMMON
======================================== */


/* ========================================
   RESET
======================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;

	color: #333333;
	background: #ffffff;

	font-family: "Noto Sans JP", sans-serif;
	font-weight: 400;
}

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

a {
	color: inherit;
}


/* ========================================
   VARIABLES
======================================== */

:root {
	--font-jp: "Noto Sans JP", sans-serif;
	--font-en: "Inter", sans-serif;

	--color-main: #1a1a1a;
	--color-text: #333333;
	--color-light: #999999;
	--color-border: #dddddd;
}


/* ========================================
   WORDPRESS RESET
======================================== */

.wp-site-blocks {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}


/* ========================================
   TYPOGRAPHY
======================================== */

/* セクション見出し
   ABOUT / WORKS / NEWS など
*/
.section-title {
	margin: 0;

	font-family: var(--font-en);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.3;

	color: var(--color-main);
}


/* 小見出し
   「ユニフォーム制作の流れ」など
*/
.section-subtitle {
	margin: 0;

	font-family: var(--font-jp);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.6;

	color: var(--color-main);
}


/* 本文 */
.body-text {
	margin: 0;

	font-family: var(--font-jp);
	font-size: 16px;
	font-weight: 400;
	line-height: 2;

	color: var(--color-text);
}


/* ========================================
   HEADER
======================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;

	width: 100%;
	max-width: none !important;

	margin: 0 !important;

	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
}


/* WordPressログイン中の管理バー分 */
body.admin-bar .site-header {
	top: 32px;
}


.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;

	width: 100%;
	height: 86px;

	padding: 0 clamp(30px, 4.5vw, 72px);
}


/* ========================================
   BRAND
======================================== */

.site-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	flex: 0 0 auto;

	color: var(--color-main);
}

.site-brand__link {
	display: block;

	margin: 0;
	padding: 0;

	background: none;
	border: none;
	box-shadow: none;

	line-height: 0;

	text-decoration: none;
}


.site-brand__logo {
	display: block;

	width: 160px;
	height: auto;

	flex-shrink: 0;
}


.site-brand__caption {
	display: block;
	font-family: var(--font-en);
	font-size: 9px;
	font-weight: 500;
	line-height: 1.4;

	letter-spacing: 0.02em;

	color: var(--color-light);

	white-space: nowrap;
}


/* ========================================
   NAVIGATION
======================================== */

.site-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 1 auto;
	min-width: 0;

	/* PROJECT追加後も項目同士の間隔を確保 */
	gap: clamp(12px, 1.5vw, 26px);
}


.site-nav a {
	position: relative;

	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;

	letter-spacing: 0;

	color: var(--color-main);
	text-decoration: none;

	white-space: nowrap;
}


/* ========================================
   COMMON BUTTON
======================================== */

.hidesign-button {
	display: flex;
	align-items: center;
	justify-content: space-between;

	width: 190px;
	height: 42px;

	padding: 0 20px;

	font-family: var(--font-en);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;

	color: var(--color-main);
	background: transparent;

	border: 1px solid #d6d6d6;

	text-decoration: none;
}


.hidesign-button__arrow {
	font-size: 17px;
	font-weight: 300;
	line-height: 1;
}





/* ========================================
   RESPONSIVE
======================================== */

/* ヘッダー：ロゴの下にブランド説明を常時表示。幅が減ったらナビを小さくする */
@media screen and (max-width: 1050px) {
	.site-header__inner {
		gap: 16px;
		padding: 0 24px;
	}

	.site-brand__logo {
		width: 145px;
	}

	.site-brand__caption {
		font-size: 8px;
		letter-spacing: 0;
	}

	.site-nav {
		gap: 12px;
	}

	.site-nav a {
		font-size: 12px;
	}
}

/* ========================================
   MOBILE HAMBURGER MENU
   details/summary でJavaScript不要の開閉
======================================== */
.site-mobile-menu {
	display: none;
}

/* narrow screen: logo/caption centered, nav on the right */
@media screen and (max-width: 820px) {
	.site-header__inner {
		position: relative;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		height: 76px;
		min-height: 76px;
		padding: 9px 60px;
		gap: 0;
	}

	.site-brand {
		align-items: center;
		text-align: center;
		gap: 5px;
	}

	.site-brand__logo {
		width: 145px;
	}

	.site-brand__caption {
		font-size: 8px;
		line-height: 1.3;
		letter-spacing: 0;
	}

	/* Hide the desktop menu rather than scrolling it */
	.site-nav {
		display: none;
	}

	.site-mobile-menu {
		display: block;
		position: static;
	}

	.site-mobile-menu__toggle {
		position: absolute;
		top: 50%;
		right: 16px;
		transform: translateY(-50%);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		width: 48px;
		height: 48px;
		padding: 0;
		color: #1a1a1a;
		cursor: pointer;
		list-style: none;
		-webkit-tap-highlight-color: transparent;
	}

	.site-mobile-menu__toggle::-webkit-details-marker {
		display: none;
	}

	.site-mobile-menu__icon {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 5px;
		width: 22px;
		height: 19px;
	}

	.site-mobile-menu__icon span {
		display: block;
		width: 22px;
		height: 1.5px;
		background: currentColor;
		transition: transform 0.2s ease, opacity 0.2s ease;
		transform-origin: center;
	}

	.site-mobile-menu__label {
		font-family: var(--font-en);
		font-size: 9px;
		font-weight: 500;
		letter-spacing: 0.08em;
		line-height: 1;
	}

	/* Expand into a full-width dropdown below the sticky header */
	.site-mobile-menu__nav {
		position: absolute;
		z-index: 20;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		max-height: min(70vh, 640px);
		overflow-y: auto;
		padding: 8px 24px 18px;
		background: #fff;
		border-top: 1px solid #e5e5e5;
		border-bottom: 1px solid #e5e5e5;
		box-shadow: 0 10px 18px rgba(0,0,0,0.07);
	}

	.site-mobile-menu__nav a {
		display: flex;
		align-items: center;
		min-height: 46px;
		padding: 10px 8px;
		border-bottom: 1px solid #eeeeee;
		font-family: var(--font-en);
		font-size: 13px;
		font-weight: 500;
		line-height: 1.4;
		color: var(--color-main);
		text-decoration: none;
	}

	.site-mobile-menu__nav a:last-child {
		border-bottom: 0;
	}

	.site-mobile-menu[open] .site-mobile-menu__icon span:nth-child(1) {
		transform: translateY(6.5px) rotate(45deg);
	}
	.site-mobile-menu[open] .site-mobile-menu__icon span:nth-child(2) {
		opacity: 0;
	}
	.site-mobile-menu[open] .site-mobile-menu__icon span:nth-child(3) {
		transform: translateY(-6.5px) rotate(-45deg);
	}

	.site-mobile-menu__toggle:focus-visible,
	.site-mobile-menu__nav a:focus-visible {
		outline: 2px solid #444444;
		outline-offset: 2px;
	}
}


@media screen and (max-width: 782px) {

	body.admin-bar .site-header {
		top: 46px;
	}
}


/* ========================================
   FOOTER
======================================== */

.site-footer {
	width: 100%;
	max-width: none !important;

	margin: 0 !important;

	background: #1a1a1a;
	color: #ffffff;
}


.site-footer__inner {
	width: 100%;
	max-width: 1440px;

	margin: 0 auto;

	padding:
		68px
		clamp(50px, 5vw, 80px)
		30px;
}


/* ========================================
   FOOTER MAIN
======================================== */

.site-footer__main {
	display: grid;

	/* ロゴ＋ABOUT／WORKS／NEWS／COLLECTION／PROJECT／CONTACTの7列 */
	grid-template-columns:
		minmax(155px, 1.3fr)
		minmax(190px, 1.6fr)
		minmax(70px, 0.65fr)
		minmax(70px, 0.65fr)
		minmax(112px, 1fr)
		minmax(90px, 0.8fr)
		minmax(145px, 1.2fr);

	column-gap: clamp(14px, 1.5vw, 26px);
	row-gap: 42px;

	padding-bottom: 55px;
}


/* ========================================
   FOOTER BRAND
======================================== */

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;

	gap: 16px;
}


.site-footer__logo-link {
	display: block;

	margin: 0;
	padding: 0;

	background: none;
	border: none;

	line-height: 0;
	text-decoration: none;
}


.site-footer__logo {
	display: block;

	width: 160px;
	height: auto;
}


.site-footer__brand-caption {
	margin: 0;

	font-family: var(--font-en);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;

	letter-spacing: 0.04em;

	color: #999999;
}


/* ========================================
   FOOTER NAV
======================================== */

.site-footer__heading {
	margin: 0 0 18px;

	font-family: var(--font-en);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;

	letter-spacing: 0.08em;

	color: #999999;
}


.site-footer__nav {
	display: flex;
	flex-direction: column;

	gap: 7px;
}


.site-footer__nav a {
	font-family: var(--font-jp);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;

	color: #ffffff;
	text-decoration: none;
}


/* ========================================
   FOOTER BOTTOM
======================================== */

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;

	padding-top: 28px;

	border-top: 1px solid #555555;
}


.site-footer__copyright {
	margin: 0;

	font-family: var(--font-en);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.6;

	color: #888888;
}


.site-footer__bottom-links {
	display: flex;
	align-items: center;

	gap: 24px;
}


.site-footer__bottom-links a {
	font-family: var(--font-en);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.6;

	letter-spacing: 0.08em;

	color: #888888;
	text-decoration: none;
}


.site-footer__separator {
	display: block;

	width: 1px;
	height: 12px;

	background: #555555;
}


/* ========================================
   FOOTER RESPONSIVE
======================================== */

/* 7列が収まらない幅では段階的に整列させる */
@media screen and (max-width: 1100px) {
	.site-footer__main {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 42px 26px;
	}
}

@media screen and (max-width: 1000px) {
	.site-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 42px;
	}

	/* ロゴの下にナビ6項目を3列×2段で配置 */
	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media screen and (max-width: 800px) {

	.site-footer__inner {
		padding:
			50px
			30px
			25px;
	}


	.site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		gap: 36px 24px;

		padding-bottom: 45px;
	}


	.site-footer__brand {
		grid-column: 1 / -1;

		margin-bottom: 10px;
	}


	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;

		gap: 20px;
	}

}


/* ========================================
   FOCUS STYLE
   マウスクリック時のフォーカス枠を非表示
======================================== */

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

/* キーボード操作時はフォーカスを表示 */
a:focus-visible,
button:focus-visible {
	outline: 1px solid currentColor;
	outline-offset: 3px;
}


