/* StartHero Core — front-end styles (Happiob brand, v0.2) */
:root {
	--sh-purple: #3c276d;
	--sh-purple-dark: #2b1b52;
	--sh-magenta: #e40069;
	--sh-teal: #007a96;
	--sh-orange: #ef8200;
	--sh-yellow: #fccf00;
	--sh-green: #2e9e57;
	--sh-ink: #2a2733;
	--sh-muted: #6c6878;
	--sh-line: #e4e1ec;
	--sh-soft: #f4f2fa;
	--sh-radius: 14px;
	--sh-shadow: 0 10px 30px rgba(60, 39, 109, .07);
	--sh-shadow-lift: 0 16px 36px rgba(60, 39, 109, .14);
	--sh-en: "Jost", "Zen Kaku Gothic New", sans-serif;
	--tone: var(--sh-purple);
}

/* tones: map theme order to brand colors */
.sh-tone-1 { --tone: var(--sh-purple); --tone-soft: #ece8f6; }
.sh-tone-2 { --tone: var(--sh-magenta); --tone-soft: #fde6f0; }
.sh-tone-3 { --tone: var(--sh-teal); --tone-soft: #e0f1f5; }
.sh-tone-4 { --tone: var(--sh-orange); --tone-soft: #fdeedb; }
.sh-tone-5 { --tone: #b38f00; --tone-soft: #fff6cc; }
.sh-tone-6 { --tone: var(--sh-green); --tone-soft: #e2f3e8; }

.sh-main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 140px; color: var(--sh-ink); }
.sh-muted { color: var(--sh-muted); }
.sh-small { font-size: .85rem; color: var(--sh-muted); }
.sh-lead { font-size: 1.15rem; font-weight: 700; margin: .2em 0; color: var(--sh-purple); }
.sh-empty { padding: 24px 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
:where(.sh-main, .site-header, .site-footer) a:focus-visible, :where(button, input, select, textarea):focus-visible { outline: 3px solid var(--sh-teal); outline-offset: 2px; }

/* buttons */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; background: var(--sh-purple); color: #fff !important; border: 2px solid var(--sh-purple); border-radius: 999px; padding: 0 28px; font-weight: 700; font-size: .95rem; text-decoration: none !important; cursor: pointer; line-height: 1.3; box-shadow: 0 6px 18px rgba(60, 39, 109, .18); transition: background-color .2s, transform .2s, box-shadow .2s; }
.sh-btn:hover { background: var(--sh-purple-dark); border-color: var(--sh-purple-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(60, 39, 109, .24); }
.sh-btn--ghost { background: #fff; color: var(--sh-purple) !important; box-shadow: none; }
.sh-btn--ghost:hover { background: var(--sh-soft); color: var(--sh-purple) !important; }
.sh-btn--accent { background: var(--sh-magenta); border-color: var(--sh-magenta); box-shadow: 0 8px 22px rgba(228, 0, 105, .28); }
.sh-btn--accent:hover { background: #c4005a; border-color: #c4005a; }
.sh-btn--lg { min-height: 56px; padding: 0 48px; font-size: 1.05rem; }
.sh-link { color: var(--sh-teal); font-size: .9rem; font-weight: 700; }

/* cards & notices */
.sh-card { background: #fff; border: 1px solid var(--sh-line); border-top: 5px solid var(--sh-purple); border-radius: var(--sh-radius); padding: 22px 20px; margin: 0 0 20px; box-shadow: var(--sh-shadow); }
.sh-card h2 { font-size: 1.1rem; margin: 0 0 12px; color: var(--sh-purple); }
.sh-gate { text-align: center; }
.sh-notice { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; border-left: 5px solid; background: #fff; box-shadow: var(--sh-shadow); }
.sh-notice--error { border-color: var(--sh-magenta); color: #8d0041; }
.sh-notice--success { border-color: var(--sh-green); color: #1d6a3a; }
.sh-notice--info { border-color: var(--sh-teal); color: #00586c; }

/* section heading (brand pattern: English label + Japanese heading) */
.sh-heading { margin: 0 0 24px; }
.sh-heading__en { display: block; font-family: var(--sh-en); font-weight: 500; font-size: .875rem; letter-spacing: .25em; color: var(--sh-teal); }
.sh-heading__ja { display: block; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 700; letter-spacing: .06em; color: var(--sh-purple); margin-top: 4px; line-height: 1.5; }

/* chips */
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.sh-chip { display: inline-block; border-radius: 999px; padding: 2px 11px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; line-height: 1.7; }
.sh-chip--theme { background: var(--tone); color: #fff; }
.sh-chip--genre { background: var(--tone-soft, var(--sh-soft)); color: var(--tone); }
.sh-chip--genre { --tone: var(--sh-purple); --tone-soft: var(--sh-soft); }

/* project grid */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px 24px; }
.sh-pcard { position: relative; background: #fff; border-radius: var(--sh-radius); overflow: hidden; box-shadow: var(--sh-shadow); display: flex; flex-direction: column; border-top: 5px solid var(--tone); transition: transform .25s ease, box-shadow .25s ease; }
.sh-pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-shadow-lift); }
.sh-pcard__link { position: absolute; inset: 0; z-index: 1; }
.sh-pcard__link:focus-visible { outline: 3px solid var(--sh-teal); outline-offset: -3px; border-radius: var(--sh-radius); }
.sh-pcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--tone-soft, var(--sh-soft)); overflow: hidden; }
.sh-pcard__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.sh-pcard:hover .sh-pcard__img { transform: scale(1.04); }
.sh-pcard__body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sh-pcard__title { font-size: 1.08rem; line-height: 1.55; margin: 0 0 6px; color: var(--sh-purple); letter-spacing: .02em; }
.sh-pcard__sub { font-size: .88rem; line-height: 1.75; color: var(--sh-muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-pcard__meta { margin: auto 0 0; padding-top: 12px; border-top: 1px dashed var(--sh-line); font-size: .8rem; color: var(--sh-muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.sh-pcard__company { font-weight: 700; color: var(--sh-ink); }

/* cheer (heart) */
.sh-cheer { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--sh-magenta); box-shadow: 0 6px 16px rgba(42, 39, 51, .18); cursor: pointer; padding: 0; transition: transform .15s; }
.sh-cheer:hover { transform: scale(1.06); }
.sh-cheer__icon { font-size: 1.45rem; line-height: 1; }
.sh-cheer__count { font-family: var(--sh-en); font-size: .72rem; font-weight: 600; color: var(--sh-ink); line-height: 1.1; }
.sh-cheer.is-done { background: var(--sh-magenta); color: #fff; }
.sh-cheer.is-done .sh-cheer__count { color: #fff; }
.sh-cheer--card { position: absolute; top: 12px; right: 12px; }
.sh-cheer--hero { position: absolute; top: 16px; right: 16px; width: 64px; height: 64px; }
.sh-cheer.is-pop .sh-cheer__icon { animation: sh-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
.sh-cheer.is-pop::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--sh-magenta); animation: sh-ring .6s ease-out forwards; }
@keyframes sh-pop { 40% { transform: scale(1.5); } }
@keyframes sh-ring { from { opacity: .8; transform: scale(.8); } to { opacity: 0; transform: scale(1.5); } }

/* project detail */
.sh-back a { color: var(--sh-muted); text-decoration: none; font-size: .9rem; }
.sh-back a:hover { color: var(--sh-purple); }
.sh-project__head { display: grid; gap: 8px; }
.sh-project__hero { position: relative; border-radius: var(--sh-radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--tone-soft, var(--sh-soft)); box-shadow: var(--sh-shadow); }
.sh-project__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-project__hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--tone); }
.sh-project__title { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.45; margin: 12px 0 4px; color: var(--sh-purple); letter-spacing: .04em; }
.sh-project__sub { font-size: 1.05rem; color: var(--sh-muted); margin: 0 0 8px; line-height: 1.8; }
.sh-project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--sh-muted); font-size: .9rem; }
.sh-project__company { display: inline-flex; align-items: center; gap: 8px; color: var(--sh-ink); font-weight: 700; text-decoration: none; }
.sh-project__company:hover { color: var(--sh-purple); }
.sh-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sh-soft); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(42, 39, 51, .12); }
.sh-avatar--lg { width: 64px; height: 64px; }
.sh-avatar--empty { display: inline-block; }
.sh-section { margin: 56px 0 0; }
.sh-h2 { position: relative; font-size: 1.25rem; font-weight: 700; color: var(--sh-purple); letter-spacing: .06em; margin: 0 0 18px; padding-left: 18px; }
.sh-h2::before { content: ""; position: absolute; left: 0; top: .25em; bottom: .25em; width: 6px; border-radius: 3px; background: var(--tone, var(--sh-teal)); }
.sh-prose { line-height: 2; overflow-wrap: anywhere; max-width: 42em; }
.sh-prose p { margin: 0 0 1.1em; }
.sh-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 560px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-bottom: 20px; scrollbar-color: var(--sh-purple) var(--sh-soft); }
.sh-gallery__item { margin: 0; scroll-snap-align: start; border-radius: var(--sh-radius); overflow: hidden; background: var(--sh-soft); }
.sh-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 10; }
.sh-voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.sh-voice { margin: 0; background: #fff; border-radius: var(--sh-radius); padding: 22px 20px; box-shadow: var(--sh-shadow); position: relative; }
.sh-voice::before { content: "“"; position: absolute; right: 18px; top: 4px; font-family: var(--sh-en); font-size: 4rem; line-height: 1; color: var(--tone-soft, var(--sh-soft)); }
.sh-voice__who { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sh-voice__who strong { color: var(--sh-purple); }
.sh-voice blockquote { margin: 0; font-size: .95rem; }
.sh-dl { display: grid; grid-template-columns: 9em 1fr; margin: 0; background: #fff; border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); overflow: hidden; }
.sh-dl dt, .sh-dl dd { margin: 0; padding: 14px 18px; border-bottom: 1px solid var(--sh-line); overflow-wrap: anywhere; }
.sh-dl dt { font-weight: 700; color: var(--sh-purple); background: var(--sh-soft); }
.sh-dl dt:last-of-type, .sh-dl dd:last-of-type { border-bottom: 0; }
.sh-entrybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(244, 242, 250, .98) 55%, rgba(244, 242, 250, 0)); pointer-events: none; }
.sh-entrybar .sh-btn { pointer-events: auto; }

/* profiles */
.sh-profile-head { display: flex; align-items: center; gap: 20px; margin: 16px 0 8px; padding: 24px; background: #fff; border-radius: var(--sh-radius); box-shadow: var(--sh-shadow); border-top: 5px solid var(--sh-teal); }
.sh-profile-head h1 { font-size: 1.5rem; margin: 0; color: var(--sh-purple); }
.sh-profile-head__img { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; border: 1px solid var(--sh-line); background: #fff; flex: none; }
.sh-profile-head__img--round { border-radius: 50%; object-fit: cover; }
.sh-herocard { max-width: 100%; height: auto; border-radius: 10px; box-shadow: var(--sh-shadow); }

/* forms */
.sh-form h2 { font-size: 1.1rem; margin: 32px 0 14px; padding-left: 14px; border-left: 5px solid var(--sh-teal); color: var(--sh-purple); }
.sh-form h2:first-of-type { margin-top: 0; }
.sh-field { margin: 0 0 18px; }
.sh-field label, .sh-label { display: block; font-weight: 700; font-size: .92rem; color: var(--sh-ink); }
.sh-field input[type=text], .sh-field input[type=email], .sh-field input[type=password], .sh-field input[type=url], .sh-field input[type=tel], .sh-field input[type=date], .sh-field input[type=search], .sh-field select, .sh-field textarea,
.sh-auth input[type=text], .sh-auth input[type=password], .sh-field--row select, .sh-field--row input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: .75em .9em; border: 1.5px solid var(--sh-line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; transition: border-color .2s, box-shadow .2s; }
.sh-field input:focus, .sh-field select:focus, .sh-field textarea:focus, .sh-auth input:focus, .sh-field--row input:focus, .sh-field--row select:focus { border-color: var(--sh-purple); box-shadow: 0 0 0 4px rgba(60, 39, 109, .12); outline: none; }
.sh-field textarea { min-height: 8em; line-height: 1.8; }
.sh-field--row, .sh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sh-field--row > label { display: block; font-weight: 700; font-size: .92rem; }
.sh-req { display: inline-block; background: var(--sh-magenta); color: #fff; font-size: .68rem; border-radius: 999px; padding: 0 .6em; margin-left: .4em; vertical-align: middle; font-weight: 700; }
.sh-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sh-hp { position: absolute; left: -9999px; }
.sh-check label, .sh-radio label { font-weight: 400; display: inline-flex; align-items: center; gap: 8px; margin-right: 18px; }
.sh-type { border: 0; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sh-type legend { font-weight: 700; margin-bottom: 8px; }
.sh-type__opt { display: block; border: 2px solid var(--sh-line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 400 !important; transition: border-color .2s, background-color .2s; }
.sh-type__opt strong { color: var(--sh-purple); }
.sh-type__opt span { display: block; font-size: .8rem; color: var(--sh-muted); margin-top: 2px; }
.sh-type__opt:has(input:checked) { border-color: var(--sh-purple); background: var(--sh-soft); }
.sh-thumb { display: block; max-width: 160px; height: auto; border-radius: 10px; margin: 6px 0; }
.sh-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.sh-thumbs__item { display: flex; flex-direction: column; font-weight: 400 !important; font-size: .8rem; }
.sh-thumbs__item img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.sh-voice-edit { border: 1.5px solid var(--sh-line); border-radius: 12px; padding: 14px 18px; margin: 0 0 14px; }
.sh-voice-edit legend { font-weight: 700; color: var(--sh-purple); padding: 0 6px; }
.sh-auth { max-width: 480px; margin-left: auto; margin-right: auto; }
.sh-auth .login-username label, .sh-auth .login-password label { font-weight: 700; font-size: .92rem; }
.sh-auth .login-remember label { font-weight: 400; }
.sh-auth .login-submit input { background: var(--sh-purple); color: #fff; border: 0; border-radius: 999px; min-height: 50px; padding: 0 2.4em; font-weight: 700; cursor: pointer; font-size: 1rem; box-shadow: 0 6px 18px rgba(60, 39, 109, .18); }

/* lists */
.sh-list { list-style: none; padding: 0; margin: 0; }
.sh-list li { padding: 12px 0; border-bottom: 1px solid var(--sh-line); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.sh-list a { color: var(--sh-ink); font-weight: 700; }
.sh-status { font-size: .72rem; border-radius: 999px; padding: 2px 10px; background: var(--sh-line); font-weight: 700; color: var(--sh-muted); }
.sh-status--publish { background: var(--sh-green); color: #fff; }

/* search */
.sh-search { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: center; border-top-color: var(--sh-teal); }
.sh-search input, .sh-search select { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 .9em; border: 1.5px solid var(--sh-line); border-radius: 10px; font: inherit; background: #fff; }
.sh-pager { margin: 32px 0; text-align: center; }
.sh-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; margin: 0 3px; border-radius: 999px; text-decoration: none; color: var(--sh-purple); font-family: var(--sh-en); font-weight: 600; }
.sh-pager .current { background: var(--sh-purple); color: #fff; }

/* entry */
.sh-entry__project { border-top-color: var(--sh-magenta); }
.sh-entry__project h2 { margin: 4px 0; font-size: 1.15rem; }

/* scroll reveal (only when JS runs and motion is allowed) */
.sh-js .sh-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; transition-delay: calc(var(--i, 0) * 80ms); }
.sh-js .sh-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 720px) {
	.sh-field--row, .sh-grid-2, .sh-type { grid-template-columns: 1fr; }
	.sh-search { grid-template-columns: 1fr 1fr; }
	.sh-search__kw, .sh-search .sh-btn { grid-column: 1 / -1; }
	.sh-dl { grid-template-columns: 6.5em 1fr; }
	.sh-dl dt, .sh-dl dd { padding: 12px 12px; }
	.sh-grid { grid-template-columns: 1fr; }
	.sh-profile-head { padding: 18px; gap: 14px; }
	.sh-profile-head__img { width: 72px; height: 72px; }
	.sh-project__hero { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.sh-js .sh-reveal { opacity: 1; transform: none; }
}
