/*
Theme Name: 디자인통 (Designtong)
Description: 디자인통 회사 홈페이지 테마. 한/영 번갈아 타이핑되는 슬로건, 벽돌형 포트폴리오(자동 슬라이드·전체 화면 사진 팝업), 슬로건 띠, 고객사 로고, 회사 소개. 모든 문구는 관리자 › 홈페이지 설정 한 화면에서 바꿉니다.
Version: 1.7.5
Requires at least: 5.8
Requires PHP: 7.4
Author: Designtong
Text Domain: designtong
*/

:root {
	--dt-bg: #f2f2f2;
	--dt-text: #1c1f24;
	--dt-soft: #444;
	--dt-muted: #8a8a8a;
	--dt-line: #dcdcdc;
	--dt-tile: #e4e4e4;
	--dt-ink: #10151c;          /* 슬로건 띠 배경 (보내주신 이미지의 짙은 남색) */
	--dt-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
	--dt-wrap: 1170px;
}
/* 어두운 색 (홈페이지 설정 › 색 › 어둡게) */
body.dt-dark {
	--dt-bg: #10151c;
	--dt-text: #f3f4f6;
	--dt-soft: #c4c8cf;
	--dt-muted: #8b919b;
	--dt-line: rgba(255,255,255,.12);
	--dt-tile: #1b222c;
	--dt-ink: #0a0e13;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--dt-bg); color: var(--dt-text);
	font-family: var(--dt-font); font-size: 16px; line-height: 1.7; word-break: keep-all;
	-webkit-font-smoothing: antialiased; transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .65; }
:focus-visible { outline: 2px solid var(--dt-text); outline-offset: 3px; }

.dt-wrap { width: 100%; max-width: calc(var(--dt-wrap) + 48px); margin: 0 auto; padding: 0 24px; }
.dt-skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #000; color: #fff; padding: 10px 16px; }
.dt-skip:focus { left: 8px; top: 8px; }
.dtp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 머리글 ---------- */
.dt-header { padding: 44px 0 0; }
.dt-header__in { display: flex; align-items: center; justify-content: space-between; }
.dt-logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.dt-logo__mark { display: block; width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.dt-logo__words { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.dt-logo:hover { opacity: 1; }
.dt-logo__img { height: 36px; width: auto; display: block; }
.dt-logo__text { font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.dt-logo__tag { font-size: 9.5px; font-weight: 600; letter-spacing: .14em; line-height: 1; color: var(--dt-muted); text-transform: uppercase; }

.dt-burger {
	appearance: none; border: 0; background: none; padding: 10px 0 10px 10px; cursor: pointer; color: var(--dt-text);
	display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.dt-burger span { display: block; width: 26px; height: 2px; background: currentColor; transition: width .3s; }
.dt-burger span:nth-child(2) { width: 18px; }
.dt-burger:hover span:nth-child(2) { width: 26px; }

/* 전체 화면 메뉴 */
.dt-menu {
	position: fixed; inset: 0; z-index: 9999; background: var(--dt-ink); color: #fff; overflow-y: auto;
	display: flex; align-items: center; opacity: 0; transition: opacity .35s ease;
}
.dt-menu[hidden] { display: none; }
.dt-menu.is-open { opacity: 1; }
.dt-menu__top { position: absolute; top: 44px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; }
.dt-menu__top .dt-logo__img { filter: brightness(0) invert(1); }
.dt-menu__top .dt-logo__tag { color: rgba(255,255,255,.55); }
.dt-menu__close {
	appearance: none; position: relative; width: 40px; height: 40px; margin-right: -8px; border: 0; background: none; cursor: pointer;
}
.dt-menu__close::before, .dt-menu__close::after { content: ""; position: absolute; left: 8px; right: 8px; top: 19px; height: 2px; background: #fff; transform: rotate(45deg); }
.dt-menu__close::after { transform: rotate(-45deg); }
.dt-menu__list { list-style: none; margin: 0; padding: 0; }
.dt-menu__list li { overflow: hidden; }
.dt-menu__list a {
	display: inline-block; padding: 6px 0; font-size: clamp(30px, 5vw, 56px); font-weight: 300; line-height: 1.3; letter-spacing: -.01em;
	transform: translateY(100%); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .2s;
}
.dt-menu.is-open .dt-menu__list a { transform: none; }
.dt-menu.is-open .dt-menu__list li:nth-child(2) a { transition-delay: .05s; }
.dt-menu.is-open .dt-menu__list li:nth-child(3) a { transition-delay: .1s; }
.dt-menu.is-open .dt-menu__list li:nth-child(4) a { transition-delay: .15s; }
.dt-menu.is-open .dt-menu__list li:nth-child(5) a { transition-delay: .2s; }
.dt-menu.is-open .dt-menu__list li:nth-child(n+6) a { transition-delay: .25s; }
.dt-menu .dt-social { margin-top: 48px; }
.dt-menu .dt-social a { color: rgba(255,255,255,.7); }
html.dt-lock { overflow: hidden; }

/* ---------- 메인 슬로건 (한/영 번갈아 타이핑) ---------- */
.dt-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(44px, 5.5vw, 70px); }
.dt-headline {
	margin: 0; max-width: 1000px; font-family: var(--dt-font);
	font-size: clamp(30px, 4.3vw, 60px); font-weight: 400; line-height: 1.34; letter-spacing: -.025em; color: var(--dt-text);
}
.dt-headline__prefix { display: block; transition: opacity .45s ease; }
.dt-headline__word { display: inline; font-weight: 600; background: var(--dt-text); color: var(--dt-bg); padding: 0 .14em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dt-headline__brand {
	display: inline-block; margin-left: .32em; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
	opacity: 0; transform: translateX(-10px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.dt-headline__brand.is-shown { opacity: 1; transform: none; }
.dt-headline__brand:empty { display: none; }
.dt-type::after { content: "_"; margin-left: .02em; font-weight: 400; animation: dt-caret 1s steps(1) infinite; } /* 커서가 마지막 글자에 붙어 다님 */
.dt-headline.is-busy .dt-type::after { animation: none; }
.dt-type { transition: opacity .4s; }
.dt-type.is-swapping, .dt-headline__prefix.is-swapping, .dt-hero__sub.is-swapping { opacity: 0; }
@keyframes dt-caret { 50% { opacity: 0; } }
.dt-hero__sub {
	margin: 22px 0 0; font-size: clamp(15px, 1.4vw, 18px); color: var(--dt-muted); letter-spacing: .01em;
	transition: opacity .45s ease; min-height: 1.7em;
}

/* ---------- 포트폴리오 (테마 색에 맞춤) ---------- */
.dt-works { padding-bottom: 40px; scroll-margin-top: 24px; }
.dt-works .dtp-portfolio { --dtp-gap: 30px; --dtp-text: var(--dt-text); --dtp-line: var(--dt-line); }
.dt-works .dtp-head { margin-bottom: 30px; align-items: center; }
.dt-works .dtp-heading { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--dt-text); }
.dt-works .dtp-filter { margin-left: auto; justify-content: flex-end; }
@media (max-width: 640px) { .dt-works .dtp-filter { margin-left: 0; justify-content: flex-start; width: 100%; } }
.dt-works .dtp-filter { gap: 4px 24px; }
.dt-works .dtp-filter button { font-size: 15px; color: var(--dt-muted); }
.dt-works .dtp-filter button.is-active, .dt-works .dtp-filter button:hover { color: var(--dt-text); }
.dt-works .dtp-media { background: var(--dt-tile); }
.dt-works .dtp-overlay .dtp-title { font-size: 19px; }

/* ---------- 슬로건 띠 (경험을 디자인하다.) ---------- */
.dt-statement {
	margin-top: clamp(70px, 9vw, 120px); background: var(--dt-ink); color: #fff; text-align: center;
	padding: clamp(80px, 11vw, 150px) 0;
}
.dt-statement__logo { display: block; width: auto; height: clamp(64px, 7vw, 92px); margin: 0 auto 40px; }
.dt-statement__ko { margin: 0; font-size: clamp(32px, 4.6vw, 62px); font-weight: 700; line-height: 1.25; letter-spacing: -.03em; color: #fff; }
.dt-statement__en { margin: 18px 0 0; font-size: clamp(26px, 3.6vw, 48px); font-weight: 500; line-height: 1.25; letter-spacing: -.015em; color: rgba(255,255,255,.92); }
.dt-statement__sub { margin: 26px 0 0; font-size: clamp(14px, 1.3vw, 16px); line-height: 1.8; color: rgba(255,255,255,.55); }
.dt-statement [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.dt-statement.is-in [data-reveal] { opacity: 1; transform: none; }
.dt-statement.is-in [data-reveal="2"] { transition-delay: .18s; }
.dt-statement.is-in [data-reveal="3"] { transition-delay: .36s; }
body.dt-dark .dt-statement { border-top: 1px solid var(--dt-line); border-bottom: 1px solid var(--dt-line); }

/* ---------- 공통 작은 제목 ---------- */
.dt-label { margin: 0 0 14px; font-family: var(--dt-font); font-size: 15px; font-weight: 700; letter-spacing: .12em; color: var(--dt-text); }

/* ---------- 고객사 ---------- */
.dt-clients { padding-top: clamp(70px, 9vw, 120px); padding-bottom: 20px; scroll-margin-top: 24px; }
.dt-clients__head { margin-bottom: 24px; }
.dt-clients__head p { margin: 0; color: var(--dt-muted); max-width: 560px; }
.dt-clients__grid {
	list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--dt-line); border-left: 1px solid var(--dt-line);
}
.dt-clients__grid li {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 12%;
	border-right: 1px solid var(--dt-line); border-bottom: 1px solid var(--dt-line);
}
.dt-clients__grid { container-type: inline-size; }
.dt-clients__grid img { width: 18cqw; height: 64px; max-width: none; object-fit: contain; filter: grayscale(1); opacity: .55; transition: opacity .3s, filter .3s; }
.dt-clients__grid li:hover img { filter: none; opacity: 1; }
/* 흐르는 띠: 본문 폭 안에서 천천히 흐름. 로고 크기가 달라도 같은 상자에 맞춰 정렬 */
.dt-marquee {
	position: relative; overflow: hidden; container-type: inline-size;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dt-marquee__track { display: flex; width: max-content; animation: dt-marquee var(--dt-marquee-time, 48s) linear infinite; }
.dt-marquee:hover .dt-marquee__track { animation-play-state: paused; }
.dt-marquee__list { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; }
.dt-marquee__list li { flex: 0 0 auto; width: 25cqw; height: 220px; display: flex; align-items: center; justify-content: center; padding: 0 5%; }
.dt-marquee__list img { flex: 0 0 auto; width: 15cqw; height: 84px; max-width: none; object-fit: contain; filter: grayscale(1); opacity: .85; transition: opacity .3s, filter .3s; }
.dt-marquee__list li:hover img { filter: none; opacity: 1; }
@keyframes dt-marquee { to { transform: translateX(-50%); } }
@media (max-width: 1024px) { .dt-marquee__list li { width: 33.333cqw; height: 180px; } .dt-marquee__list img { width: 20cqw; height: 70px; } }
@media (max-width: 640px)  { .dt-marquee__list li { width: 50cqw; height: 130px; } .dt-marquee__list img { width: 34cqw; height: 52px; } }

body.dt-dark .dt-clients__grid img, body.dt-dark .dt-marquee__list img { filter: grayscale(1) brightness(0) invert(1); }
body.dt-dark .dt-clients__grid li:hover img, body.dt-dark .dt-marquee__list li:hover img { filter: grayscale(1) brightness(0) invert(1); opacity: 1; }
@media (max-width: 1024px) { .dt-clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .dt-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 바닥글 (회사 소개) ---------- */
.dt-footer.is-slim { padding-top: clamp(70px, 9vw, 110px); }
.dt-footer.is-slim .dt-footer__bottom { margin-top: 0; }
.dt-footer { padding: clamp(80px, 10vw, 130px) 0 40px; color: var(--dt-soft); scroll-margin-top: 24px; }
.dt-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 80px; }
.dt-footer__text { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; color: var(--dt-text); }
.dt-footer__en { margin: 18px 0 0; font-size: 15px; line-height: 1.7; color: var(--dt-muted); }
.dt-footer__contact { align-self: end; }
.dt-footer__grid.is-solo { grid-template-columns: 1fr; }
.dt-footer__grid.is-solo .dt-footer__contact { display: flex; flex-wrap: wrap; gap: 18px 56px; align-items: flex-end; }
.dt-footer__grid.is-solo .dt-footer__contact p { margin: 0; }
.dt-footer__grid.is-solo .dt-footer__cta { margin-top: 0 !important; }
.dt-footer__contact p { margin: 0 0 6px; }
.dt-footer__hello { font-size: 15px; color: var(--dt-muted); }
.dt-footer__hello a { display: block; margin-top: 4px; font-size: clamp(20px, 2vw, 26px); color: var(--dt-text); border-bottom: 1px solid currentColor; width: fit-content; }
.dt-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--dt-line); font-size: 14px; color: var(--dt-muted);
}
.dt-copy { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.dt-copy__mark { width: 20px; height: 20px; object-fit: contain; opacity: .7; }
body.dt-dark .dt-logo__mark, body.dt-dark .dt-copy__mark { filter: brightness(0) invert(1); }
.dt-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
@media (max-width: 768px) { .dt-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 버튼 · 전화번호 ---------- */
.dt-btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border: 1px solid var(--dt-text);
	background: var(--dt-text); color: var(--dt-bg); font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2;
	cursor: pointer; transition: background .25s, color .25s, opacity .2s;
}
.dt-btn:hover { opacity: 1; background: transparent; color: var(--dt-text); }
.dt-btn span { transition: transform .25s; }
.dt-btn:hover span { transform: translateX(4px); }
.dt-btn--light { background: #fff; color: #10151c; border-color: #fff; }
.dt-btn--light:hover { background: transparent; color: #fff; }
.dt-btn[disabled] { opacity: .5; pointer-events: none; }
.dt-phone { display: inline-flex; align-items: baseline; gap: 10px; }
.dt-phone__role { font-size: .78em; font-weight: 700; letter-spacing: .08em; color: var(--dt-muted); }
.dt-footer__cta { margin-top: 26px !important; }
.dt-statement__cta { margin: 44px 0 0; }

.dt-header__right { display: flex; align-items: center; gap: 26px; }
.dt-header__contact { font-size: 15px; font-weight: 600; letter-spacing: .05em; padding: 8px 0 3px; border-bottom: 1px solid currentColor; }
.dt-header__contact[aria-current="page"] { opacity: .5; }

/* ---------- 문의하기 페이지 ---------- */
.dt-contact { padding-top: clamp(32px, 4vw, 56px); padding-bottom: 20px; }
.dt-contact__photo { margin: 0 0 clamp(48px, 6vw, 80px); }
.dt-contact__photo img { display: block; width: 100%; max-height: 72vh; object-fit: cover; }
.dt-contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px clamp(40px, 6vw, 100px); }
.dt-contact__title { margin: 0 0 14px; font-size: clamp(30px, 3.2vw, 40px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.dt-contact__text { margin: 0; color: var(--dt-soft); }
.dt-contact__mail { margin: 4px 0 0; }
.dt-contact__mail a { border-bottom: 1px solid currentColor; }
.dt-contact__tel { margin-top: 48px; }
.dt-contact__label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--dt-muted); }
.dt-phone--big { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: .01em; }
.dt-contact__call { display: none; margin-top: 16px; }

.dt-form__trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.dt-field { position: relative; display: block; margin-bottom: 36px; }
.dt-field__label { display: block; font-size: 15px; color: var(--dt-soft); margin-bottom: 4px; }
.dt-field__label i, .dt-agree i { color: var(--dt-muted); font-style: normal; }
.dt-field input, .dt-field textarea {
	display: block; width: 100%; border: 0; border-bottom: 1px solid var(--dt-line); border-radius: 0; background: transparent;
	color: var(--dt-text); font: inherit; font-size: 17px; padding: 10px 0; outline: none; transition: border-color .3s;
}
.dt-field input::placeholder, .dt-field textarea::placeholder { color: var(--dt-muted); opacity: .7; font-size: 15px; }
.dt-field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--dt-text); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.dt-field:focus-within::after { transform: scaleX(1); }
.dt-field--area::after { bottom: 7px; }
/* 공책처럼 줄이 있는 문의 내용 칸 */
.dt-field textarea {
	resize: vertical; min-height: 220px; line-height: 44px; padding: 0;
	background-image: linear-gradient(transparent 43px, var(--dt-line) 43px, var(--dt-line) 44px); background-size: 100% 44px; background-attachment: local;
	border-bottom: 0;
}
.dt-field.is-invalid input, .dt-field.is-invalid textarea { border-bottom-color: #d14343; }
.dt-field.is-invalid .dt-field__label { color: #d14343; }

.dt-form__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dt-agree { font-size: 15px; color: var(--dt-soft); }
.dt-agree label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.dt-agree input { width: 18px; height: 18px; accent-color: var(--dt-text); margin: 0; }
.dt-agree details { margin: 6px 0 0 28px; font-size: 13px; color: var(--dt-muted); }
.dt-agree summary { cursor: pointer; text-decoration: underline; width: fit-content; }
.dt-agree details p { margin: 6px 0 0; line-height: 1.7; }
.dt-agree.is-invalid { color: #d14343; }
.dt-form__status { margin: 22px 0 0; min-height: 1.7em; font-size: 15px; }
.dt-form__status.is-ok { color: #1f8a5b; font-weight: 600; }
.dt-form__status.is-err { color: #d14343; }
body.dt-dark .dt-form__status.is-ok { color: #4fd18f; }

@media (max-width: 860px) {
	.dt-contact__grid { grid-template-columns: 1fr; }
	.dt-contact__call { display: inline-flex; }
}
@media (max-width: 640px) {
	.dt-form__row { grid-template-columns: 1fr; gap: 0; }
	.dt-form__send { width: 100%; justify-content: center; }
	.dt-header__contact { font-size: 14px; }
}

/* ---------- 일반 페이지 ---------- */
.dt-page { padding-top: 60px; padding-bottom: 40px; max-width: 860px; }
.dt-page__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.02em; line-height: 1.3; margin: 0 0 36px; }
.dt-entry { margin-bottom: 48px; }
.dt-entry__title { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.dt-entry__thumb { margin: 0 0 32px; }
.dt-entry__content { font-size: 17px; line-height: 1.8; }
.dt-entry__content a { text-decoration: underline; }
.dt-entry__content .alignwide, .dt-entry__content .alignfull { max-width: none; }
.dt-entry__content .alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

@media (max-width: 640px) {
	.dt-header { padding-top: 26px; }
	.dt-menu__top { top: 26px; }
	.dt-logo__text { font-size: 19px; }
	.dt-logo__mark { width: 38px; height: 38px; }
	.dt-logo { gap: 10px; }
	.dt-logo__tag { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dt-type::after { animation: none; }
	.dt-menu__list a { transform: none; transition: none; }
	.dt-statement [data-reveal] { opacity: 1; transform: none; transition: none; }
	.dt-marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.dt-marquee__list[aria-hidden] { display: none; }
	.dt-marquee__list { flex-wrap: wrap; justify-content: center; }
}
